:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(links): scope the links api to the project in the url and declare its schema (#104248)
Julian Bez0b6ac5c889e9
diff --git a/products/links/backend/api.py b/products/links/backend/api.pyindex 5bd30e237be8..5e5cd9878045 100644--- a/products/links/backend/api.py+++ b/products/links/backend/api.py@@ -18,9 +18,23 @@ logger = structlog.get_logger(__name__)class LinkSerializer(serializers.ModelSerializer):- created_by = UserBasicSerializer(read_only=True)- short_code = serializers.CharField(required=True, allow_null=False)- _create_in_folder = serializers.CharField(required=False, allow_blank=True, write_only=True)+ created_by = UserBasicSerializer(+ read_only=True,+ allow_null=True,+ help_text="User who created the link. Null when that user was deleted.",+ )+ short_code = serializers.CharField(+ required=True,+ allow_null=False,+ max_length=255,+ help_text="The unique code/path that identifies the short link, e.g. 'abc123'",+ )+ _create_in_folder = serializers.CharField(+ required=False,+ allow_blank=True,+ write_only=True,+ help_text="Folder path to file the link under in the project tree.",+ )class Meta:model = Link@@ -36,13 +50,24 @@ class LinkSerializer(serializers.ModelSerializer):"_create_in_folder",]read_only_fields = ["id", "created_at", "updated_at"]+ extra_kwargs = {+ "redirect_url": {"help_text": "Destination the short link redirects to."},+ # The model's help text names hog.gg, which this serializer rejects. Overriding here keeps+ # the published schema honest without the migration a model change would need.+ "short_link_domain": {"help_text": "Domain the short link is hosted on. Only phog.gg is accepted."},+ "description": {"help_text": "Free-form note about what the link is for."},+ }++ def validate_short_link_domain(self, value: str) -> str:+ # Field-level so that create, PUT and PATCH all reject a bad domain. A check inside create()+ # covers only the create path.+ if value != "phog.gg":+ raise serializers.ValidationError("Only phog.gg is allowed as a short link domain")+ return valuedef create(self, validated_data: dict[str, Any]) -> Link:team = Team.objects.get(id=self.context["team_id"])- if validated_data.get("short_link_domain") != "phog.gg":- raise serializers.ValidationError({"short_link_domain": "Only phog.gg is allowed as a short link domain"})-link = Link.objects.create(team=team,created_by=self.context["request"].user,@@ -63,8 +88,6 @@ class LinkViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):serializer_class = LinkSerializerlookup_field = "id"permission_classes = [IsAuthenticated]- # Use the team from the user's current context when not in a team-specific route- param_derived_from_user_current_team = "team_id"def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:return queryset.filter(team_id=self.team_id).order_by("-created_at")diff --git a/products/links/backend/test/test_api.py b/products/links/backend/test/test_api.pyindex 2dd80496d56a..854da9c500ba 100644--- a/products/links/backend/test/test_api.py+++ b/products/links/backend/test/test_api.py@@ -1,9 +1,11 @@from posthog.test.base import APIBaseTest, ClickhouseTestMixin, QueryMatchingTestimport structlog+from parameterized import parameterizedfrom rest_framework import statusfrom rest_framework.test import APIClient+from posthog.models.organization import Organizationfrom posthog.models.team.team import Teamfrom products.links.backend.models import Link@@ -27,22 +29,33 @@ class TestLink(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest):self.assertEqual(response.json()["short_code"], data["short_code"])self.assertEqual(response.json()["created_by"]["id"], self.user.pk)- def test_create_link_invalid_domain(self):+ @parameterized.expand(["post", "put", "patch"])+ def test_write_rejects_invalid_domain(self, method: str):+ link = Link.objects.create(+ team=self.team,+ redirect_url="https://example.com",+ short_link_domain="phog.gg",+ short_code="test123",+ created_by=self.user,+ )data = {"redirect_url": "https://example.com","short_link_domain": "invalid.com",- "short_code": "test123",+ "short_code": "test456","description": "Test link",}- response = self.client.post(- f"/api/projects/{self.team.id}/links",- data=data,- )- self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ url = f"/api/projects/{self.team.id}/links"+ if method != "post":+ url = f"{url}/{link.id}"++ response = getattr(self.client, method)(url, data=data)+ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)json_response = str(response.json())self.assertIn("short_link_domain", json_response)self.assertIn("Only phog.gg is allowed as a short link domain", json_response)+ link.refresh_from_db()+ self.assertEqual(link.short_link_domain, "phog.gg")def test_list_links(self):# Create a link first@@ -130,7 +143,7 @@ class TestLink(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest):short_code="test1",created_by=self.user,)- _link2 = Link.objects.create(+ link2 = Link.objects.create(team=team2,redirect_url="https://example2.com",short_link_domain="phog.gg",@@ -144,6 +157,28 @@ class TestLink(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest):self.assertEqual(len(response.json()["results"]), 1)self.assertEqual(str(response.json()["results"][0]["id"]), str(link1.id))+ # The project in the URL decides, not the caller's current team+ response = self.client.get(f"/api/projects/{team2.id}/links")+ self.assertEqual(response.status_code, status.HTTP_200_OK)+ self.assertEqual(len(response.json()["results"]), 1)+ self.assertEqual(str(response.json()["results"][0]["id"]), str(link2.id))++ def test_project_in_another_org_is_refused(self):+ foreign_org = Organization.objects.create(name="Foreign org")+ foreign_team = Team.objects.create(organization=foreign_org, name="Foreign team")+ foreign_link = Link.objects.create(+ team=foreign_team,+ redirect_url="https://foreign.example.com",+ short_link_domain="phog.gg",+ short_code="foreign1",+ )++ response = self.client.get(f"/api/projects/{foreign_team.id}/links")++ self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)+ self.assertNotIn(str(foreign_link.id), response.content.decode())+ self.assertNotIn("foreign.example.com", response.content.decode())+def test_create_link_in_specific_folder(self):response = self.client.post(f"/api/projects/{self.team.id}/links",diff --git a/products/links/frontend/generated/api.schemas.ts b/products/links/frontend/generated/api.schemas.tsindex 1d0272d66f8b..0190d7b86678 100644--- a/products/links/frontend/generated/api.schemas.ts+++ b/products/links/frontend/generated/api.schemas.ts@@ -7,24 +7,141 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-export interface FileSystemApi {- readonly id: string- path: string- /** @nullable */- readonly depth: number | null- /** @maxLength 100 */- type?: string+/**+ * * `engineering` - Engineering+ * * `data` - Data+ * * `product` - Product Management+ * * `founder` - Founder+ * * `leadership` - Leadership+ * * `marketing` - Marketing+ * * `sales` - Sales / Success+ * * `student` - Student+ * * `other` - Other+ */+export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]++export const RoleAtOrganizationEnumApi = {+ Engineering: 'engineering',+ Data: 'data',+ Product: 'product',+ Founder: 'founder',+ Leadership: 'leadership',+ Marketing: 'marketing',+ Sales: 'sales',+ Student: 'student',+ Other: 'other',+} as const++export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]++export const BlankEnumApi = {+ '': '',+} as const++/**+ * @nullable+ */+export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null++export interface UserBasicApi {+ readonly id: number+ readonly uuid: string/**- * @maxLength 100+ * @maxLength 200* @nullable*/- ref?: string | null+ distinct_id?: string | null+ /** @maxLength 150 */+ first_name?: string+ /** @maxLength 150 */+ last_name?: string+ /** @maxLength 254 */+ email: string/** @nullable */- href?: string | null- meta?: unknown | null+ is_email_verified?: boolean | null/** @nullable */- shortcut?: boolean | null+ readonly hedgehog_config: UserBasicApiHedgehogConfig+ role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null+}++export interface LinkApi {+ readonly id: string+ /**+ * Destination the short link redirects to.+ * @maxLength 2048+ */+ redirect_url: string+ /**+ * Domain the short link is hosted on. Only phog.gg is accepted.+ * @maxLength 255+ */+ short_link_domain: string+ /**+ * The unique code/path that identifies the short link, e.g. 'abc123'+ * @maxLength 255+ */+ short_code: string+ /**+ * Free-form note about what the link is for.+ * @nullable+ */+ description?: string | nullreadonly created_at: string/** @nullable */- readonly last_viewed_at: string | null+ readonly updated_at: string | null+ /** User who created the link. Null when that user was deleted. */+ readonly created_by: UserBasicApi | null+ /** Folder path to file the link under in the project tree. */+ _create_in_folder?: string+}++export interface PaginatedLinkListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: LinkApi[]+}++export interface PatchedLinkApi {+ readonly id?: string+ /**+ * Destination the short link redirects to.+ * @maxLength 2048+ */+ redirect_url?: string+ /**+ * Domain the short link is hosted on. Only phog.gg is accepted.+ * @maxLength 255+ */+ short_link_domain?: string+ /**+ * The unique code/path that identifies the short link, e.g. 'abc123'+ * @maxLength 255+ */+ short_code?: string+ /**+ * Free-form note about what the link is for.+ * @nullable+ */+ description?: string | null+ readonly created_at?: string+ /** @nullable */+ readonly updated_at?: string | null+ /** User who created the link. Null when that user was deleted. */+ readonly created_by?: UserBasicApi | null+ /** Folder path to file the link under in the project tree. */+ _create_in_folder?: string+}++export type LinksListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number}diff --git a/products/links/frontend/generated/api.ts b/products/links/frontend/generated/api.tsindex 268d1c9d23d3..2d989b7eef36 100644--- a/products/links/frontend/generated/api.ts+++ b/products/links/frontend/generated/api.ts@@ -1,3 +1,4 @@+import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'/*** Auto-generated from the Django backend OpenAPI schema.* To modify these types, update the Django serializers or views, then run:@@ -7,8 +8,7 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'-import type { FileSystemApi } from './api.schemas'+import type { LinkApi, LinksListParams, PaginatedLinkListApi, PatchedLinkApi } from './api.schemas'// https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir/49579497#49579497type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B@@ -27,209 +27,122 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>-export type environmentsFileSystemLinkCreateResponse200 = {- data: void- status: 200-}--export type environmentsFileSystemLinkCreateResponseSuccess = environmentsFileSystemLinkCreateResponse200 & {- headers: Headers-}-export type environmentsFileSystemLinkCreateResponse = environmentsFileSystemLinkCreateResponseSuccess+export const getLinksListUrl = (projectId: string, params?: LinksListParams) => {+ const normalizedParams = new URLSearchParams()-export const getEnvironmentsFileSystemLinkCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/file_system/${id}/link/`-}--export const environmentsFileSystemLinkCreate = async (- projectId: string,- id: string,- fileSystemApi: NonReadonly<FileSystemApi>,- options?: RequestInit-): Promise<environmentsFileSystemLinkCreateResponse> => {- return apiMutator<environmentsFileSystemLinkCreateResponse>(getEnvironmentsFileSystemLinkCreateUrl(projectId, id), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(fileSystemApi),+ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : String(value))+ }})-}--export type environmentsIntegrationsLinkedinAdsAccountsRetrieveResponse200 = {- data: void- status: 200-}-export type environmentsIntegrationsLinkedinAdsAccountsRetrieveResponseSuccess =- environmentsIntegrationsLinkedinAdsAccountsRetrieveResponse200 & {- headers: Headers- }-export type environmentsIntegrationsLinkedinAdsAccountsRetrieveResponse =- environmentsIntegrationsLinkedinAdsAccountsRetrieveResponseSuccess+ const stringifiedParams = normalizedParams.toString()-export const getEnvironmentsIntegrationsLinkedinAdsAccountsRetrieveUrl = (projectId: string, id: number) => {- return `/api/environments/${projectId}/integrations/${id}/linkedin_ads_accounts/`+ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/links/?${stringifiedParams}`+ : `/api/projects/${projectId}/links/`}-export const environmentsIntegrationsLinkedinAdsAccountsRetrieve = async (+/**+ * Create, read, update, and delete links.+ */+export const linksList = async (projectId: string,- id: number,+ params?: LinksListParams,options?: RequestInit-): Promise<environmentsIntegrationsLinkedinAdsAccountsRetrieveResponse> => {- return apiMutator<environmentsIntegrationsLinkedinAdsAccountsRetrieveResponse>(- getEnvironmentsIntegrationsLinkedinAdsAccountsRetrieveUrl(projectId, id),- {- ...options,- method: 'GET',- }- )-}--export type environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponse200 = {- data: void- status: 200-}--export type environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponseSuccess =- environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponse200 & {- headers: Headers- }-export type environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponse =- environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponseSuccess--export const getEnvironmentsIntegrationsLinkedinAdsConversionRulesRetrieveUrl = (projectId: string, id: number) => {- return `/api/environments/${projectId}/integrations/${id}/linkedin_ads_conversion_rules/`+): Promise<PaginatedLinkListApi> => {+ return apiMutator<PaginatedLinkListApi>(getLinksListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })}-export const environmentsIntegrationsLinkedinAdsConversionRulesRetrieve = async (- projectId: string,- id: number,- options?: RequestInit-): Promise<environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponse> => {- return apiMutator<environmentsIntegrationsLinkedinAdsConversionRulesRetrieveResponse>(- getEnvironmentsIntegrationsLinkedinAdsConversionRulesRetrieveUrl(projectId, id),- {- ...options,- method: 'GET',- }- )+export const getLinksCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/links/`}/**- * Generate an unsubscribe link for the current user's email address+ * Create, read, update, and delete links.*/-export type environmentsMessagingPreferencesGenerateLinkCreateResponse200 = {- data: void- status: 200-}--export type environmentsMessagingPreferencesGenerateLinkCreateResponseSuccess =- environmentsMessagingPreferencesGenerateLinkCreateResponse200 & {- headers: Headers- }-export type environmentsMessagingPreferencesGenerateLinkCreateResponse =- environmentsMessagingPreferencesGenerateLinkCreateResponseSuccess--export const getEnvironmentsMessagingPreferencesGenerateLinkCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_preferences/generate_link/`-}--export const environmentsMessagingPreferencesGenerateLinkCreate = async (+export const linksCreate = async (projectId: string,+ linkApi: NonReadonly<LinkApi>,options?: RequestInit-): Promise<environmentsMessagingPreferencesGenerateLinkCreateResponse> => {- return apiMutator<environmentsMessagingPreferencesGenerateLinkCreateResponse>(- getEnvironmentsMessagingPreferencesGenerateLinkCreateUrl(projectId),- {- ...options,- method: 'POST',- }- )+): Promise<LinkApi> => {+ return apiMutator<LinkApi>(getLinksCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(linkApi),+ })}-export type fileSystemLinkCreateResponse200 = {- data: void- status: 200+export const getLinksRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/links/${id}/`}-export type fileSystemLinkCreateResponseSuccess = fileSystemLinkCreateResponse200 & {- headers: Headers+/**+ * Create, read, update, and delete links.+ */+export const linksRetrieve = async (projectId: string, id: string, options?: RequestInit): Promise<LinkApi> => {+ return apiMutator<LinkApi>(getLinksRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })}-export type fileSystemLinkCreateResponse = fileSystemLinkCreateResponseSuccess-export const getFileSystemLinkCreateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/file_system/${id}/link/`+export const getLinksUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/links/${id}/`}-export const fileSystemLinkCreate = async (+/**+ * Create, read, update, and delete links.+ */+export const linksUpdate = async (projectId: string,id: string,- fileSystemApi: NonReadonly<FileSystemApi>,+ linkApi: NonReadonly<LinkApi>,options?: RequestInit-): Promise<fileSystemLinkCreateResponse> => {- return apiMutator<fileSystemLinkCreateResponse>(getFileSystemLinkCreateUrl(projectId, id), {+): Promise<LinkApi> => {+ return apiMutator<LinkApi>(getLinksUpdateUrl(projectId, id), {...options,- method: 'POST',+ method: 'PUT',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(fileSystemApi),+ body: JSON.stringify(linkApi),})}-export type integrationsLinkedinAdsAccountsRetrieveResponse200 = {- data: void- status: 200+export const getLinksPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/links/${id}/`}-export type integrationsLinkedinAdsAccountsRetrieveResponseSuccess =- integrationsLinkedinAdsAccountsRetrieveResponse200 & {- headers: Headers- }-export type integrationsLinkedinAdsAccountsRetrieveResponse = integrationsLinkedinAdsAccountsRetrieveResponseSuccess--export const getIntegrationsLinkedinAdsAccountsRetrieveUrl = (projectId: string, id: number) => {- return `/api/projects/${projectId}/integrations/${id}/linkedin_ads_accounts/`-}--export const integrationsLinkedinAdsAccountsRetrieve = async (+/**+ * Create, read, update, and delete links.+ */+export const linksPartialUpdate = async (projectId: string,- id: number,+ id: string,+ patchedLinkApi?: NonReadonly<PatchedLinkApi>,options?: RequestInit-): Promise<integrationsLinkedinAdsAccountsRetrieveResponse> => {- return apiMutator<integrationsLinkedinAdsAccountsRetrieveResponse>(- getIntegrationsLinkedinAdsAccountsRetrieveUrl(projectId, id),- {- ...options,- method: 'GET',- }- )-}--export type integrationsLinkedinAdsConversionRulesRetrieveResponse200 = {- data: void- status: 200+): Promise<LinkApi> => {+ return apiMutator<LinkApi>(getLinksPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedLinkApi),+ })}-export type integrationsLinkedinAdsConversionRulesRetrieveResponseSuccess =- integrationsLinkedinAdsConversionRulesRetrieveResponse200 & {- headers: Headers- }-export type integrationsLinkedinAdsConversionRulesRetrieveResponse =- integrationsLinkedinAdsConversionRulesRetrieveResponseSuccess--export const getIntegrationsLinkedinAdsConversionRulesRetrieveUrl = (projectId: string, id: number) => {- return `/api/projects/${projectId}/integrations/${id}/linkedin_ads_conversion_rules/`+export const getLinksDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/links/${id}/`}-export const integrationsLinkedinAdsConversionRulesRetrieve = async (- projectId: string,- id: number,- options?: RequestInit-): Promise<integrationsLinkedinAdsConversionRulesRetrieveResponse> => {- return apiMutator<integrationsLinkedinAdsConversionRulesRetrieveResponse>(- getIntegrationsLinkedinAdsConversionRulesRetrieveUrl(projectId, id),- {- ...options,- method: 'GET',- }- )+/**+ * Create, read, update, and delete links.+ */+export const linksDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getLinksDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })}diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex f3ade8079599..b2b13ee1c24a 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -54227,6 +54227,37 @@ export namespace Schemas {teams: LinearTeam[];}+ export interface Link {+ readonly id: string;+ /**+ * Destination the short link redirects to.+ * @maxLength 2048+ */+ redirect_url: string;+ /**+ * Domain the short link is hosted on. Only phog.gg is accepted.+ * @maxLength 255+ */+ short_link_domain: string;+ /**+ * The unique code/path that identifies the short link, e.g. 'abc123'+ * @maxLength 255+ */+ short_code: string;+ /**+ * Free-form note about what the link is for.+ * @nullable+ */+ description?: string | null;+ readonly created_at: string;+ /** @nullable */+ readonly updated_at: string | null;+ /** User who created the link. Null when that user was deleted. */+ readonly created_by: UserBasic | null;+ /** Folder path to file the link under in the project tree. */+ _create_in_folder?: string;+ }+/*** Minimal inbox `SignalReport` projection for the scout reverse lookup — just enough* for the scout UI to render a clickable chip and deep-link into the inbox, which loads@@ -61628,6 +61659,15 @@ export namespace Schemas {results: LegalDocumentDTO[];}+ export interface PaginatedLinkList {+ count: number;+ /** @nullable */+ next?: string | null;+ /** @nullable */+ previous?: string | null;+ results: Link[];+ }+export interface PaginatedListOutputList {count: number;/** @nullable */@@ -71544,6 +71584,37 @@ export namespace Schemas {version_description?: string;}+ export interface PatchedLink {+ readonly id?: string;+ /**+ * Destination the short link redirects to.+ * @maxLength 2048+ */+ redirect_url?: string;+ /**+ * Domain the short link is hosted on. Only phog.gg is accepted.+ * @maxLength 255+ */+ short_link_domain?: string;+ /**+ * The unique code/path that identifies the short link, e.g. 'abc123'+ * @maxLength 255+ */+ short_code?: string;+ /**+ * Free-form note about what the link is for.+ * @nullable+ */+ description?: string | null;+ readonly created_at?: string;+ /** @nullable */+ readonly updated_at?: string | null;+ /** User who created the link. Null when that user was deleted. */+ readonly created_by?: UserBasic | null;+ /** Folder path to file the link under in the project tree. */+ _create_in_folder?: string;+ }+export interface PatchedLiveDebuggerBreakpoint {readonly id?: string;/** @nullable */@@ -108142,6 +108213,17 @@ export namespace Schemas {export type JsSnippetVersionPartialUpdate200 = { [key: string]: unknown };+ export type LinksListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type LiveDebuggerBreakpointsListParams = {filename?: string;/**