Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/generation-report.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Generation Report

## 2026-11-11 | Library v4.7.0b1 | API 1.76.0-beta.1


No Python keyword parameter conflicts detected.


## 2026-11-04 | Library v4.7.0b0 | API 1.76.0-beta.0


Expand Down
2 changes: 1 addition & 1 deletion meraki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
from meraki.exceptions import APIError, APIKeyError, APIResponseError, AsyncAPIError
from meraki.rest_session import RestSession

__api_version__ = "1.76.0-beta.0"
__api_version__ = "1.76.0-beta.1"

__all__ = [
"APIError",
Expand Down
2 changes: 1 addition & 1 deletion meraki/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.7.0b0"
__version__ = "4.7.0b1"
2 changes: 1 addition & 1 deletion meraki/aio/api/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -6321,7 +6321,7 @@ def getOrganizationApplianceVpnSiteToSiteHubsVrfs(self, organizationId: str, tot
- perPage (integer): The number of entries per page returned. Acceptable range is 3 - 500. Default is 50.
- startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
- networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs.
- networkIds (array): Optional parameter to filter source-to-hub mappings by source network IDs. Maximum 100 network IDs.
"""

kwargs.update(locals())
Expand Down
115 changes: 0 additions & 115 deletions meraki/aio/api/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,6 @@ def __init__(self, session):
super().__init__()
self._session = session

def createAdministeredAssistantChatCompletion(self, **kwargs):
"""
**Create a synchronous AI assistant chat completion for user-wide threads**
https://developer.cisco.com/meraki/api-v1/#!create-administered-assistant-chat-completion

- query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input.
- content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded.
- threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID.
- platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively.
- language (string): Optional language override. Defaults to the user's preferred language.
- country (string): Optional country override. Defaults to the user's country.
"""

kwargs.update(locals())

if "platform" in kwargs:
options = ["DIGITAL_TWIN", "DNAC", "MERAKI"]
assert kwargs["platform"] in options, (
f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}'''
)

metadata = {
"tags": ["assistant", "configure", "chat", "completions"],
"operation": "createAdministeredAssistantChatCompletion",
}
resource = "/administered/assistant/chat/completions"

body_params = [
"query",
"content",
"threadId",
"platform",
"language",
"country",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

if self._session._validate_kwargs:
all_params = [] + body_params
invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"]
if invalid and self._session._logger:
self._session._logger.warning(
f"createAdministeredAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}"
)

return self._session.post(metadata, resource, payload)

def getAdministeredAssistantChatThreads(self, total_pages=1, direction="next", **kwargs):
"""
**List all active user-wide conversation threads for the authenticated user.**
Expand Down Expand Up @@ -302,74 +255,6 @@ def getAdministeredAssistantChatThreadMessage(self, threadId: str, messageId: st

return self._session.get(metadata, resource)

def getOrganizationAssistantCapabilities(self, organizationId: str):
"""
**List the AI assistant's available capabilities and agents for this organization.**
https://developer.cisco.com/meraki/api-v1/#!get-organization-assistant-capabilities

- organizationId (string): Organization ID
"""

metadata = {
"tags": ["assistant", "configure", "capabilities"],
"operation": "getOrganizationAssistantCapabilities",
}
organizationId = urllib.parse.quote(str(organizationId), safe="")
resource = f"/organizations/{organizationId}/assistant/capabilities"

return self._session.get(metadata, resource)

def createOrganizationAssistantChatCompletion(self, organizationId: str, **kwargs):
"""
**Create a synchronous AI assistant chat completion**
https://developer.cisco.com/meraki/api-v1/#!create-organization-assistant-chat-completion

- organizationId (string): Organization ID
- query (string): Simple text question or instruction to send to the AI assistant. Provide either 'query' for text-only requests or 'content' for multi-modal input.
- content (array): List of multi-modal content blocks. Use instead of 'query' to send text or images. Maximum 8 parts and 4 total images. Each image must be at most 10 MiB decoded.
- threadId (string): Existing persisted thread ID to continue synchronously. If omitted, the request is handled as a one-off invocation and the response will not include a reusable thread ID.
- networkId (string): Optional network ID to scope the query to a specific network. Defaults to the user's last visited network.
- platform (string): Platform identifier. Defaults to MERAKI when omitted. Values are matched case-insensitively.
- language (string): Optional language override. Defaults to the user's preferred language.
- country (string): Optional country override. Defaults to the user's country.
"""

kwargs.update(locals())

if "platform" in kwargs:
options = ["DIGITAL_TWIN", "DNAC", "MERAKI"]
assert kwargs["platform"] in options, (
f'''"platform" cannot be "{kwargs["platform"]}", & must be set to one of: {options}'''
)

metadata = {
"tags": ["assistant", "configure", "chat", "completions"],
"operation": "createOrganizationAssistantChatCompletion",
}
organizationId = urllib.parse.quote(str(organizationId), safe="")
resource = f"/organizations/{organizationId}/assistant/chat/completions"

body_params = [
"query",
"content",
"threadId",
"networkId",
"platform",
"language",
"country",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

if self._session._validate_kwargs:
all_params = [] + body_params
invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"]
if invalid and self._session._logger:
self._session._logger.warning(
f"createOrganizationAssistantChatCompletion: ignoring unrecognized kwargs: {invalid}"
)

return self._session.post(metadata, resource, payload)

def getOrganizationAssistantChatThreads(self, organizationId: str, total_pages=1, direction="next", **kwargs):
"""
**List all active conversation threads for the authenticated user.**
Expand Down
84 changes: 84 additions & 0 deletions meraki/aio/api/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,90 @@ def getDeviceLiveToolsPowerUsage(self, serial: str, jobId: str):

return self._session.get(metadata, resource)

def createDeviceLiveToolsReadFile(self, serial: str, **kwargs):
"""
**Enqueue a job to read a file from the device**
https://developer.cisco.com/meraki/api-v1/#!create-device-live-tools-read-file

- serial (string): Serial
- command (string): Allowlisted command to execute. Defaults to cat when filePath is provided.
- filePath (string): Allowlisted file or directory path used by cat, grep, head, ls, and wc -l.
- clickHandler (string): Allowlisted read-only Click handler used by click_read.
- args (string): Optional Click handler parameter used by click_read.
- filter (string): Optional case-insensitive literal output filter; required for grep.
- lines (integer): Maximum lines returned by head. Defaults to 10.
- flags (string): Optional flags for grep (-i) or ls (-ltrahs).
- operation (string): Compatibility read operation. Supported values are fileRead and clickRead.
- path (string): Compatibility file path or Click handler path.
- param (string): Optional Click handler parameter for clickRead operations.
- maxBytes (integer): Optional maximum response bytes to return.
- timeoutMs (integer): Optional device request timeout in milliseconds.
- allowRestricted (boolean): Must be true when requesting a restricted path such as /storage/config.
- purpose (string): Optional caller-supplied purpose for the read request.
- callback (object): Details for the callback. Please include either an httpServerId OR url and sharedSecret
"""

kwargs.update(locals())

if "command" in kwargs:
options = ["cat", "click_read", "grep", "head", "ls", "wc -l"]
assert kwargs["command"] in options, (
f'''"command" cannot be "{kwargs["command"]}", & must be set to one of: {options}'''
)

metadata = {
"tags": ["devices", "liveTools", "readFile"],
"operation": "createDeviceLiveToolsReadFile",
}
serial = urllib.parse.quote(str(serial), safe="")
resource = f"/devices/{serial}/liveTools/readFile"

body_params = [
"command",
"filePath",
"clickHandler",
"args",
"filter",
"lines",
"flags",
"operation",
"path",
"param",
"maxBytes",
"timeoutMs",
"allowRestricted",
"purpose",
"callback",
]
payload = {k.strip(): v for k, v in kwargs.items() if k.strip() in body_params}

if self._session._validate_kwargs:
all_params = [] + body_params
invalid = [k for k in kwargs if k.strip() not in all_params and k != "self"]
if invalid and self._session._logger:
self._session._logger.warning(f"createDeviceLiveToolsReadFile: ignoring unrecognized kwargs: {invalid}")

return self._session.post(metadata, resource, payload)

def getDeviceLiveToolsReadFile(self, serial: str, readFileId: str):
"""
**Return a read file live tool job.**
https://developer.cisco.com/meraki/api-v1/#!get-device-live-tools-read-file

- serial (string): Serial
- readFileId (string): Read file ID
"""

metadata = {
"tags": ["devices", "liveTools", "readFile"],
"operation": "getDeviceLiveToolsReadFile",
}
serial = urllib.parse.quote(str(serial), safe="")
readFileId = urllib.parse.quote(str(readFileId), safe="")
resource = f"/devices/{serial}/liveTools/readFile/{readFileId}"

return self._session.get(metadata, resource)

def createDeviceLiveToolsReboot(self, serial: str, **kwargs):
"""
**Enqueue a job to reboot a device**
Expand Down
Loading
Loading