{"openapi":"3.0.0","paths":{"/api/v1/ping":{"get":{"description":"Verifies the API key is valid and returns the authenticated partner organization details.","operationId":"LmpApiController_ping","parameters":[],"responses":{"200":{"description":"API key is valid.","content":{"application/json":{"schema":{"properties":{"organizationId":{"type":"string"},"organizationName":{"type":"string"}}}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."}},"security":[{"lmp-api-key":[]}],"summary":"Ping","tags":["General"],"x-group":"LmpPublicApi"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}/filespaces":{"get":{"description":"Returns a paginated list of filespaces in the specified workspace.\n            The workspace must belong to an Enterprise organization or a organization owned by the authenticated partner.","operationId":"LmpApiFilespaceController_listFilespaces[0]","parameters":[{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID.","schema":{"type":"string"}},{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"-createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{}}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated list of filespaces.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiFilespaceListResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization or workspace not found, or workspace does not belong to this client."}},"security":[{"lmp-api-key":[]}],"summary":"List filespaces","tags":["Filespaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"filespaces:read"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}/filespaces/{filespaceId}":{"get":{"description":"Returns details of a filespace in the specified workspace.\n            The workspace must belong to an Enterprise organization or a client organization owned by the authenticated partner.","operationId":"LmpApiFilespaceController_getFilespace[0]","parameters":[{"name":"filespaceId","required":true,"in":"path","description":"Filespace ID.","schema":{"type":"string"}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Filespace details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiFilespaceDetailsResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization, workspace, or filespace not found."}},"security":[{"lmp-api-key":[]}],"summary":"Get filespace details","tags":["Filespaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"filespaces:read"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}/filespaces/{filespaceId}/usage":{"get":{"description":"Returns paginated storage usage records for a specific filespace belonging to a organization's workspace.\n            Each record captures per-filespace storage measurements at a given moment.\n            Filter by date range (ISO 8601 datetimes with timezone offset). The `type` storage filter is not supported and returns a BadRequest(400).\n            Data is retained for 2 months; a date range entirely outside that window returns a BadRequest(400).","operationId":"LmpApiFilespaceController_getFilespaceUsage[0]","parameters":[{"name":"filespaceId","required":true,"in":"path","description":"Filespace ID.","schema":{"type":"string"}},{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"type":{"not":{}}},"required":["start","end"]}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID.","schema":{"type":"string"}},{"name":"start","required":true,"in":"query","description":"Start of the date range (ISO 8601 with timezone offset, e.g. 2026-04-21T15:22:00.000Z).","schema":{"example":"2026-04-21T15:22:00.000Z","type":"string"}},{"name":"end","required":true,"in":"query","description":"End of the date range (ISO 8601 with timezone offset, e.g. 2026-05-21T15:22:00.000Z).","schema":{"example":"2026-05-21T15:22:00.000Z","type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated filespace storage usage records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiFilespaceUsageDto"}}}},"400":{"description":"Date range invalid, or the unsupported `type` query param was provided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Filespace not found or does not belong to this organization's workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get filespace storage usage","tags":["Filespaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"filespaces:read"}},"/api/v1/me":{"get":{"description":"Returns the authenticated partner organization details associated with the API key.","operationId":"LmpApiMeController_getMe","parameters":[],"responses":{"200":{"description":"Partner organization details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiMeResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."}},"security":[{"lmp-api-key":[]}],"summary":"Get partner organization details","tags":["Me"],"x-group":"LmpPublicApi","x-lmp-required-permission":"me:read"}},"/api/v1/me/usage/current":{"get":{"description":"Returns the MSP channel partner's usage for the current billing period.\n            Available for MSP channel partners only — VAR resellers receive a 400.\n            Includes member counts, per-provider storage usage (GB),\n            and optional LucidLink Connect and TeamCache metrics when included in the contract.","operationId":"LmpApiMeController_getCurrentUsage","parameters":[],"responses":{"200":{"description":"Current billing period usage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiCurrentUsageDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"No active contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get MSP channel partner current usage","tags":["Me"],"x-group":"LmpPublicApi","x-lmp-required-permission":"me:read"}},"/api/v1/organizations/{organizationId}/members":{"post":{"description":"Adds a member by email to the specified organization: one of your client organizations, or your own organization.\n            The first member added to an organization is automatically set as the owner.\n            A member's `status` is `new` until the member signs in with that email\n            after being added, at which point it becomes `active`.","operationId":"LmpApiMembersController_addMember[0]","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiAddClientMemberRequestDto"}}}},"responses":{"201":{"description":"Member added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiClientMemberResponseDto"}}}},"400":{"description":"Validation error. Possible error codes:\n            partnerOrganization.member.alreadyExists (email already a member of this organization)."},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to this partner."}},"security":[{"lmp-api-key":[]}],"summary":"Add a member to an organization","tags":["Members"],"x-group":"LmpPublicApi","x-lmp-required-permission":"members:write"},"get":{"description":"Returns a paginated list of members of the specified organization.\n            A member's `status` is `new` until the member signs in with that email\n            after being added, at which point it becomes `active`.","operationId":"LmpApiMembersController_listMembers[0]","parameters":[{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"-createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{"status":{"type":"string","enum":["new","active"]}}}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}},{"name":"status","required":false,"in":"query","description":"Filter members by membership status.","schema":{"enum":["new","active"],"type":"string"}}],"responses":{"200":{"description":"Paginated list of members.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiListClientMembersResponseDto"}}}},"400":{"description":"Validation error. Possible error codes:\n            partnerOrganization.member.status.invalid (status is not one of the supported membership statuses)."},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to this partner."}},"security":[{"lmp-api-key":[]}],"summary":"List members of an organization","tags":["Members"],"x-group":"LmpPublicApi","x-lmp-required-permission":"members:read"}},"/api/v1/organizations/{organizationId}/members/owner":{"get":{"description":"Returns the owner member of the specified organization.\n            A member's `status` is `new` until the member signs in with that email\n            after being added, at which point it becomes `active`.","operationId":"LmpApiMembersController_getOwner[0]","parameters":[],"responses":{"200":{"description":"Owner member details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiClientMemberResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found, does not belong to this partner, or has no owner."}},"security":[{"lmp-api-key":[]}],"summary":"Get owner of an organization","tags":["Members"],"x-group":"LmpPublicApi","x-lmp-required-permission":"members:read"}},"/api/v1/organizations/{organizationId}/members/{accountId}":{"get":{"description":"Returns details of a specific member of the organization.\n            A member's `status` is `new` until the member signs in with that email\n            after being added, at which point it becomes `active`.","operationId":"LmpApiMembersController_getMember[0]","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Member details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiClientMemberResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization or member not found."}},"security":[{"lmp-api-key":[]}],"summary":"Get a member of an organization by account ID","tags":["Members"],"x-group":"LmpPublicApi","x-lmp-required-permission":"members:read"},"delete":{"description":"Removes a member from the specified organization.\n            Removing the owner is not permitted (errorCode: partnerOrganization.member.removeOwner).","operationId":"LmpApiMembersController_deleteMember[0]","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Member removed."},"400":{"description":"Business constraint violated. Possible error codes:\n            partnerOrganization.member.removeOwner (cannot remove the owner of an organization)."},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization or member not found."}},"security":[{"lmp-api-key":[]}],"summary":"Remove a member from an organization","tags":["Members"],"x-group":"LmpPublicApi","x-lmp-required-permission":"members:write"}},"/api/v1/organizations":{"post":{"description":"Creates a new organization under the authenticated parent organization.\n            Requires a `name` (unique within the partner) and an optional `notes` field (max 200 characters).","operationId":"LmpApiOrganizationsController_createOrganization[0]","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiCreateOrganizationRequestDto"}}}},"responses":{"201":{"description":"Organization created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiCreateOrganizationResponseDto"}}}},"400":{"description":"Validation error or business constraint violated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiValidationErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."}},"security":[{"lmp-api-key":[]}],"summary":"Create organization","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:write"},"get":{"description":"Returns a paginated list of organizations belonging to the authenticated parent organization.","operationId":"LmpApiOrganizationsController_listOrganizations[0]","parameters":[{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"-createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{}}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated list of organizations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiOrganizationsListResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."}},"security":[{"lmp-api-key":[]}],"summary":"List organizations","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:read"}},"/api/v1/organizations/{organizationId}":{"delete":{"description":"Deletes an organization belonging to the authenticated parent organization.\n            All workspaces and filespaces under the organization are permanently removed.\n            A client in status `new`, `trial` or `trial_expired` can be deleted. Any other status blocks deletion,\n            except that an MSP-family client without workspaces can still be deleted.","operationId":"LmpApiOrganizationsController_deleteOrganization[0]","parameters":[],"responses":{"204":{"description":"Organization deleted."},"400":{"description":"Deletion constraint violated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to this parent organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Delete organization","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:write"},"get":{"description":"Returns a single organization.","operationId":"LmpApiOrganizationsController_getOrganization[0]","parameters":[{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiOrganizationDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to the authenticated parent organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get organization","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:read"}},"/api/v1/organizations/{organizationId}/usage/current":{"get":{"description":"Returns the organization's usage for the current billing period. Available for VAR client organizations, and for your own organization when it is an MSP-family reseller.\n            Includes member counts, per-provider storage usage (GB), and optional LucidLink Connect and TeamCache metrics when included in the contract.","operationId":"LmpApiOrganizationsController_getCurrentUsage[0]","parameters":[{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Current billing period usage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiCurrentUsageDto"}}}},"400":{"description":"Not available for this organization (MSP client organizations have no contract of their own).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found, does not belong to this partner, or has no active contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get organization current usage","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:read"}},"/api/v1/organizations/{organizationId}/usage":{"get":{"description":"Returns paginated storage usage records for an organization.\n            Each record captures per-filespace storage measurements (object store and S3) at a given moment.\n            Filter by storage type (`aws`, `custom`, `wasabi`, `ibm`) and date range (ISO 8601 datetimes).\n            Data is retained for 2 months; a date range entirely outside that window returns a BadRequest(400).","operationId":"LmpApiOrganizationsController_getUsage[0]","parameters":[{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"type":{"type":"string","enum":["aws","custom","wasabi","ibm"]}},"required":["start","end"]}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID.","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","description":"Storage type to filter by. When omitted, usage of all storage types is returned.","schema":{"enum":["aws","custom","wasabi","ibm"],"type":"string"}},{"name":"start","required":true,"in":"query","description":"Start of the date range (ISO 8601 with timezone offset, e.g. 2026-04-21T15:22:00.000Z).","schema":{"example":"2026-04-21T15:22:00.000Z","type":"string"}},{"name":"end","required":true,"in":"query","description":"End of the date range (ISO 8601 with timezone offset, e.g. 2026-05-21T15:22:00.000Z).","schema":{"example":"2026-05-21T15:22:00.000Z","type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated storage usage records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiStorageUsageResponseDto"}}}},"400":{"description":"Date range or storage type invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to this parent organization."}},"security":[{"lmp-api-key":[]}],"summary":"Get organization storage usage","tags":["Organizations"],"x-group":"LmpPublicApi","x-lmp-required-permission":"organizations:read"}},"/api/v1/organizations/{organizationId}/workspaces":{"get":{"description":"Lists all workspaces belonging to a specific Enterprise or client organization.\n              Returns paginated results with workspace details including id, name and createdAt.\n              Requires the client to belong to the authenticated partner organization.","operationId":"LmpApiWorkspacesController_listWorkspaces[0]","parameters":[{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"-createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{}}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID. Either a client organization, or your own organization.","schema":{"type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Organizational workspaces retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiWorkspacesListResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Organization not found or does not belong to this parent organization."}},"security":[{"lmp-api-key":[]}],"summary":"List organizational workspaces","tags":["Workspaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"workspaces:read"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}":{"get":{"description":"Returns basic details for a specific workspace.\n                    The workspace must belong to an Enterprise or a client organization under the authenticated parent organization.","operationId":"LmpApiWorkspacesController_getWorkspaceDetails[0]","parameters":[{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID","schema":{"type":"string"}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID. Either a client organization, or your own organization.","schema":{"type":"string"}}],"responses":{"200":{"description":"Workspace details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiWorkspaceDetailsDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Workspace not found or does not belong to this organization"}},"security":[{"lmp-api-key":[]}],"summary":"Get workspace details","tags":["Workspaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"workspaces:read"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}/usage":{"get":{"description":"Returns paginated storage usage records for a specific workspace belonging to an organization.\n            Each record captures per-filespace storage measurements at a given moment.\n            Filter by storage type (`aws`, `custom`, `wasabi`, `ibm`) and date range (ISO 8601 datetimes with timezone offset).\n            Data is retained for 2 months; a date range entirely outside that window returns a BadRequest(400).","operationId":"LmpApiWorkspacesController_getWorkspaceUsage[0]","parameters":[{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID.","schema":{"type":"string"}},{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"type":{"type":"string","enum":["aws","custom","wasabi","ibm"]}},"required":["start","end"]}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID. Either a client organization, or your own organization.","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","description":"Storage type to filter by. When omitted, usage of all storage types is returned.","schema":{"enum":["aws","custom","wasabi","ibm"],"type":"string"}},{"name":"start","required":true,"in":"query","description":"Start of the date range (ISO 8601 with timezone offset, e.g. 2026-04-21T15:22:00.000Z).","schema":{"example":"2026-04-21T15:22:00.000Z","type":"string"}},{"name":"end","required":true,"in":"query","description":"End of the date range (ISO 8601 with timezone offset, e.g. 2026-05-21T15:22:00.000Z).","schema":{"example":"2026-05-21T15:22:00.000Z","type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated workspace storage usage records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiWorkspaceUsageDto"}}}},"400":{"description":"Date range or storage type invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Workspace not found or does not belong to this organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get workspace storage usage","tags":["Workspaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"workspaces:read"}},"/api/v1/organizations/{organizationId}/workspaces/{workspaceId}/usage/members":{"get":{"description":"Returns paginated member usage records for a specific workspace belonging to an organization.\n            Each record captures member counts (total, active, deactivated, pending, guest, SCIM active, SCIM deactivated) at a given moment.\n            Filter by date range (ISO 8601 datetimes with timezone offset).\n            Data is retained for 2 months; a date range entirely outside that window returns a BadRequest(400).","operationId":"LmpApiWorkspacesController_getWorkspaceMembersUsage[0]","parameters":[{"name":"workspaceId","required":true,"in":"path","description":"Workspace ID.","schema":{"type":"string"}},{"name":"root","required":false,"in":"query","allOf":[{"type":"object","properties":{"p":{"default":1,"anyOf":[{"type":"string"},{"type":"number"}]},"l":{"default":100,"anyOf":[{"type":"string"},{"type":"number"}]},"s":{"default":"createdAt","type":"string","enum":["createdAt","-createdAt"]}}},{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["start","end"]}],"x-nestjs_zod-unwrap-root":true,"x-nestjs_zod-empty-type":true,"schema":{}},{"name":"organizationId","required":true,"in":"path","description":"Organization ID. Either a client organization, or your own organization.","schema":{"type":"string"}},{"name":"start","required":true,"in":"query","description":"Start of the date range (ISO 8601 with timezone offset, e.g. 2026-04-21T15:22:00.000Z).","schema":{"example":"2026-04-21T15:22:00.000Z","type":"string"}},{"name":"end","required":true,"in":"query","description":"End of the date range (ISO 8601 with timezone offset, e.g. 2026-05-21T15:22:00.000Z).","schema":{"example":"2026-05-21T15:22:00.000Z","type":"string"}},{"name":"p","required":false,"in":"query","description":"Page number.","schema":{"type":"number"}},{"name":"l","required":false,"in":"query","description":"Page size (max 300). Default is 100.","schema":{"type":"number"}},{"name":"s","required":false,"in":"query","description":"Sort field. Prefix with `-` for descending.","schema":{"enum":["createdAt","-createdAt"],"type":"string"}}],"responses":{"200":{"description":"Paginated workspace members usage records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiWorkspaceMembersUsageDto"}}}},"400":{"description":"Date range invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}},"401":{"description":"Missing or invalid API key."},"403":{"description":"API key is valid but the request is not allowed: the organization is not a channel partner, the request IP is not in the key's allow-list, or the key lacks the permission required by this endpoint."},"404":{"description":"Workspace not found or does not belong to this organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LmpApiErrorResponseDto"}}}}},"security":[{"lmp-api-key":[]}],"summary":"Get workspace members usage","tags":["Workspaces"],"x-group":"LmpPublicApi","x-lmp-required-permission":"workspaces:read"}}},"info":{"title":"LucidLink Management Platform API","description":"REST API for LucidLink Management Platform (LMP)","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"lmp-api-key":{"type":"apiKey","in":"header","name":"Authorization","description":"Format: ApiKey <key>"}},"schemas":{"LmpApiFilespaceListResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"storage":{"type":"object","properties":{"owner":{"default":"$unknown","anyOf":[{"type":"string","enum":["any","lucidlink","customer"]},{"type":"string"}]},"provider":{"type":"string"},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"blockSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["owner","provider","region","blockSize"]},"filespaceFormat":{"anyOf":[{"default":"$unknown","anyOf":[{"type":"string","enum":["1.0","2.0","2.2","3.0","3.3","3.5","3.6","3.8","3.9"]},{"type":"string"}]},{"type":"null"}]},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["WaitingForHubAssignment","WaitingForStorage","Provisioning","ReadyForInitialization","Initialized","Errored"]},{"type":"string"}]},"suspensionStatus":{"default":"$unknown","anyOf":[{"type":"string","enum":["WaitingForSuspension","Suspending","Suspended","SuspensionFailed","WaitingForUnsuspension","WaitingForHubAssignment","WaitingForBackupRestoration","Provisioning","NotSuspended","UnsuspensionFailed","Errored"]},{"type":"string"}]}},"required":["id","name","createdAt","storage","filespaceFormat","status","suspensionStatus"]},"x-nestjs_zod-has-null":true},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"],"x-nestjs_zod-has-null":true}},"required":["items","meta"]},"LmpApiFilespaceDetailsResponseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","x-nestjs_zod-has-null":true},"name":{"type":"string","x-nestjs_zod-has-null":true},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","x-nestjs_zod-has-null":true},"storage":{"type":"object","properties":{"owner":{"default":"$unknown","anyOf":[{"type":"string","enum":["any","lucidlink","customer"]},{"type":"string"}]},"provider":{"type":"string"},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"blockSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["owner","provider","region","blockSize"],"x-nestjs_zod-has-null":true},"filespaceFormat":{"anyOf":[{"default":"$unknown","anyOf":[{"type":"string","enum":["1.0","2.0","2.2","3.0","3.3","3.5","3.6","3.8","3.9"]},{"type":"string"}]},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["WaitingForHubAssignment","WaitingForStorage","Provisioning","ReadyForInitialization","Initialized","Errored"]},{"type":"string"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"suspensionStatus":{"default":"$unknown","anyOf":[{"type":"string","enum":["WaitingForSuspension","Suspending","Suspended","SuspensionFailed","WaitingForUnsuspension","WaitingForHubAssignment","WaitingForBackupRestoration","Provisioning","NotSuspended","UnsuspensionFailed","Errored"]},{"type":"string"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true}},"required":["id","name","createdAt","storage","filespaceFormat","status","suspensionStatus"]},"LmpApiFilespaceUsageDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"filespaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"llcStorageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"type":"string"}},"required":["createdAt","filespaceId","storageSizeMb","llcStorageSizeMb","provider"]}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"]}},"required":["items","meta"]},"LmpApiErrorResponseDto":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}},"required":["type","message"]}},"required":["error"]},"LmpApiMeResponseDto":{"type":"object","properties":{"id":{"type":"string","x-nestjs_zod-has-null":true},"name":{"type":"string","x-nestjs_zod-has-null":true},"owner":{"anyOf":[{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"supportedBillingModels":{"type":"array","items":{"type":"string"},"x-nestjs_zod-has-null":true},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","x-nestjs_zod-has-null":true},"status":{"type":"string","x-nestjs_zod-has-null":true},"expirationDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"billingPeriod":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["start","end"]},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true}},"required":["id","name","owner","tier","supportedBillingModels","createdAt","status"]},"LmpApiCurrentUsageDto":{"type":"object","properties":{"period":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["start","end"],"x-nestjs_zod-has-null":true},"members":{"type":"object","properties":{"prepaid":{"type":"number"},"peak":{"type":"number"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["prepaid","peak","current","max"],"x-nestjs_zod-has-null":true},"storage":{"type":"object","properties":{"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"unit":{"type":"string","const":"GB"},"aws":{"type":"object","properties":{"prepaid":{"type":"number"},"used":{"type":"number"},"overage":{"type":"number"},"current":{"type":"number"}},"required":["prepaid","used","overage","current"]},"custom":{"type":"object","properties":{"prepaid":{"type":"number"},"used":{"type":"number"},"overage":{"type":"number"},"current":{"type":"number"}},"required":["prepaid","used","overage","current"]},"ibm":{"type":"object","properties":{"prepaid":{"type":"number"},"used":{"type":"number"},"overage":{"type":"number"},"current":{"type":"number"}},"required":["prepaid","used","overage","current"]},"wasabi":{"type":"object","properties":{"prepaid":{"type":"number"},"used":{"type":"number"},"overage":{"type":"number"},"current":{"type":"number"}},"required":["prepaid","used","overage","current"]}},"required":["max","unit","aws","custom","ibm","wasabi"],"x-nestjs_zod-has-null":true},"lucidLinkConnect":{"type":"object","properties":{"prepaid":{"type":"number"},"used":{"type":"number"},"overage":{"type":"number"},"current":{"type":"number"}},"required":["prepaid","used","overage","current"],"x-nestjs_zod-has-null":true},"teamCache":{"type":"object","properties":{"installations":{"type":"number"}},"required":["installations"],"x-nestjs_zod-has-null":true}},"required":["period","members","storage"]},"LmpApiAddClientMemberRequestDto":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]},"LmpApiClientMemberResponseDto":{"type":"object","properties":{"id":{"type":"string","x-nestjs_zod-has-null":true},"role":{"type":"string","x-nestjs_zod-has-null":true},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["new","active"]},{"type":"string"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","x-nestjs_zod-has-null":true}},"required":["id","role","email","status","createdAt"]},"LmpApiListClientMembersResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["new","active"]},{"type":"string"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","role","email","status","createdAt"]},"x-nestjs_zod-has-null":true},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"pageCount":{"type":"number"},"itemCount":{"type":"number"}},"required":["page","pageSize","pageCount","itemCount"],"x-nestjs_zod-has-null":true}},"required":["items","meta"]},"LmpApiCreateOrganizationRequestDto":{"type":"object","properties":{"name":{"minLength":2,"maxLength":100,"allOf":[{"pattern":"^[\\dA-Za-z]"},{"pattern":"[\\dA-Za-z]$"},{"pattern":"^[\\s\\w()/-]+$"},{"pattern":"^[\\dA-Za-z][\\s\\w()/-]*[\\dA-Za-z]$"}]},"notes":{"type":"string","maxLength":200}},"required":["name"]},"LmpApiCreateOrganizationResponseDto":{"type":"object","properties":{"id":{"type":"string","x-nestjs_zod-has-null":true},"name":{"type":"string","x-nestjs_zod-has-null":true},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true}},"required":["id","name","notes"]},"LmpApiValidationErrorResponseDto":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","const":"validation_error"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["message"]}}},"required":["type","message","details"]}},"required":["error"]},"LmpApiStorageUsageResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"filespaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"llcStorageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"type":"string"}},"required":["createdAt","filespaceId","storageSizeMb","llcStorageSizeMb","provider"]}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"]}},"required":["items","meta"]},"LmpApiOrganizationsListResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["var","msp","msp_central","msp_enterprise"]},"id":{"type":"string"},"name":{"type":"string"},"owner":{"type":"object","properties":{"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]}},"required":["email"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["new","trial","active","trial_expired","past_due","unpaid","canceled","incomplete","incomplete_expired","contract_expired"]},{"type":"string"}]},"expirationDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"billingPeriod":{"anyOf":[{"type":"object","properties":{"startDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["startDate","endDate"]},{"type":"null"}]}},"required":["type","id","name","owner","createdAt","status"]},"x-nestjs_zod-has-null":true},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"],"x-nestjs_zod-has-null":true}},"required":["items","meta"]},"LmpApiOrganizationDto":{"type":"object","properties":{"type":{"type":"string","enum":["var","msp","msp_central","msp_enterprise"],"x-nestjs_zod-has-null":true},"id":{"type":"string","x-nestjs_zod-has-null":true},"name":{"type":"string","x-nestjs_zod-has-null":true},"owner":{"type":"object","properties":{"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]}},"required":["email"],"x-nestjs_zod-has-null":true},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","x-nestjs_zod-has-null":true},"status":{"default":"$unknown","anyOf":[{"type":"string","enum":["new","trial","active","trial_expired","past_due","unpaid","canceled","incomplete","incomplete_expired","contract_expired"]},{"type":"string"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"expirationDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true},"billingPeriod":{"anyOf":[{"type":"object","properties":{"startDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["startDate","endDate"]},{"type":"null"}],"x-nestjs_zod-has-null":true,"x-nestjs_zod-empty-type":true}},"required":["type","id","name","owner","createdAt","status"]},"LmpApiWorkspacesListResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","createdAt"]}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"]}},"required":["items","meta"]},"LmpApiWorkspaceDetailsDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","createdAt"]},"LmpApiWorkspaceUsageDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"filespaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"llcStorageSizeMb":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"type":"string"}},"required":["createdAt","filespaceId","storageSizeMb","llcStorageSizeMb","provider"]}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"]}},"required":["items","meta"]},"LmpApiWorkspaceMembersUsageDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"deactivated":{"type":"integer","minimum":0,"maximum":9007199254740991},"pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"guests":{"type":"integer","minimum":0,"maximum":9007199254740991},"scim":{"type":"object","properties":{"active":{"type":"integer","minimum":0,"maximum":9007199254740991},"deactivated":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["active","deactivated"]}},"required":["createdAt","total","active","deactivated","pending","guests","scim"]}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"itemCount":{"type":"number"},"pageCount":{"type":"number"}},"required":["page","pageSize","itemCount","pageCount"]}},"required":["items","meta"]}}},"x-lmp-permissions":[{"permission":"organizations:read","description":"View organizations and their storage and current usage."},{"permission":"organizations:write","description":"Create and delete client organizations."},{"permission":"workspaces:read","description":"View organization workspaces, their details, and their storage and member usage."},{"permission":"filespaces:read","description":"View filespaces, their details, and their storage usage."},{"permission":"me:read","description":"View the key owner's partner organization details and current usage."},{"permission":"members:read","description":"View members of an organization, including its owner."},{"permission":"members:write","description":"Add and remove members of an organization."}]}