@@ -25,6 +25,9 @@ export interface HubUpdateRequestV2025R0 {
2525 /**
2626 * Indicates if a shared link can be created for the Box Hub. */
2727 readonly canSharedLinkBeCreated ?: boolean ;
28+ /**
29+ * Indicates if a public shared link can be created for the Box Hub. */
30+ readonly canPublicSharedLinkBeCreated ?: boolean ;
2831 readonly rawData ?: SerializedData ;
2932}
3033export function serializeHubUpdateRequestV2025R0 (
@@ -38,6 +41,7 @@ export function serializeHubUpdateRequestV2025R0(
3841 val . isCollaborationRestrictedToEnterprise ,
3942 [ 'can_non_owners_invite' ] : val . canNonOwnersInvite ,
4043 [ 'can_shared_link_be_created' ] : val . canSharedLinkBeCreated ,
44+ [ 'can_public_shared_link_be_created' ] : val . canPublicSharedLinkBeCreated ,
4145 } ;
4246}
4347export function deserializeHubUpdateRequestV2025R0 (
@@ -107,6 +111,19 @@ export function deserializeHubUpdateRequestV2025R0(
107111 val . can_shared_link_be_created == void 0
108112 ? void 0
109113 : val . can_shared_link_be_created ;
114+ if (
115+ ! ( val . can_public_shared_link_be_created == void 0 ) &&
116+ ! sdIsBoolean ( val . can_public_shared_link_be_created )
117+ ) {
118+ throw new BoxSdkError ( {
119+ message :
120+ 'Expecting boolean for "can_public_shared_link_be_created" of type "HubUpdateRequestV2025R0"' ,
121+ } ) ;
122+ }
123+ const canPublicSharedLinkBeCreated : undefined | boolean =
124+ val . can_public_shared_link_be_created == void 0
125+ ? void 0
126+ : val . can_public_shared_link_be_created ;
110127 return {
111128 title : title ,
112129 description : description ,
@@ -115,5 +132,6 @@ export function deserializeHubUpdateRequestV2025R0(
115132 isCollaborationRestrictedToEnterprise ,
116133 canNonOwnersInvite : canNonOwnersInvite ,
117134 canSharedLinkBeCreated : canSharedLinkBeCreated ,
135+ canPublicSharedLinkBeCreated : canPublicSharedLinkBeCreated ,
118136 } satisfies HubUpdateRequestV2025R0 ;
119137}
0 commit comments