diff --git a/packages/generator/spec.json b/packages/generator/spec.json index 8b23ac1b..903098a5 100644 --- a/packages/generator/spec.json +++ b/packages/generator/spec.json @@ -144,7 +144,7 @@ "/v2-experimental/apps/{app_id}/metrics": { "get": { "summary": "Get app metrics", - "description": "Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period.\n\nThis endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub. \n", + "description": "Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period.\n\nThis endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub.
\n

Required scope

boards:read
\n

Rate limiting

Level 1
\n", "operationId": "get-metrics", "tags": ["app-management"], "parameters": [ @@ -254,7 +254,7 @@ "/v2-experimental/apps/{app_id}/metrics-total": { "get": { "summary": "Get total app metrics", - "description": "Returns total usage metrics for a specific app since the app was created.\n\nThis endpoint requires an app management API token. It can be generated in your apps section of Developer Hub. \n", + "description": "Returns total usage metrics for a specific app since the app was created.\n\nThis endpoint requires an app management API token. It can be generated in your apps section of Developer Hub.
\n

Required scope

boards:read
\n

Rate limiting

Level 1
\n", "operationId": "get-metrics-total", "tags": ["app-management"], "parameters": [ @@ -327,7 +327,7 @@ }, "/v2/audit/logs": { "get": { - "description": "Retrieves a page of audit events.

Required scope

auditlogs:read

Rate limiting

Level 2", + "description": "Retrieves a page of audit events from the last 90 days. If you want to retrieve data that is older than 90 days, you can use the CSV export feature.

Required scope

auditlogs:read

Rate limiting

Level 2", "operationId": "enterprise-get-audit-logs", "parameters": [ { diff --git a/packages/miro-api-python/miro_api/api/__init__.py b/packages/miro-api-python/miro_api/api/__init__.py index 91450876..df5af61e 100644 --- a/packages/miro-api-python/miro_api/api/__init__.py +++ b/packages/miro-api-python/miro_api/api/__init__.py @@ -234,7 +234,7 @@ def enterprise_get_audit_logs( ) -> AuditPage: """Get audit logs - Retrieves a page of audit events.

Required scope

auditlogs:read

Rate limiting

Level 2 + Retrieves a page of audit events from the last 90 days. If you want to retrieve data that is older than 90 days, you can use the CSV export feature.

Required scope

auditlogs:read

Rate limiting

Level 2 :param created_after: Retrieve audit logs created after the date and time provided. This is the start date of the duration for which you want to retrieve audit logs. For example, if you want to retrieve audit logs between `2023-03-30T17:26:50.000Z` and `2023-04-30T17:26:50.000Z`, provide `2023-03-30T17:26:50.000Z` as the value for the `createdAfter` parameter.
Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), including milliseconds and a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).\" (required) :type created_after: str @@ -8392,7 +8392,7 @@ def get_metrics( ) -> List[GetMetrics200ResponseInner]: """Get app metrics - Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period. This endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub. + Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period. This endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub.

Required scope

boards:read

Rate limiting

Level 1
:param app_id: ID of the app to get metrics for. (required) :type app_id: str @@ -8530,7 +8530,7 @@ def get_metrics_total( ) -> GetMetricsTotal200Response: """Get total app metrics - Returns total usage metrics for a specific app since the app was created. This endpoint requires an app management API token. It can be generated in your apps section of Developer Hub. + Returns total usage metrics for a specific app since the app was created. This endpoint requires an app management API token. It can be generated in your apps section of Developer Hub.

Required scope

boards:read

Rate limiting

Level 1
:param app_id: ID of the app to get total metrics for. (required) :type app_id: str diff --git a/packages/miro-api-python/miro_api/api_client.py b/packages/miro-api-python/miro_api/api_client.py index 095d1273..9c49bef7 100644 --- a/packages/miro-api-python/miro_api/api_client.py +++ b/packages/miro-api-python/miro_api/api_client.py @@ -82,7 +82,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/2.2.1/python" + self.user_agent = "OpenAPI-Generator/2.2.2/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/packages/miro-api-python/miro_api/configuration.py b/packages/miro-api-python/miro_api/configuration.py index 562ed9fb..f0234b6b 100644 --- a/packages/miro-api-python/miro_api/configuration.py +++ b/packages/miro-api-python/miro_api/configuration.py @@ -390,7 +390,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: v2.0\n" - "SDK Package Version: 2.2.1".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 2.2.2".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/packages/miro-api/api/apis.ts b/packages/miro-api/api/apis.ts index 8ffe7c2e..e7866dca 100644 --- a/packages/miro-api/api/apis.ts +++ b/packages/miro-api/api/apis.ts @@ -338,7 +338,7 @@ export class MiroApi { } /** - * Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period. This endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub. + * Returns a list of usage metrics for a specific app for a given time range, grouped by requested time period. This endpoint requires an app management API token. It can be generated in the Your Apps section of Developer Hub.

Required scope

boards:read

Rate limiting

Level 1
* @summary Get app metrics * @param appId ID of the app to get metrics for. * @param startDate Start date of the period in UTC format. For example, 2024-12-31. @@ -403,7 +403,7 @@ export class MiroApi { } /** - * Returns total usage metrics for a specific app since the app was created. This endpoint requires an app management API token. It can be generated in your apps section of Developer Hub. + * Returns total usage metrics for a specific app since the app was created. This endpoint requires an app management API token. It can be generated in your apps section of Developer Hub.

Required scope

boards:read

Rate limiting

Level 1
* @summary Get total app metrics * @param appId ID of the app to get total metrics for. */ @@ -436,7 +436,7 @@ export class MiroApi { } /** - * Retrieves a page of audit events.

Required scope

auditlogs:read

Rate limiting

Level 2 + * Retrieves a page of audit events from the last 90 days. If you want to retrieve data that is older than 90 days, you can use the CSV export feature.

Required scope

auditlogs:read

Rate limiting

Level 2 * @summary Get audit logs * @param createdAfter Retrieve audit logs created after the date and time provided. This is the start date of the duration for which you want to retrieve audit logs. For example, if you want to retrieve audit logs between `2023-03-30T17:26:50.000Z` and `2023-04-30T17:26:50.000Z`, provide `2023-03-30T17:26:50.000Z` as the value for the `createdAfter` parameter.<br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), including milliseconds and a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).\" * @param createdBefore Retrieve audit logs created before the date and time provided. This is the end date of the duration for which you want to retrieve audit logs. For example, if you want to retrieve audit logs between `2023-03-30T17:26:50.000Z` and `2023-04-30T17:26:50.000Z`, provide `2023-04-30T17:26:50.000Z` as the value for the `createdBefore` parameter.<br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), including milliseconds and a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).