@@ -271,6 +271,9 @@ type OrganizationPolicies struct {
271271 // this == duration('0s') || this >= duration('1800s')
272272 // ```
273273 MaximumEnvironmentTimeout string `json:"maximumEnvironmentTimeout" format:"regex"`
274+ // project_creation_defaults contains default settings applied to newly created
275+ // projects.
276+ ProjectCreationDefaults ProjectCreationDefaults `json:"projectCreationDefaults"`
274277 // security_agent_policy contains security agent configuration for the
275278 // organization. When configured, security agents are automatically deployed to all
276279 // environments.
@@ -300,6 +303,7 @@ type organizationPoliciesJSON struct {
300303 EditorVersionRestrictions apijson.Field
301304 MaximumEnvironmentLifetime apijson.Field
302305 MaximumEnvironmentTimeout apijson.Field
306+ ProjectCreationDefaults apijson.Field
303307 SecurityAgentPolicy apijson.Field
304308 VetoExecPolicy apijson.Field
305309 raw string
@@ -340,6 +344,31 @@ func (r organizationPoliciesEditorVersionRestrictionJSON) RawJSON() string {
340344 return r .raw
341345}
342346
347+ // ProjectCreationDefaults contains default settings applied to newly created
348+ // projects.
349+ type ProjectCreationDefaults struct {
350+ // insights_enabled controls whether Insights (co-author attribution) is
351+ // automatically enabled on newly created projects.
352+ InsightsEnabled bool `json:"insightsEnabled"`
353+ JSON projectCreationDefaultsJSON `json:"-"`
354+ }
355+
356+ // projectCreationDefaultsJSON contains the JSON metadata for the struct
357+ // [ProjectCreationDefaults]
358+ type projectCreationDefaultsJSON struct {
359+ InsightsEnabled apijson.Field
360+ raw string
361+ ExtraFields map [string ]apijson.Field
362+ }
363+
364+ func (r * ProjectCreationDefaults ) UnmarshalJSON (data []byte ) (err error ) {
365+ return apijson .UnmarshalRoot (data , r )
366+ }
367+
368+ func (r projectCreationDefaultsJSON ) RawJSON () string {
369+ return r .raw
370+ }
371+
343372// SecurityAgentPolicy contains security agent configuration for an organization.
344373// When enabled, security agents are automatically deployed to all environments.
345374type SecurityAgentPolicy struct {
@@ -497,6 +526,9 @@ type OrganizationPolicyUpdateParams struct {
497526 // in the organization. System ports (VS Code Browser, agents) are always exempt
498527 // from this policy.
499528 PortSharingDisabled param.Field [bool ] `json:"portSharingDisabled"`
529+ // project_creation_defaults contains updates to default settings applied to newly
530+ // created projects.
531+ ProjectCreationDefaults param.Field [OrganizationPolicyUpdateParamsProjectCreationDefaults ] `json:"projectCreationDefaults"`
500532 // require_custom_domain_access controls whether users must access via custom
501533 // domain when one is configured. When true, access via app.gitpod.io is blocked.
502534 RequireCustomDomainAccess param.Field [bool ] `json:"requireCustomDomainAccess"`
@@ -553,6 +585,18 @@ func (r OrganizationPolicyUpdateParamsEditorVersionRestrictions) MarshalJSON() (
553585 return apijson .MarshalRoot (r )
554586}
555587
588+ // project_creation_defaults contains updates to default settings applied to newly
589+ // created projects.
590+ type OrganizationPolicyUpdateParamsProjectCreationDefaults struct {
591+ // insights_enabled controls whether Insights (co-author attribution) is
592+ // automatically enabled on newly created projects.
593+ InsightsEnabled param.Field [bool ] `json:"insightsEnabled"`
594+ }
595+
596+ func (r OrganizationPolicyUpdateParamsProjectCreationDefaults ) MarshalJSON () (data []byte , err error ) {
597+ return apijson .MarshalRoot (r )
598+ }
599+
556600// security_agent_policy contains security agent configuration updates
557601type OrganizationPolicyUpdateParamsSecurityAgentPolicy struct {
558602 // crowdstrike contains CrowdStrike Falcon configuration updates
0 commit comments