{"version":3,"sources":["../../../src/data-v1-data-permissions-permissions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetPermissionsRequest = /*#__PURE__*/ z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the collection to retrieve permissions of.')\n    .max(256),\n});\nexport const GetPermissionsResponse = /*#__PURE__*/ z.object({\n  dataPermissions: z\n    .object({\n      _id: z\n        .string()\n        .describe('ID of the collection for these permissions.')\n        .max(255)\n        .optional(),\n      itemRead: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can read items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemInsert: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can create new items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemUpdate: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can update existing items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemRemove: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can remove items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      specialPermissions: z\n        .array(\n          z.intersection(\n            z.object({\n              _id: z\n                .string()\n                .describe('ID of the special permissions set.')\n                .regex(\n                  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                  'Must be a valid GUID'\n                )\n                .optional(),\n              itemRead: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemInsert: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemUpdate: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemRemove: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n            }),\n            z.xor([\n              z.object({\n                userId: z.never().optional(),\n                policyId: z.never().optional(),\n              }),\n              z.object({\n                policyId: z.never().optional(),\n                userId: z\n                  .string()\n                  .describe('ID of the user for these special permissions.')\n                  .max(64),\n              }),\n              z.object({\n                userId: z.never().optional(),\n                policyId: z\n                  .string()\n                  .describe(\n                    'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n                  )\n                  .max(64),\n              }),\n            ])\n          )\n        )\n        .max(1000)\n        .optional(),\n    })\n    .describe('Permissions of the specified collection.')\n    .optional(),\n});\nexport const UpdatePermissionsRequest = /*#__PURE__*/ z.object({\n  dataPermissions: z\n    .object({\n      _id: z\n        .string()\n        .describe('ID of the collection for these permissions.')\n        .max(255),\n      itemRead: z.enum([\n        'ANYONE',\n        'SITE_MEMBER',\n        'SITE_MEMBER_AUTHOR',\n        'CMS_EDITOR',\n        'PRIVILEGED',\n      ]),\n      itemInsert: z.enum([\n        'ANYONE',\n        'SITE_MEMBER',\n        'SITE_MEMBER_AUTHOR',\n        'CMS_EDITOR',\n        'PRIVILEGED',\n      ]),\n      itemUpdate: z.enum([\n        'ANYONE',\n        'SITE_MEMBER',\n        'SITE_MEMBER_AUTHOR',\n        'CMS_EDITOR',\n        'PRIVILEGED',\n      ]),\n      itemRemove: z.enum([\n        'ANYONE',\n        'SITE_MEMBER',\n        'SITE_MEMBER_AUTHOR',\n        'CMS_EDITOR',\n        'PRIVILEGED',\n      ]),\n      specialPermissions: z\n        .array(\n          z.intersection(\n            z.object({\n              _id: z\n                .string()\n                .describe('ID of the special permissions set.')\n                .regex(\n                  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                  'Must be a valid GUID'\n                )\n                .optional(),\n              itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n              itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n              itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n              itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n            }),\n            z.xor([\n              z.object({\n                userId: z.never().optional(),\n                policyId: z.never().optional(),\n              }),\n              z.object({\n                policyId: z.never().optional(),\n                userId: z\n                  .string()\n                  .describe('ID of the user for these special permissions.')\n                  .max(64),\n              }),\n              z.object({\n                userId: z.never().optional(),\n                policyId: z\n                  .string()\n                  .describe(\n                    'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n                  )\n                  .max(64),\n              }),\n            ])\n          )\n        )\n        .max(1000)\n        .optional(),\n    })\n    .describe('Permissions to update.'),\n});\nexport const UpdatePermissionsResponse = /*#__PURE__*/ z.object({\n  dataPermissions: z\n    .object({\n      _id: z\n        .string()\n        .describe('ID of the collection for these permissions.')\n        .max(255)\n        .optional(),\n      itemRead: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can read items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemInsert: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can create new items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemUpdate: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can update existing items in the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      itemRemove: z\n        .enum([\n          'ANYONE',\n          'SITE_MEMBER',\n          'SITE_MEMBER_AUTHOR',\n          'CMS_EDITOR',\n          'PRIVILEGED',\n        ])\n        .describe(\n          'Which users can remove items from the collection.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n        )\n        .optional(),\n      specialPermissions: z\n        .array(\n          z.intersection(\n            z.object({\n              _id: z\n                .string()\n                .describe('ID of the special permissions set.')\n                .regex(\n                  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                  'Must be a valid GUID'\n                )\n                .optional(),\n              itemRead: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemInsert: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemUpdate: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n              itemRemove: z\n                .enum(['UNSPECIFIED', 'ALLOWED'])\n                .describe(\n                  'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n                )\n                .optional(),\n            }),\n            z.xor([\n              z.object({\n                userId: z.never().optional(),\n                policyId: z.never().optional(),\n              }),\n              z.object({\n                policyId: z.never().optional(),\n                userId: z\n                  .string()\n                  .describe('ID of the user for these special permissions.')\n                  .max(64),\n              }),\n              z.object({\n                userId: z.never().optional(),\n                policyId: z\n                  .string()\n                  .describe(\n                    'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n                  )\n                  .max(64),\n              }),\n            ])\n          )\n        )\n        .max(1000)\n        .optional(),\n    })\n    .describe('Updated permissions of the specified collection.')\n    .optional(),\n});\nexport const AddSpecialPermissionsRequest = /*#__PURE__*/ z.object({\n  dataCollectionId: z\n    .string()\n    .describe('ID of the collection for which to grant special permissions.')\n    .max(256),\n  specialPermissions: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the special permissions set.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional(),\n        itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n      }),\n      z.xor([\n        z.object({\n          policyId: z.never().optional(),\n          userId: z\n            .string()\n            .describe('ID of the user for these special permissions.')\n            .max(64),\n        }),\n        z.object({\n          userId: z.never().optional(),\n          policyId: z\n            .string()\n            .describe(\n              'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n            )\n            .max(64),\n        }),\n      ])\n    )\n    .describe(\n      'Special permissions to grant to the user or role for the specified collection.'\n    ),\n});\nexport const AddSpecialPermissionsResponse = /*#__PURE__*/ z.object({\n  specialPermissions: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the special permissions set.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional(),\n        itemRead: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemInsert: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemUpdate: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemRemove: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n      }),\n      z.xor([\n        z.object({\n          userId: z.never().optional(),\n          policyId: z.never().optional(),\n        }),\n        z.object({\n          policyId: z.never().optional(),\n          userId: z\n            .string()\n            .describe('ID of the user for these special permissions.')\n            .max(64),\n        }),\n        z.object({\n          userId: z.never().optional(),\n          policyId: z\n            .string()\n            .describe(\n              'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n            )\n            .max(64),\n        }),\n      ])\n    )\n    .describe(\n      'Special permissions granted to the user or role for the specified collection.'\n    )\n    .optional(),\n});\nexport const UpdateSpecialPermissionsRequest = /*#__PURE__*/ z.object({\n  _id: z\n    .string()\n    .describe('ID of the special permissions set.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  specialPermissions: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the special permissions set.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional(),\n        itemRead: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemInsert: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemUpdate: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n        itemRemove: z.enum(['UNSPECIFIED', 'ALLOWED']).optional(),\n      }),\n      z.xor([\n        z.object({\n          userId: z.never().optional(),\n          policyId: z.never().optional(),\n        }),\n        z.object({\n          policyId: z.never().optional(),\n          userId: z\n            .string()\n            .describe('ID of the user for these special permissions.')\n            .max(64),\n        }),\n        z.object({\n          userId: z.never().optional(),\n          policyId: z\n            .string()\n            .describe(\n              'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n            )\n            .max(64),\n        }),\n      ])\n    )\n    .describe('Special permissions to update for the specified user or role.'),\n});\nexport const UpdateSpecialPermissionsResponse = /*#__PURE__*/ z.object({\n  specialPermissions: z\n    .intersection(\n      z.object({\n        _id: z\n          .string()\n          .describe('ID of the special permissions set.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional(),\n        itemRead: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can read items from the collection.\\n\\nWhen set to `ALLOWED`, users can read items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemInsert: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can create new items in the collection.\\n\\nWhen set to `ALLOWED`, users can create new items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemUpdate: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can update existing items in the collection.\\n\\nWhen set to `ALLOWED`, users can update existing items in the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n        itemRemove: z\n          .enum(['UNSPECIFIED', 'ALLOWED'])\n          .describe(\n            'Whether the specified users or roles can remove items from the collection.\\n\\nWhen set to `ALLOWED`, users can remove items from the collection. When set to `UNSPECIFIED`, [collection-level permissions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#collection-level-permissions) apply.\\n\\nLearn more about [item actions](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#item-actions).'\n          )\n          .optional(),\n      }),\n      z.xor([\n        z.object({\n          userId: z.never().optional(),\n          policyId: z.never().optional(),\n        }),\n        z.object({\n          policyId: z.never().optional(),\n          userId: z\n            .string()\n            .describe('ID of the user for these special permissions.')\n            .max(64),\n        }),\n        z.object({\n          userId: z.never().optional(),\n          policyId: z\n            .string()\n            .describe(\n              'ID of the [role](https://dev.wix.com/docs/rest/business-solutions/cms/data-permissions/introduction#user-roles) for these special permissions.\\n\\nTo find the ID of a role, call [Get Roles Info](https://dev.wix.com/docs/rest/account-level/user-management/accounts/users/get-roles-info). Roles and their IDs are found in the `predefinedRoles` or the `customRoles` arrays in the method response.\\n\\nLearn more about [roles and permissions for site management](https://support.wix.com/en/article/roles-permissions-overview#roles-and-permissions).'\n            )\n            .max(64),\n        }),\n      ])\n    )\n    .describe('Special permissions updated for the specified user or role.')\n    .optional(),\n});\nexport const RemoveSpecialPermissionsRequest = /*#__PURE__*/ z.object({\n  specialPermissionsId: z\n    .string()\n    .describe('ID of the special permissions to remove.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n});\nexport const RemoveSpecialPermissionsResponse = /*#__PURE__*/ z.object({});\nexport const GetMyPermissionsRequest = /*#__PURE__*/ z.object({\n  dataCollectionId: z\n    .string()\n    .describe(\n      \"ID of the collection for which to check the current user's permissions.\"\n    )\n    .max(256),\n});\nexport const GetMyPermissionsResponse = /*#__PURE__*/ z.object({\n  itemRead: z\n    .boolean()\n    .describe('Whether the current user can read items from the collection.')\n    .optional(),\n  itemInsert: z\n    .boolean()\n    .describe(\n      'Whether the current user can create new items in the collection.'\n    )\n    .optional(),\n  itemUpdate: z\n    .boolean()\n    .describe(\n      'Whether the current user can update existing items in the collection.'\n    )\n    .optional(),\n  itemRemove: z\n    .boolean()\n    .describe('Whether the current user can remove items from the collection.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAAsC,gBAAE,SAAO;AAAA,EAC1D,kBACG,SAAO,EACP,SAAS,kDAAkD,EAC3D,IAAI,GAAG;AACZ,CAAC;AACM,IAAM,yBAAuC,gBAAE,SAAO;AAAA,EAC3D,iBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,GAAG,EACP,SAAS;AAAA,IACZ,UACG,OAAK;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,OAAK;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,YACG,OAAK;AAAA,MACJ;AAA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