diff --git a/api/ttn/lorawan/v3/api.swagger.json b/api/ttn/lorawan/v3/api.swagger.json index 92c8d032d4..3e0c55824a 100644 --- a/api/ttn/lorawan/v3/api.swagger.json +++ b/api/ttn/lorawan/v3/api.swagger.json @@ -315,84 +315,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "description": "The identifiers of the application. These are public and can be seen by any authenticated user in the network.", - "title": "The identifiers of the application. These are public and can be seen by any authenticated user in the network." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "When the application was created. This information is public and can be seen by any authenticated user in the network." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "When the application was last updated. This information is public and can be seen by any authenticated user in the network." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the application was deleted. This information is public and can be seen by any authenticated user in the network." - }, - "name": { - "type": "string", - "description": "The name of the application." - }, - "description": { - "type": "string", - "description": "A description for the application." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this application. Typically used for organizing applications or for storing integration-specific data." - }, - "contact_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ContactInfo" - }, - "description": "Contact information for this application. Typically used to indicate who to contact with technical/security questions about the application.\nThis field is deprecated. Use administrative_contact and technical_contact instead." - }, - "administrative_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "technical_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "dev_eui_counter": { - "type": "integer", - "format": "int64" - } - }, - "description": "Application is the message that defines an Application in the network." - }, - "field_mask": { - "type": "string", - "description": "The names of the application fields that should be updated." - } - } + "$ref": "#/definitions/v3ApplicationRegistryUpdateBody" } } ], @@ -521,25 +444,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "name": { - "type": "string" - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - } - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } + "$ref": "#/definitions/v3ApplicationAccessCreateAPIKeyBody" } } ], @@ -585,48 +490,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "api_key": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." - }, - "name": { - "type": "string", - "description": "User-defined (friendly) name for the API key." - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - }, - "description": "Rights that are granted to this API key." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the api key fields that should be updated." - } - } + "$ref": "#/definitions/v3ApplicationAccessUpdateAPIKeyBody" } } ], @@ -1002,15 +866,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "collaborator": { - "$ref": "#/definitions/v3Collaborator" - } - } + "$ref": "#/definitions/v3ApplicationAccessSetCollaboratorBody" } } ], @@ -1492,277 +1348,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "device_id": { - "type": "string" - }, - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - } - } + "$ref": "#/definitions/v3EndDeviceRegistryCreateBody" } } ], @@ -1807,278 +1393,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "$ref": "#/definitions/v3EndDeviceRegistryUpdateBody" } } ], @@ -2446,18 +1761,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "link": { - "$ref": "#/definitions/v3ApplicationLink" - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/AsSetLinkBody" } } ], @@ -2878,62 +2182,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "association": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "package_name": { - "type": "string" - }, - "data": { - "type": "object" - } - } - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/ApplicationPackageRegistrySetAssociationBody" } } ], @@ -2979,39 +2228,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "default": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "package_name": { - "type": "string" - }, - "data": { - "type": "object" - } - } - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/ApplicationPackageRegistrySetDefaultAssociationBody" } } ], @@ -3050,281 +2267,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "device_id": { - "type": "string" - }, - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "$ref": "#/definitions/v3AsEndDeviceRegistrySetBody" } } ], @@ -3369,278 +2312,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "$ref": "#/definitions/v3AsEndDeviceRegistrySetBody" } } ], @@ -3752,47 +2424,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" - }, - "downlink": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "formatter": { - "$ref": "#/definitions/v3PayloadFormatter" - }, - "parameter": { - "type": "string" - } - } + "$ref": "#/definitions/AppAsDecodeDownlinkBody" } } ], @@ -3836,47 +2468,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" - }, - "downlink": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "formatter": { - "$ref": "#/definitions/v3PayloadFormatter" - }, - "parameter": { - "type": "string" - } - } + "$ref": "#/definitions/AppAsEncodeDownlinkBody" } } ], @@ -3922,42 +2514,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - } - } - } + "$ref": "#/definitions/v3AppAsDownlinkQueuePushBody" } } ], @@ -4003,42 +2560,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - } - } - } + "$ref": "#/definitions/v3AppAsDownlinkQueueReplaceBody" } } ], @@ -4387,47 +2909,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" - }, - "uplink": { - "$ref": "#/definitions/v3ApplicationUplink" - }, - "formatter": { - "$ref": "#/definitions/v3PayloadFormatter" - }, - "parameter": { - "type": "string" - } - } + "$ref": "#/definitions/AppAsDecodeUplinkBody" } } ], @@ -4473,84 +2955,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "correlation_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "received_at": { - "type": "string", - "format": "date-time", - "description": "Server time when the Application Server received the message." - }, - "uplink_message": { - "$ref": "#/definitions/v3ApplicationUplink" - }, - "uplink_normalized": { - "$ref": "#/definitions/v3ApplicationUplinkNormalized" - }, - "join_accept": { - "$ref": "#/definitions/v3ApplicationJoinAccept" - }, - "downlink_ack": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "downlink_nack": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "downlink_sent": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "downlink_failed": { - "$ref": "#/definitions/v3ApplicationDownlinkFailed" - }, - "downlink_queued": { - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "downlink_queue_invalidated": { - "$ref": "#/definitions/v3ApplicationInvalidatedDownlinks" - }, - "location_solved": { - "$ref": "#/definitions/v3ApplicationLocation" - }, - "service_data": { - "$ref": "#/definitions/v3ApplicationServiceData" - }, - "simulated": { - "type": "boolean", - "description": "Signals if the message is coming from the Network Server or is simulated.\nThe Application Server automatically sets this field, and callers must not manually set it." - } - }, - "description": "Application uplink message." + "$ref": "#/definitions/AppAsSimulateUplinkBody" } } ], @@ -4994,101 +3399,14 @@ "name": "pubsub.ids.application_ids.application_id", "in": "path", "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "pubsub": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "pub_sub_id": { - "type": "string" - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "format": { - "type": "string", - "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." - }, - "nats": { - "$ref": "#/definitions/ApplicationPubSubNATSProvider" - }, - "mqtt": { - "$ref": "#/definitions/ApplicationPubSubMQTTProvider" - }, - "aws_iot": { - "$ref": "#/definitions/ApplicationPubSubAWSIoTProvider" - }, - "base_topic": { - "type": "string", - "description": "Base topic name to which the messages topic is appended." - }, - "downlink_push": { - "$ref": "#/definitions/v3ApplicationPubSubMessage", - "description": "The topic to which the Application Server subscribes for downlink queue push operations." - }, - "downlink_replace": { - "$ref": "#/definitions/v3ApplicationPubSubMessage", - "description": "The topic to which the Application Server subscribes for downlink queue replace operations." - }, - "uplink_message": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "uplink_normalized": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "join_accept": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_ack": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_nack": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_sent": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_failed": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_queued": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_queue_invalidated": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "location_solved": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "service_data": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - } - } - }, - "field_mask": { - "type": "string" - } - } + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v3ApplicationPubSubRegistrySetBody" } } ], @@ -5132,91 +3450,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "pubsub": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "format": { - "type": "string", - "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." - }, - "nats": { - "$ref": "#/definitions/ApplicationPubSubNATSProvider" - }, - "mqtt": { - "$ref": "#/definitions/ApplicationPubSubMQTTProvider" - }, - "aws_iot": { - "$ref": "#/definitions/ApplicationPubSubAWSIoTProvider" - }, - "base_topic": { - "type": "string", - "description": "Base topic name to which the messages topic is appended." - }, - "downlink_push": { - "$ref": "#/definitions/v3ApplicationPubSubMessage", - "description": "The topic to which the Application Server subscribes for downlink queue push operations." - }, - "downlink_replace": { - "$ref": "#/definitions/v3ApplicationPubSubMessage", - "description": "The topic to which the Application Server subscribes for downlink queue replace operations." - }, - "uplink_message": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "uplink_normalized": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "join_accept": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_ack": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_nack": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_sent": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_failed": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_queued": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "downlink_queue_invalidated": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "location_solved": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - }, - "service_data": { - "$ref": "#/definitions/v3ApplicationPubSubMessage" - } - } - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/v3ApplicationPubSubRegistrySetBody" } } ], @@ -5457,105 +3691,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "webhook": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "webhook_id": { - "type": "string" - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "base_url": { - "type": "string", - "description": "Base URL to which the message's path is appended." - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "HTTP headers to use." - }, - "format": { - "type": "string", - "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." - }, - "template_ids": { - "$ref": "#/definitions/v3ApplicationWebhookTemplateIdentifiers", - "description": "The ID of the template that was used to create the Webhook." - }, - "template_fields": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The value of the fields used by the template. Maps field.id to the value." - }, - "downlink_api_key": { - "type": "string", - "description": "The API key to be used for downlink queue operations.\nThe field is provided for convenience reasons, and can contain API keys with additional rights (albeit this is discouraged)." - }, - "uplink_message": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "uplink_normalized": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "join_accept": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_ack": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_nack": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_sent": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_failed": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_queued": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_queue_invalidated": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "location_solved": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "service_data": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "health_status": { - "$ref": "#/definitions/v3ApplicationWebhookHealth" - }, - "field_mask": { - "type": "string" - } - } - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/v3ApplicationWebhookRegistrySetBody" } } ], @@ -5599,102 +3735,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "webhook": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "base_url": { - "type": "string", - "description": "Base URL to which the message's path is appended." - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "HTTP headers to use." - }, - "format": { - "type": "string", - "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." - }, - "template_ids": { - "$ref": "#/definitions/v3ApplicationWebhookTemplateIdentifiers", - "description": "The ID of the template that was used to create the Webhook." - }, - "template_fields": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The value of the fields used by the template. Maps field.id to the value." - }, - "downlink_api_key": { - "type": "string", - "description": "The API key to be used for downlink queue operations.\nThe field is provided for convenience reasons, and can contain API keys with additional rights (albeit this is discouraged)." - }, - "uplink_message": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "uplink_normalized": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "join_accept": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_ack": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_nack": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_sent": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_failed": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_queued": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "downlink_queue_invalidated": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "location_solved": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "service_data": { - "$ref": "#/definitions/v3ApplicationWebhookMessage" - }, - "health_status": { - "$ref": "#/definitions/v3ApplicationWebhookHealth" - }, - "field_mask": { - "type": "string" - } - } - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/v3ApplicationWebhookRegistrySetBody" } } ], @@ -5839,116 +3880,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "client": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "description": "The identifiers of the OAuth client. These are public and can be seen by any authenticated user in the network.", - "title": "The identifiers of the OAuth client. These are public and can be seen by any authenticated user in the network." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "When the OAuth client was created. This information is public and can be seen by any authenticated user in the network." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "When the OAuth client was last updated. This information is public and can be seen by any authenticated user in the network." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the OAuth client was deleted. This information is public and can be seen by any authenticated user in the network." - }, - "name": { - "type": "string", - "description": "The name of the OAuth client. This information is public and can be seen by any authenticated user in the network." - }, - "description": { - "type": "string", - "description": "A description for the OAuth client. This information is public and can be seen by any authenticated user in the network." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this client. Typically used for organizing clients or for storing integration-specific data." - }, - "contact_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ContactInfo" - }, - "description": "Contact information for this client. Typically used to indicate who to contact with technical/security questions about the application.\nThis information is public and can be seen by any authenticated user in the network.\nThis field is deprecated. Use administrative_contact and technical_contact instead." - }, - "administrative_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "technical_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "secret": { - "type": "string", - "description": "The client secret is only visible to collaborators of the client." - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The allowed redirect URIs against which authorization requests are checked.\nIf the authorization request does not pass a redirect URI, the first one\nfrom this list is taken.\nThis information is public and can be seen by any authenticated user in the network." - }, - "logout_redirect_uris": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The allowed logout redirect URIs against which client initiated logout\nrequests are checked. If the authorization request does not pass a redirect\nURI, the first one from this list is taken.\nThis information is public and can be seen by any authenticated user in the network." - }, - "state": { - "$ref": "#/definitions/v3State", - "description": "The reviewing state of the client.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins.\nIf state_description is not updated when updating state, state_description is cleared." - }, - "state_description": { - "type": "string", - "description": "A description for the state field.\nThis field can only be modified by admins, and should typically only be updated\nwhen also updating `state`." - }, - "skip_authorization": { - "type": "boolean", - "description": "If set, the authorization page will be skipped.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." - }, - "endorsed": { - "type": "boolean", - "description": "If set, the authorization page will show endorsement.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." - }, - "grants": { - "type": "array", - "items": { - "$ref": "#/definitions/v3GrantType" - }, - "description": "OAuth flows that can be used for the client to get a token.\nThis information is public and can be seen by any authenticated user in the network.\nAfter a client is created, this field can only be modified by admins." - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - }, - "description": "Rights denotes what rights the client will have access to.\nThis information is public and can be seen by any authenticated user in the network.\nUsers that previously authorized this client will have to re-authorize the\nclient after rights are added to this list." - } - }, - "description": "An OAuth client on the network." - }, - "field_mask": { - "type": "string", - "description": "The names of the client fields that should be updated." - } - } + "$ref": "#/definitions/v3ClientRegistryUpdateBody" } } ], @@ -6182,15 +4114,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "client_ids": { - "type": "object" - }, - "collaborator": { - "$ref": "#/definitions/v3Collaborator" - } - } + "$ref": "#/definitions/v3ClientAccessSetCollaboratorBody" } } ], @@ -8179,16 +6103,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "api_key": { - "type": "string" - } - }, - "description": "DEPRECATED: Device claiming that transfers devices between applications is no longer supported and will be removed\nin a future version of The Things Stack." + "$ref": "#/definitions/EndDeviceClaimingServerAuthorizeApplicationBody" } } ], @@ -8867,161 +6782,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "Secondary identifier, which can only be used in specific requests." - } - }, - "description": "The identifiers of the gateway. These are public and can be seen by any authenticated user in the network.", - "title": "The identifiers of the gateway. These are public and can be seen by any authenticated user in the network." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "When the gateway was created. This information is public and can be seen by any authenticated user in the network." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "When the gateway was last updated. This information is public and can be seen by any authenticated user in the network." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the gateway was deleted. This information is public and can be seen by any authenticated user in the network." - }, - "name": { - "type": "string", - "description": "The name of the gateway. This information is public and can be seen by any authenticated user in the network." - }, - "description": { - "type": "string", - "description": "A description for the gateway. This information is public and can be seen by any authenticated user in the network." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this gateway. Typically used for organizing gateways or for storing integration-specific data." - }, - "contact_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ContactInfo" - }, - "description": "Contact information for this gateway. Typically used to indicate who to contact with technical/security questions about the gateway.\nThis field is deprecated. Use administrative_contact and technical_contact instead." - }, - "administrative_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "technical_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "version_ids": { - "$ref": "#/definitions/v3GatewayVersionIdentifiers" - }, - "gateway_server_address": { - "type": "string", - "description": "The address of the Gateway Server to connect to.\nThis information is public and can be seen by any authenticated user in the network if status_public is true.\nThe typical format of the address is \"scheme://host:port\". The scheme is optional. If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "auto_update": { - "type": "boolean" - }, - "update_channel": { - "type": "string" - }, - "frequency_plan_id": { - "type": "string", - "description": "Frequency plan ID of the gateway.\nThis information is public and can be seen by any authenticated user in the network.\nDEPRECATED: use frequency_plan_ids.\nThis equals the first element of the frequency_plan_ids field." - }, - "frequency_plan_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Frequency plan IDs of the gateway.\nThis information is public and can be seen by any authenticated user in the network.\nThe first element equals the frequency_plan_id field." - }, - "antennas": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3GatewayAntenna" - }, - "description": "Antennas of the gateway. Location information of the antennas is public and can be seen by any authenticated user in the network if location_public=true." - }, - "status_public": { - "type": "boolean", - "description": "The status of this gateway may be publicly displayed." - }, - "location_public": { - "type": "boolean", - "description": "The location of this gateway may be publicly displayed." - }, - "schedule_downlink_late": { - "type": "boolean", - "description": "Enable server-side buffering of downlink messages. This is recommended for gateways using the Semtech UDP Packet\nForwarder v2.x or older, as it does not feature a just-in-time queue. If enabled, the Gateway Server schedules the\ndownlink message late to the gateway so that it does not overwrite previously scheduled downlink messages that have\nnot been transmitted yet." - }, - "enforce_duty_cycle": { - "type": "boolean", - "description": "Enforcing gateway duty cycle is recommended for all gateways to respect spectrum regulations. Disable enforcing the\nduty cycle only in controlled research and development environments." - }, - "downlink_path_constraint": { - "$ref": "#/definitions/v3DownlinkPathConstraint" - }, - "schedule_anytime_delay": { - "type": "string", - "description": "Adjust the time that GS schedules class C messages in advance. This is useful for gateways that have a known high latency backhaul, like 3G and satellite." - }, - "update_location_from_status": { - "type": "boolean", - "description": "Update the location of this gateway from status messages. This only works for gateways connecting with authentication; gateways connected over UDP are not supported." - }, - "lbs_lns_secret": { - "$ref": "#/definitions/v3Secret", - "description": "The LoRa Basics Station LNS secret.\nThis is either an auth token (such as an API Key) or a TLS private certificate.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3GatewayClaimAuthenticationCode", - "description": "The authentication code for gateway claiming.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value.\nThe entire field must be used in RPCs since sub-fields are validated wrt to each other. Direct selection/update of sub-fields only are not allowed.\nUse the top level field mask `claim_authentication_code` even when updating single fields." - }, - "target_cups_uri": { - "type": "string", - "description": "CUPS URI for LoRa Basics Station CUPS redirection.\nThe CUPS Trust field will be automatically fetched from the cert chain presented by the target server." - }, - "target_cups_key": { - "$ref": "#/definitions/v3Secret", - "description": "CUPS Key for LoRa Basics Station CUPS redirection.\nIf redirecting to another instance of TTS, use the CUPS API Key for the gateway on the target instance.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value." - }, - "require_authenticated_connection": { - "type": "boolean", - "description": "Require an authenticated gateway connection. This prevents the gateway from using the UDP protocol and requires authentication when using other protocols." - }, - "lrfhss": { - "$ref": "#/definitions/GatewayLRFHSS" - }, - "disable_packet_broker_forwarding": { - "type": "boolean" - } - }, - "description": "Gateway is the message that defines a gateway on the network." - }, - "field_mask": { - "type": "string", - "description": "The names of the gateway fields that should be updated." - } - } + "$ref": "#/definitions/v3GatewayRegistryUpdateBody" } } ], @@ -9166,33 +6927,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway_ids": { - "type": "object", - "properties": { - "eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "name": { - "type": "string" - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - } - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } + "$ref": "#/definitions/v3GatewayAccessCreateAPIKeyBody" } } ], @@ -9236,58 +6971,9 @@ { "name": "body", "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "gateway_ids": { - "type": "object", - "properties": { - "eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "api_key": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." - }, - "name": { - "type": "string", - "description": "User-defined (friendly) name for the API key." - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - }, - "description": "Rights that are granted to this API key." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the api key fields that should be updated." - } - } + "required": true, + "schema": { + "$ref": "#/definitions/v3GatewayAccessUpdateAPIKeyBody" } } ], @@ -9597,23 +7283,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway_ids": { - "type": "object", - "properties": { - "eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "collaborator": { - "$ref": "#/definitions/v3Collaborator" - } - } + "$ref": "#/definitions/v3GatewayAccessSetCollaboratorBody" } } ], @@ -10071,23 +7741,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway_ids": { - "type": "object", - "properties": { - "eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "api_key": { - "type": "string" - } - } + "$ref": "#/definitions/GatewayClaimingServerAuthorizeGatewayBody" } } ], @@ -10666,33 +8320,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner service as configured in the Join Server." - }, - "provisioning_data": { - "type": "string", - "format": "byte", - "description": "Vendor-specific provisioning data." - }, - "list": { - "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersList", - "description": "List of device identifiers that will be provisioned.\nThe device identifiers must contain device_id and dev_eui.\nIf set, the application_ids must equal the provision request's application_ids.\nThe number of entries in data must match the number of given identifiers." - }, - "range": { - "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersRange", - "description": "Provision devices in a range.\nThe device_id will be generated by the provisioner from the vendor-specific data.\nThe dev_eui will be issued from the given start_dev_eui." - }, - "from_data": { - "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersFromData", - "description": "Provision devices with identifiers from the given data.\nThe device_id and dev_eui will be generated by the provisioner from the vendor-specific data." - } - } + "$ref": "#/definitions/JsEndDeviceRegistryProvisionBody" } } ], @@ -10796,18 +8424,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "settings": { - "$ref": "#/definitions/v3ApplicationActivationSettings" - }, - "field_mask": { - "type": "string" - } - } + "$ref": "#/definitions/v3ApplicationActivationSettingRegistrySetBody" } } ], @@ -10845,598 +8462,53 @@ "name": "body", "in": "body", "required": true, - "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "device_id": { - "type": "string" - }, - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } - } - } - ], - "tags": [ - "JsEndDeviceRegistry" - ] - } - }, - "/js/applications/{end_device.ids.application_ids.application_id}/devices/{end_device.ids.device_id}": { - "put": { - "summary": "Set creates or updates the device.", - "operationId": "JsEndDeviceRegistry_Set", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v3EndDevice" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "end_device.ids.application_ids.application_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "end_device.ids.device_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "schema": { + "$ref": "#/definitions/v3JsEndDeviceRegistrySetBody" + } + } + ], + "tags": [ + "JsEndDeviceRegistry" + ] + } + }, + "/js/applications/{end_device.ids.application_ids.application_id}/devices/{end_device.ids.device_id}": { + "put": { + "summary": "Set creates or updates the device.", + "operationId": "JsEndDeviceRegistry_Set", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v3EndDevice" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "end_device.ids.application_ids.application_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "end_device.ids.device_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v3JsEndDeviceRegistrySetBody" } } ], @@ -11693,281 +8765,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "device_id": { - "type": "string" - }, - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "$ref": "#/definitions/v3NsEndDeviceRegistrySetBody" } } ], @@ -12012,278 +8810,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string", - "description": "Friendly name of the device. Stored in Entity Registry." - }, - "description": { - "type": "string", - "description": "Description of the device. Stored in Entity Registry." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." - }, - "version_ids": { - "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", - "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." - }, - "service_profile_id": { - "type": "string", - "description": "Default service profile. Stored in Entity Registry." - }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "network_server_kek_label": { - "type": "string", - "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." - }, - "application_server_address": { - "type": "string", - "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "application_server_kek_label": { - "type": "string", - "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." - }, - "application_server_id": { - "type": "string", - "description": "The AS-ID of the Application Server to use.\nStored in Join Server." - }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." - }, - "locations": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/lorawanv3Location" - }, - "description": "Location of the device. Stored in Entity Registry." - }, - "picture": { - "$ref": "#/definitions/v3Picture", - "description": "Stored in Entity Registry." - }, - "supports_class_b": { - "type": "boolean", - "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_class_c": { - "type": "boolean", - "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_version": { - "$ref": "#/definitions/v3MACVersion", - "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "lorawan_phy_version": { - "$ref": "#/definitions/v3PHYVersion", - "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "frequency_plan_id": { - "type": "string", - "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "min_frequency": { - "type": "string", - "format": "uint64", - "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "max_frequency": { - "type": "string", - "format": "uint64", - "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "supports_join": { - "type": "boolean", - "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "resets_join_nonces": { - "type": "boolean", - "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." - }, - "root_keys": { - "$ref": "#/definitions/v3RootKeys", - "description": "Device root keys. Stored in Join Server." - }, - "net_id": { - "type": "string", - "format": "string", - "example": "000013", - "description": "Home NetID. Stored in Join Server." - }, - "mac_settings": { - "$ref": "#/definitions/v3MACSettings", - "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." - }, - "mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "MAC state of the device. Stored in Network Server." - }, - "pending_mac_state": { - "$ref": "#/definitions/v3MACState", - "description": "Pending MAC state of the device. Stored in Network Server." - }, - "session": { - "$ref": "#/definitions/v3Session", - "description": "Current session of the device. Stored in Network Server and Application Server." - }, - "pending_session": { - "$ref": "#/definitions/v3Session", - "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." - }, - "last_dev_nonce": { - "type": "integer", - "format": "int64", - "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." - }, - "used_dev_nonces": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." - }, - "last_join_nonce": { - "type": "integer", - "format": "int64", - "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." - }, - "last_rj_count_0": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." - }, - "last_rj_count_1": { - "type": "integer", - "format": "int64", - "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." - }, - "last_dev_status_received_at": { - "type": "string", - "format": "date-time", - "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." - }, - "power_state": { - "$ref": "#/definitions/v3PowerState", - "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." - }, - "battery_percentage": { - "type": "number", - "format": "float", - "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." - }, - "downlink_margin": { - "type": "integer", - "format": "int32", - "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." - }, - "queued_application_downlinks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ApplicationDownlink" - }, - "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." - }, - "formatters": { - "$ref": "#/definitions/v3MessagePayloadFormatters", - "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." - }, - "provisioner_id": { - "type": "string", - "description": "ID of the provisioner. Stored in Join Server." - }, - "provisioning_data": { - "type": "object", - "description": "Vendor-specific provisioning data. Stored in Join Server." - }, - "multicast": { - "type": "boolean", - "description": "Indicates whether this device represents a multicast group." - }, - "claim_authentication_code": { - "$ref": "#/definitions/v3EndDeviceAuthenticationCode", - "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." - }, - "skip_payload_crypto": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." - }, - "skip_payload_crypto_override": { - "type": "boolean", - "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." - }, - "activated_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." - }, - "last_seen_at": { - "type": "string", - "format": "date-time", - "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." - }, - "serial_number": { - "type": "string" - }, - "lora_alliance_profile_ids": { - "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" - } - }, - "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." - } - } + "$ref": "#/definitions/v3NsEndDeviceRegistrySetBody" } } ], @@ -12376,57 +8903,25 @@ } } }, - "parameters": [ - { - "name": "end_device_ids.application_ids.application_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "end_device_ids.device_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the end device fields that should be returned.\nSee the API reference for which fields can be returned by the different services." - } - } + "parameters": [ + { + "name": "end_device_ids.application_ids.application_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "end_device_ids.device_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NsEndDeviceRegistryResetFactoryDefaultsBody" } } ], @@ -12465,44 +8960,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "device_id": { - "type": "string" - }, - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - }, - "description": "End device identifiers of the relay.", - "title": "End device identifiers of the relay." - }, - "settings": { - "$ref": "#/definitions/v3RelaySettings", - "description": "Relay configuration." - } - } + "$ref": "#/definitions/NsRelayConfigurationServiceCreateRelayBody" } } ], @@ -12672,45 +9130,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - }, - "description": "End device identifiers of the relay.", - "title": "End device identifiers of the relay." - }, - "settings": { - "$ref": "#/definitions/v3RelaySettings", - "description": "Relay configuration." - }, - "field_mask": { - "type": "string", - "description": "Field mask of the fields to update." - } - } + "$ref": "#/definitions/NsRelayConfigurationServiceUpdateRelayBody" } } ], @@ -12821,46 +9241,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - }, - "description": "End device identifiers of the relay.", - "title": "End device identifiers of the relay." - }, - "index": { - "type": "integer", - "format": "int64", - "description": "Index of the uplink forwarding rule." - }, - "rule": { - "$ref": "#/definitions/v3RelayUplinkForwardingRule", - "description": "Uplink forwarding rule." - } - } + "$ref": "#/definitions/NsRelayConfigurationServiceCreateRelayUplinkForwardingRuleBody" } } ], @@ -13054,45 +9435,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "end_device_ids": { - "type": "object", - "properties": { - "application_ids": { - "type": "object" - }, - "dev_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN DevEUI." - }, - "join_eui": { - "type": "string", - "format": "string", - "example": "70B3D57ED000ABCD", - "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." - }, - "dev_addr": { - "type": "string", - "format": "string", - "example": "2600ABCD", - "description": "The LoRaWAN DevAddr." - } - }, - "description": "End device identifiers of the relay.", - "title": "End device identifiers of the relay." - }, - "rule": { - "$ref": "#/definitions/v3RelayUplinkForwardingRule", - "description": "Uplink forwarding rule." - }, - "field_mask": { - "type": "string", - "description": "Field mask of the fields to update." - } - } + "$ref": "#/definitions/NsRelayConfigurationServiceUpdateRelayUplinkForwardingRuleBody" } } ], @@ -13422,25 +9765,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application": { - "$ref": "#/definitions/v3Application" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "user_ids": { - "$ref": "#/definitions/v3UserIdentifiers" - } - }, - "description": "Collaborator to grant all rights on the newly created application.", - "title": "Collaborator to grant all rights on the newly created application." - } - } + "$ref": "#/definitions/v3ApplicationRegistryCreateBody" } } ], @@ -13561,25 +9886,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "client": { - "$ref": "#/definitions/v3Client" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "user_ids": { - "$ref": "#/definitions/v3UserIdentifiers" - } - }, - "description": "Collaborator to grant all rights on the newly created client.", - "title": "Collaborator to grant all rights on the newly created client." - } - } + "$ref": "#/definitions/v3ClientRegistryCreateBody" } } ], @@ -13700,25 +10007,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway": { - "$ref": "#/definitions/v3Gateway" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "user_ids": { - "$ref": "#/definitions/v3UserIdentifiers" - } - }, - "description": "Collaborator to grant all rights on the newly created gateway.", - "title": "Collaborator to grant all rights on the newly created gateway." - } - } + "$ref": "#/definitions/v3GatewayRegistryCreateBody" } } ], @@ -13758,71 +10047,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "organization": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "description": "The identifiers of the organization. These are public and can be seen by any authenticated user in the network.", - "title": "The identifiers of the organization. These are public and can be seen by any authenticated user in the network." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "When the organization was created. This information is public and can be seen by any authenticated user in the network." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "When the organization was last updated. This information is public and can be seen by any authenticated user in the network." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the organization was deleted. This information is public and can be seen by any authenticated user in the network." - }, - "name": { - "type": "string", - "description": "The name of the organization. This information is public and can be seen by any authenticated user in the network." - }, - "description": { - "type": "string", - "description": "A description for the organization." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this organization. Typically used for organizing organizations or for storing integration-specific data." - }, - "contact_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ContactInfo" - }, - "description": "Contact information for this organization. Typically used to indicate who to contact with security/billing questions about the organization.\nThis field is deprecated. Use administrative_contact and technical_contact instead." - }, - "administrative_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "technical_contact": { - "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" - }, - "fanout_notifications": { - "type": "boolean", - "description": "Determines if a notification will be sent to the collaborators. If false it, notifications will be sent only to the\nadministrative or technical contact." - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the organization fields that should be updated." - } - } + "$ref": "#/definitions/v3OrganizationRegistryUpdateBody" } } ], @@ -13954,25 +10179,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "name": { - "type": "string" - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - } - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } + "$ref": "#/definitions/v3OrganizationAccessCreateAPIKeyBody" } } ], @@ -14019,48 +10226,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "api_key": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." - }, - "name": { - "type": "string", - "description": "User-defined (friendly) name for the API key." - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - }, - "description": "Rights that are granted to this API key." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the api key fields that should be updated." - } - } + "$ref": "#/definitions/v3OrganizationAccessUpdateAPIKeyBody" } } ], @@ -14276,15 +10442,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "organization_ids": { - "type": "object" - }, - "collaborator": { - "$ref": "#/definitions/v3Collaborator" - } - } + "$ref": "#/definitions/v3OrganizationAccessSetCollaboratorBody" } } ], @@ -14945,28 +11103,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "home_network_id": { - "type": "object", - "properties": { - "tenant_id": { - "type": "string", - "description": "Tenant identifier if the registration leases DevAddr blocks from a NetID." - } - }, - "description": "Packet Broker identifier of the Home Network.", - "title": "Packet Broker identifier of the Home Network." - }, - "uplink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyUplink", - "description": "Uplink policy." - }, - "downlink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyDownlink", - "description": "Downlink policy." - } - } + "$ref": "#/definitions/PbaSetHomeNetworkRoutingPolicyBody" } } ], @@ -15004,30 +11141,9 @@ { "name": "body", "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "home_network_id": { - "type": "object", - "properties": { - "tenant_id": { - "type": "string", - "description": "Tenant identifier if the registration leases DevAddr blocks from a NetID." - } - }, - "description": "Packet Broker identifier of the Home Network.", - "title": "Packet Broker identifier of the Home Network." - }, - "uplink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyUplink", - "description": "Uplink policy." - }, - "downlink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyDownlink", - "description": "Downlink policy." - } - } + "required": true, + "schema": { + "$ref": "#/definitions/PbaSetHomeNetworkRoutingPolicyBody" } } ], @@ -15076,22 +11192,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "home_network_id": { - "type": "object", - "description": "Packet Broker identifier of the Home Network.", - "title": "Packet Broker identifier of the Home Network." - }, - "uplink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyUplink", - "description": "Uplink policy." - }, - "downlink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyDownlink", - "description": "Downlink policy." - } - } + "$ref": "#/definitions/PbaSetHomeNetworkRoutingPolicyBody" } } ], @@ -15138,22 +11239,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "home_network_id": { - "type": "object", - "description": "Packet Broker identifier of the Home Network.", - "title": "Packet Broker identifier of the Home Network." - }, - "uplink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyUplink", - "description": "Uplink policy." - }, - "downlink": { - "$ref": "#/definitions/v3PacketBrokerRoutingPolicyDownlink", - "description": "Downlink policy." - } - } + "$ref": "#/definitions/PbaSetHomeNetworkRoutingPolicyBody" } } ], @@ -15643,14 +11729,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "qr_code": { - "type": "string", - "format": "byte", - "description": "Raw QR code contents." - } - } + "$ref": "#/definitions/EndDeviceQRCodeGeneratorParseBody" } } ], @@ -15776,6 +11855,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "field_mask", "in": "query", @@ -15871,6 +11957,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "dev_eui_contains", "description": "Find end devices where the (hexadecimal) DevEUI contains this substring.", @@ -15974,6 +12067,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "state", "description": "Find OAuth clients where the state is any of these states.\n\n - STATE_REQUESTED: Denotes that the entity has been requested and is pending review by an admin.\n - STATE_APPROVED: Denotes that the entity has been reviewed and approved by an admin.\n - STATE_REJECTED: Denotes that the entity has been reviewed and rejected by an admin.\n - STATE_FLAGGED: Denotes that the entity has been flagged and is pending review by an admin.\n - STATE_SUSPENDED: Denotes that the entity has been reviewed and suspended by an admin.", @@ -16081,6 +12181,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "eui_contains", "description": "Find gateways where the (hexadecimal) EUI contains this substring.", @@ -16177,6 +12284,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "field_mask", "in": "query", @@ -16266,6 +12380,13 @@ "required": false, "type": "string" }, + { + "name": "attributes_contain[string]", + "description": "This is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "state", "description": "Find users where the state is any of these states.\n\n - STATE_REQUESTED: Denotes that the entity has been requested and is pending review by an admin.\n - STATE_APPROVED: Denotes that the entity has been reviewed and approved by an admin.\n - STATE_REJECTED: Denotes that the entity has been reviewed and rejected by an admin.\n - STATE_FLAGGED: Denotes that the entity has been flagged and is pending review by an admin.\n - STATE_SUSPENDED: Denotes that the entity has been reviewed and suspended by an admin.", @@ -16531,31 +12652,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "application": { - "$ref": "#/definitions/v3Application" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "$ref": "#/definitions/v3OrganizationIdentifiers" - }, - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - } - }, - "description": "Collaborator to grant all rights on the newly created application.", - "title": "Collaborator to grant all rights on the newly created application." - } - } + "$ref": "#/definitions/v3ApplicationRegistryCreateBody" } } ], @@ -16676,31 +12773,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "client": { - "$ref": "#/definitions/v3Client" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "$ref": "#/definitions/v3OrganizationIdentifiers" - }, - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - } - }, - "description": "Collaborator to grant all rights on the newly created client.", - "title": "Collaborator to grant all rights on the newly created client." - } - } + "$ref": "#/definitions/v3ClientRegistryCreateBody" } } ], @@ -16821,31 +12894,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "gateway": { - "$ref": "#/definitions/v3Gateway" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "$ref": "#/definitions/v3OrganizationIdentifiers" - }, - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - } - }, - "description": "Collaborator to grant all rights on the newly created gateway.", - "title": "Collaborator to grant all rights on the newly created gateway." - } - } + "$ref": "#/definitions/v3GatewayRegistryCreateBody" } } ], @@ -16966,31 +13015,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "organization": { - "$ref": "#/definitions/v3Organization" - }, - "collaborator": { - "type": "object", - "properties": { - "organization_ids": { - "$ref": "#/definitions/v3OrganizationIdentifiers" - }, - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - } - }, - "description": "Collaborator to grant all rights on the newly created application.\nNOTE: It is currently not possible to have organizations collaborating on\nother organizations.", - "title": "Collaborator to grant all rights on the newly created application.\nNOTE: It is currently not possible to have organizations collaborating on\nother organizations." - } - } + "$ref": "#/definitions/v3OrganizationRegistryCreateBody" } } ], @@ -17100,31 +13125,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "receiver_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - }, - "description": "The IDs of the receiving user.", - "title": "The IDs of the receiving user." - }, - "ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The IDs of the notifications to update the status of." - }, - "status": { - "$ref": "#/definitions/v3NotificationStatus", - "description": "The status to set on the notifications." - } - } + "$ref": "#/definitions/NotificationServiceUpdateStatusBody" } } ], @@ -17164,116 +13165,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "user": { - "type": "object", - "properties": { - "ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - }, - "description": "The identifiers of the user. These are public and can be seen by any authenticated user in the network.", - "title": "The identifiers of the user. These are public and can be seen by any authenticated user in the network." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "When the user was created. This information is public and can be seen by any authenticated user in the network." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "When the user was last updated. This information is public and can be seen by any authenticated user in the network." - }, - "deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the user was deleted. This information is public and can be seen by any authenticated user in the network." - }, - "name": { - "type": "string", - "description": "The name of the user. This information is public and can be seen by any authenticated user in the network." - }, - "description": { - "type": "string", - "description": "A description for the user. This information is public and can be seen by any authenticated user in the network." - }, - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value attributes for this users. Typically used for storing integration-specific data." - }, - "contact_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v3ContactInfo" - }, - "description": "Contact information for this user. Typically used to indicate who to contact with security/billing questions about the user.\nThis field is deprecated." - }, - "primary_email_address": { - "type": "string", - "description": "Primary email address that can be used for logging in.\nThis address is not public, use contact_info for that." - }, - "primary_email_address_validated_at": { - "type": "string", - "format": "date-time", - "description": "When the primary email address was validated. Note that email address validation is not required on all networks." - }, - "password": { - "type": "string", - "description": "The password field is only considered when creating a user.\nIt is not returned on API calls, and can not be updated by updating the User.\nSee the UpdatePassword method of the UserRegistry service for more information." - }, - "password_updated_at": { - "type": "string", - "format": "date-time" - }, - "require_password_update": { - "type": "boolean" - }, - "state": { - "$ref": "#/definitions/v3State", - "description": "The reviewing state of the user.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." - }, - "state_description": { - "type": "string", - "description": "A description for the state field.\nThis field can only be modified by admins, and should typically only be updated\nwhen also updating `state`." - }, - "admin": { - "type": "boolean", - "description": "This user is an admin.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by other admins." - }, - "temporary_password": { - "type": "string", - "description": "The temporary password can only be used to update a user's password; never returned on API calls.\nIt is not returned on API calls, and can not be updated by updating the User.\nSee the CreateTemporaryPassword method of the UserRegistry service for more information." - }, - "temporary_password_created_at": { - "type": "string", - "format": "date-time" - }, - "temporary_password_expires_at": { - "type": "string", - "format": "date-time" - }, - "profile_picture": { - "$ref": "#/definitions/v3Picture", - "description": "A profile picture for the user.\nThis information is public and can be seen by any authenticated user in the network." - } - }, - "description": "User is the message that defines a user on the network." - }, - "field_mask": { - "type": "string", - "description": "The names of the user fields that should be updated." - } - } + "$ref": "#/definitions/v3UserRegistryUpdateBody" } } ], @@ -17419,31 +13311,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "name": { - "type": "string" - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - } - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } + "$ref": "#/definitions/v3UserAccessCreateAPIKeyBody" } } ], @@ -17490,54 +13358,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "api_key": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." - }, - "name": { - "type": "string", - "description": "User-defined (friendly) name for the API key." - }, - "rights": { - "type": "array", - "items": { - "$ref": "#/definitions/v3Right" - }, - "description": "Rights that are granted to this API key." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "expires_at": { - "type": "string", - "format": "date-time" - } - } - }, - "field_mask": { - "type": "string", - "description": "The names of the api key fields that should be updated." - } - } + "$ref": "#/definitions/v3UserAccessUpdateAPIKeyBody" } } ], @@ -17942,28 +13763,7 @@ "in": "body", "required": true, "schema": { - "type": "object", - "properties": { - "user_ids": { - "type": "object", - "properties": { - "email": { - "type": "string", - "description": "Secondary identifier, which can only be used in specific requests." - } - } - }, - "new": { - "type": "string" - }, - "old": { - "type": "string" - }, - "revoke_all_access": { - "type": "boolean", - "description": "Revoke active sessions and access tokens of user if true. To be used if credentials are suspected to be compromised." - } - } + "$ref": "#/definitions/UserRegistryUpdatePasswordBody" } } ], @@ -18331,55 +14131,264 @@ "$ref": "#/definitions/v3DataRateIndex", "description": "Data rate index to use." }, - "tx_power_index": { - "type": "integer", - "format": "int64", - "description": "Transmission power index to use." + "tx_power_index": { + "type": "integer", + "format": "int64", + "description": "Transmission power index to use." + }, + "nb_trans": { + "type": "integer", + "format": "int64", + "description": "Number of retransmissions." + } + }, + "description": "Configuration options for static ADR." + }, + "AWSIoTProviderAccessKey": { + "type": "object", + "properties": { + "access_key_id": { + "type": "string" + }, + "secret_access_key": { + "type": "string" + }, + "session_token": { + "type": "string" + } + } + }, + "AWSIoTProviderAssumeRole": { + "type": "object", + "properties": { + "arn": { + "type": "string" + }, + "external_id": { + "type": "string" + }, + "session_duration": { + "type": "string" + } + } + }, + "AWSIoTProviderDefaultIntegration": { + "type": "object", + "properties": { + "stack_name": { + "type": "string", + "description": "The stack name that is associated with the CloudFormation deployment of The Things Stack Enterprise integration." + } + } + }, + "AppAsDecodeDownlinkBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" }, - "nb_trans": { - "type": "integer", - "format": "int64", - "description": "Number of retransmissions." + "downlink": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "formatter": { + "$ref": "#/definitions/v3PayloadFormatter" + }, + "parameter": { + "type": "string" } - }, - "description": "Configuration options for static ADR." + } }, - "AWSIoTProviderAccessKey": { + "AppAsDecodeUplinkBody": { "type": "object", "properties": { - "access_key_id": { - "type": "string" + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } }, - "secret_access_key": { - "type": "string" + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" }, - "session_token": { + "uplink": { + "$ref": "#/definitions/v3ApplicationUplink" + }, + "formatter": { + "$ref": "#/definitions/v3PayloadFormatter" + }, + "parameter": { "type": "string" } } }, - "AWSIoTProviderAssumeRole": { + "AppAsEncodeDownlinkBody": { "type": "object", "properties": { - "arn": { - "type": "string" + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } }, - "external_id": { - "type": "string" + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers" }, - "session_duration": { + "downlink": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "formatter": { + "$ref": "#/definitions/v3PayloadFormatter" + }, + "parameter": { "type": "string" } } }, - "AWSIoTProviderDefaultIntegration": { + "AppAsSimulateUplinkBody": { "type": "object", "properties": { - "stack_name": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "correlation_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "received_at": { "type": "string", - "description": "The stack name that is associated with the CloudFormation deployment of The Things Stack Enterprise integration." + "format": "date-time", + "description": "Server time when the Application Server received the message." + }, + "uplink_message": { + "$ref": "#/definitions/v3ApplicationUplink" + }, + "uplink_normalized": { + "$ref": "#/definitions/v3ApplicationUplinkNormalized" + }, + "join_accept": { + "$ref": "#/definitions/v3ApplicationJoinAccept" + }, + "downlink_ack": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "downlink_nack": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "downlink_sent": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "downlink_failed": { + "$ref": "#/definitions/v3ApplicationDownlinkFailed" + }, + "downlink_queued": { + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "downlink_queue_invalidated": { + "$ref": "#/definitions/v3ApplicationInvalidatedDownlinks" + }, + "location_solved": { + "$ref": "#/definitions/v3ApplicationLocation" + }, + "service_data": { + "$ref": "#/definitions/v3ApplicationServiceData" + }, + "simulated": { + "type": "boolean", + "description": "Signals if the message is coming from the Network Server or is simulated.\nThe Application Server automatically sets this field, and callers must not manually set it." } - } + }, + "description": "Application uplink message." }, "ApplicationDownlinkClassBC": { "type": "object", @@ -18414,6 +14423,99 @@ } } }, + "ApplicationPackageRegistrySetAssociationBody": { + "type": "object", + "properties": { + "association": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "package_name": { + "type": "string" + }, + "data": { + "type": "object" + } + } + }, + "field_mask": { + "type": "string" + } + } + }, + "ApplicationPackageRegistrySetDefaultAssociationBody": { + "type": "object", + "properties": { + "default": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "package_name": { + "type": "string" + }, + "data": { + "type": "object" + } + } + }, + "field_mask": { + "type": "string" + } + } + }, "ApplicationPubSubAWSIoTProvider": { "type": "object", "properties": { @@ -18537,6 +14639,20 @@ } } }, + "AsSetLinkBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "link": { + "$ref": "#/definitions/v3ApplicationLink" + }, + "field_mask": { + "type": "string" + } + } + }, "AuthInfoResponseAPIKeyAccess": { "type": "object", "properties": { @@ -18788,6 +14904,18 @@ "type": "object", "description": "Configuration options for cases in which ADR is not supposed to steer the end device\nto another set of channels." }, + "EndDeviceClaimingServerAuthorizeApplicationBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "api_key": { + "type": "string" + } + }, + "description": "DEPRECATED: Device claiming that transfers devices between applications is no longer supported and will be removed\nin a future version of The Things Stack." + }, "EndDeviceModelBattery": { "type": "object", "properties": { @@ -18958,6 +15086,16 @@ } } }, + "EndDeviceQRCodeGeneratorParseBody": { + "type": "object", + "properties": { + "qr_code": { + "type": "string", + "format": "byte", + "description": "Raw QR code contents." + } + } + }, "EventAuthentication": { "type": "object", "properties": { @@ -18996,6 +15134,25 @@ } } }, + "GatewayClaimingServerAuthorizeGatewayBody": { + "type": "object", + "properties": { + "gateway_ids": { + "type": "object", + "properties": { + "eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "api_key": { + "type": "string" + } + } + }, "GatewayConnectionStatsRoundTripTimes": { "type": "object", "properties": { @@ -19212,14 +15369,43 @@ "create_applications": { "type": "boolean" }, - "create_clients": { - "type": "boolean" + "create_clients": { + "type": "boolean" + }, + "create_gateways": { + "type": "boolean" + }, + "create_organizations": { + "type": "boolean" + } + } + }, + "JsEndDeviceRegistryProvisionBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner service as configured in the Join Server." }, - "create_gateways": { - "type": "boolean" + "provisioning_data": { + "type": "string", + "format": "byte", + "description": "Vendor-specific provisioning data." }, - "create_organizations": { - "type": "boolean" + "list": { + "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersList", + "description": "List of device identifiers that will be provisioned.\nThe device identifiers must contain device_id and dev_eui.\nIf set, the application_ids must equal the provision request's application_ids.\nThe number of entries in data must match the number of given identifiers." + }, + "range": { + "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersRange", + "description": "Provision devices in a range.\nThe device_id will be generated by the provisioner from the vendor-specific data.\nThe dev_eui will be issued from the given start_dev_eui." + }, + "from_data": { + "$ref": "#/definitions/ProvisionEndDevicesRequestIdentifiersFromData", + "description": "Provision devices with identifiers from the given data.\nThe device_id and dev_eui will be generated by the provisioner from the vendor-specific data." } } }, @@ -19903,6 +16089,232 @@ ], "default": "AT_MOST_ONCE" }, + "NotificationServiceUpdateStatusBody": { + "type": "object", + "properties": { + "receiver_ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + }, + "description": "The IDs of the receiving user.", + "title": "The IDs of the receiving user." + }, + "ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The IDs of the notifications to update the status of." + }, + "status": { + "$ref": "#/definitions/v3NotificationStatus", + "description": "The status to set on the notifications." + } + } + }, + "NsEndDeviceRegistryResetFactoryDefaultsBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "field_mask": { + "type": "string", + "description": "The names of the end device fields that should be returned.\nSee the API reference for which fields can be returned by the different services." + } + } + }, + "NsRelayConfigurationServiceCreateRelayBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "device_id": { + "type": "string" + }, + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + }, + "description": "End device identifiers of the relay.", + "title": "End device identifiers of the relay." + }, + "settings": { + "$ref": "#/definitions/v3RelaySettings", + "description": "Relay configuration." + } + } + }, + "NsRelayConfigurationServiceCreateRelayUplinkForwardingRuleBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + }, + "description": "End device identifiers of the relay.", + "title": "End device identifiers of the relay." + }, + "index": { + "type": "integer", + "format": "int64", + "description": "Index of the uplink forwarding rule." + }, + "rule": { + "$ref": "#/definitions/v3RelayUplinkForwardingRule", + "description": "Uplink forwarding rule." + } + } + }, + "NsRelayConfigurationServiceUpdateRelayBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + }, + "description": "End device identifiers of the relay.", + "title": "End device identifiers of the relay." + }, + "settings": { + "$ref": "#/definitions/v3RelaySettings", + "description": "Relay configuration." + }, + "field_mask": { + "type": "string", + "description": "Field mask of the fields to update." + } + } + }, + "NsRelayConfigurationServiceUpdateRelayUplinkForwardingRuleBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + }, + "description": "End device identifiers of the relay.", + "title": "End device identifiers of the relay." + }, + "rule": { + "$ref": "#/definitions/v3RelayUplinkForwardingRule", + "description": "Uplink forwarding rule." + }, + "field_mask": { + "type": "string", + "description": "Field mask of the fields to update." + } + } + }, "OperatingConditionsLimits": { "type": "object", "properties": { @@ -19918,6 +16330,24 @@ } } }, + "PbaSetHomeNetworkRoutingPolicyBody": { + "type": "object", + "properties": { + "home_network_id": { + "type": "object", + "description": "Packet Broker identifier of the Home Network.", + "title": "Packet Broker identifier of the Home Network." + }, + "uplink": { + "$ref": "#/definitions/v3PacketBrokerRoutingPolicyUplink", + "description": "Uplink policy." + }, + "downlink": { + "$ref": "#/definitions/v3PacketBrokerRoutingPolicyDownlink", + "description": "Downlink policy." + } + } + }, "PictureEmbedded": { "type": "object", "properties": { @@ -20070,6 +16500,30 @@ } } }, + "UserRegistryUpdatePasswordBody": { + "type": "object", + "properties": { + "user_ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "new": { + "type": "string" + }, + "old": { + "type": "string" + }, + "revoke_all_access": { + "type": "boolean", + "description": "Revoke active sessions and access tokens of user if true. To be used if credentials are suspected to be compromised." + } + } + }, "googlerpcStatus": { "type": "object", "properties": { @@ -20591,11 +17045,11 @@ "properties": { "@type": { "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." } }, "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\nExample 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\nExample 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" }, "protobufNullValue": { "type": "string", @@ -20603,7 +17057,7 @@ "NULL_VALUE" ], "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." }, "v3ADRAckDelayExponent": { "type": "string", @@ -20763,6 +17217,82 @@ } } }, + "v3AppAsDownlinkQueuePushBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + } + } + } + }, + "v3AppAsDownlinkQueueReplaceBody": { + "type": "object", + "properties": { + "end_device_ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + } + } + } + }, "v3AppSKeyResponse": { "type": "object", "properties": { @@ -20823,24 +17353,114 @@ "technical_contact": { "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" }, - "network_server_address": { - "type": "string", - "description": "The address of the Network Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "dev_eui_counter": { + "type": "integer", + "format": "int64" + } + }, + "description": "Application is the message that defines an Application in the network." + }, + "v3ApplicationAccessCreateAPIKeyBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "name": { + "type": "string" + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + } + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "v3ApplicationAccessSetCollaboratorBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "collaborator": { + "$ref": "#/definitions/v3Collaborator" + } + } + }, + "v3ApplicationAccessUpdateAPIKeyBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "api_key": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." + }, + "name": { + "type": "string", + "description": "User-defined (friendly) name for the API key." + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + }, + "description": "Rights that are granted to this API key." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } }, - "application_server_address": { + "field_mask": { "type": "string", - "description": "The address of the Application Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + "description": "The names of the api key fields that should be updated." + } + } + }, + "v3ApplicationActivationSettingRegistrySetBody": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" }, - "join_server_address": { - "type": "string", - "description": "The address of the Join Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + "settings": { + "$ref": "#/definitions/v3ApplicationActivationSettings" }, - "dev_eui_counter": { - "type": "integer", - "format": "int64" + "field_mask": { + "type": "string" } - }, - "description": "Application is the message that defines an Application in the network." + } }, "v3ApplicationActivationSettings": { "type": "object", @@ -21286,6 +17906,96 @@ } } }, + "v3ApplicationPubSubRegistrySetBody": { + "type": "object", + "properties": { + "pubsub": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "pub_sub_id": { + "type": "string" + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "format": { + "type": "string", + "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." + }, + "nats": { + "$ref": "#/definitions/ApplicationPubSubNATSProvider" + }, + "mqtt": { + "$ref": "#/definitions/ApplicationPubSubMQTTProvider" + }, + "aws_iot": { + "$ref": "#/definitions/ApplicationPubSubAWSIoTProvider" + }, + "base_topic": { + "type": "string", + "description": "Base topic name to which the messages topic is appended." + }, + "downlink_push": { + "$ref": "#/definitions/v3ApplicationPubSubMessage", + "description": "The topic to which the Application Server subscribes for downlink queue push operations." + }, + "downlink_replace": { + "$ref": "#/definitions/v3ApplicationPubSubMessage", + "description": "The topic to which the Application Server subscribes for downlink queue replace operations." + }, + "uplink_message": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "uplink_normalized": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "join_accept": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_ack": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_nack": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_sent": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_failed": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_queued": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "downlink_queue_invalidated": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "location_solved": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + }, + "service_data": { + "$ref": "#/definitions/v3ApplicationPubSubMessage" + } + } + }, + "field_mask": { + "type": "string" + } + } + }, "v3ApplicationPubSubs": { "type": "object", "properties": { @@ -21298,6 +18008,107 @@ } } }, + "v3ApplicationRegistryCreateBody": { + "type": "object", + "properties": { + "application": { + "$ref": "#/definitions/v3Application" + }, + "collaborator": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "user_ids": { + "$ref": "#/definitions/v3UserIdentifiers" + } + }, + "description": "Collaborator to grant all rights on the newly created application.", + "title": "Collaborator to grant all rights on the newly created application." + } + } + }, + "v3ApplicationRegistryUpdateBody": { + "type": "object", + "properties": { + "application": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "description": "The identifiers of the application. These are public and can be seen by any authenticated user in the network.", + "title": "The identifiers of the application. These are public and can be seen by any authenticated user in the network." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "When the application was created. This information is public and can be seen by any authenticated user in the network." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "When the application was last updated. This information is public and can be seen by any authenticated user in the network." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the application was deleted. This information is public and can be seen by any authenticated user in the network." + }, + "name": { + "type": "string", + "description": "The name of the application." + }, + "description": { + "type": "string", + "description": "A description for the application." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this application. Typically used for organizing applications or for storing integration-specific data." + }, + "contact_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ContactInfo" + }, + "description": "Contact information for this application. Typically used to indicate who to contact with technical/security questions about the application.\nThis field is deprecated. Use administrative_contact and technical_contact instead." + }, + "administrative_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "technical_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this application is supposed to be registered.\nIf set, this fields indicates where end devices for this application should be registered.\n\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "dev_eui_counter": { + "type": "integer", + "format": "int64" + } + }, + "description": "Application is the message that defines an Application in the network." + }, + "field_mask": { + "type": "string", + "description": "The names of the application fields that should be updated." + } + } + }, "v3ApplicationServiceData": { "type": "object", "properties": { @@ -21669,6 +18480,107 @@ } } }, + "v3ApplicationWebhookRegistrySetBody": { + "type": "object", + "properties": { + "webhook": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "webhook_id": { + "type": "string" + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "base_url": { + "type": "string", + "description": "Base URL to which the message's path is appended." + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "HTTP headers to use." + }, + "format": { + "type": "string", + "description": "The format to use for the body.\nSupported values depend on the Application Server configuration." + }, + "template_ids": { + "$ref": "#/definitions/v3ApplicationWebhookTemplateIdentifiers", + "description": "The ID of the template that was used to create the Webhook." + }, + "template_fields": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The value of the fields used by the template. Maps field.id to the value." + }, + "downlink_api_key": { + "type": "string", + "description": "The API key to be used for downlink queue operations.\nThe field is provided for convenience reasons, and can contain API keys with additional rights (albeit this is discouraged)." + }, + "uplink_message": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "uplink_normalized": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "join_accept": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_ack": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_nack": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_sent": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_failed": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_queued": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "downlink_queue_invalidated": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "location_solved": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "service_data": { + "$ref": "#/definitions/v3ApplicationWebhookMessage" + }, + "health_status": { + "$ref": "#/definitions/v3ApplicationWebhookHealth" + }, + "field_mask": { + "type": "string" + } + } + }, + "field_mask": { + "type": "string" + } + } + }, "v3ApplicationWebhookTemplate": { "type": "object", "properties": { @@ -21837,11 +18749,288 @@ "pubsub": { "$ref": "#/definitions/AsConfigurationPubSub" }, - "webhooks": { - "$ref": "#/definitions/AsConfigurationWebhooks" + "webhooks": { + "$ref": "#/definitions/AsConfigurationWebhooks" + } + }, + "description": "Application Server configuration." + }, + "v3AsEndDeviceRegistrySetBody": { + "type": "object", + "properties": { + "end_device": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "device_id": { + "type": "string" + }, + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "Friendly name of the device. Stored in Entity Registry." + }, + "description": { + "type": "string", + "description": "Description of the device. Stored in Entity Registry." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", + "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." + }, + "service_profile_id": { + "type": "string", + "description": "Default service profile. Stored in Entity Registry." + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "network_server_kek_label": { + "type": "string", + "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_kek_label": { + "type": "string", + "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." + }, + "application_server_id": { + "type": "string", + "description": "The AS-ID of the Application Server to use.\nStored in Join Server." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "locations": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/lorawanv3Location" + }, + "description": "Location of the device. Stored in Entity Registry." + }, + "picture": { + "$ref": "#/definitions/v3Picture", + "description": "Stored in Entity Registry." + }, + "supports_class_b": { + "type": "boolean", + "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_class_c": { + "type": "boolean", + "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_version": { + "$ref": "#/definitions/v3MACVersion", + "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_phy_version": { + "$ref": "#/definitions/v3PHYVersion", + "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "frequency_plan_id": { + "type": "string", + "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "min_frequency": { + "type": "string", + "format": "uint64", + "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "max_frequency": { + "type": "string", + "format": "uint64", + "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_join": { + "type": "boolean", + "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "resets_join_nonces": { + "type": "boolean", + "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "root_keys": { + "$ref": "#/definitions/v3RootKeys", + "description": "Device root keys. Stored in Join Server." + }, + "net_id": { + "type": "string", + "format": "string", + "example": "000013", + "description": "Home NetID. Stored in Join Server." + }, + "mac_settings": { + "$ref": "#/definitions/v3MACSettings", + "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." + }, + "mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "MAC state of the device. Stored in Network Server." + }, + "pending_mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "Pending MAC state of the device. Stored in Network Server." + }, + "session": { + "$ref": "#/definitions/v3Session", + "description": "Current session of the device. Stored in Network Server and Application Server." + }, + "pending_session": { + "$ref": "#/definitions/v3Session", + "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." + }, + "last_dev_nonce": { + "type": "integer", + "format": "int64", + "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." + }, + "used_dev_nonces": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." + }, + "last_join_nonce": { + "type": "integer", + "format": "int64", + "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." + }, + "last_rj_count_0": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." + }, + "last_rj_count_1": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." + }, + "last_dev_status_received_at": { + "type": "string", + "format": "date-time", + "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." + }, + "power_state": { + "$ref": "#/definitions/v3PowerState", + "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." + }, + "battery_percentage": { + "type": "number", + "format": "float", + "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." + }, + "downlink_margin": { + "type": "integer", + "format": "int32", + "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." + }, + "queued_application_downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." + }, + "formatters": { + "$ref": "#/definitions/v3MessagePayloadFormatters", + "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner. Stored in Join Server." + }, + "provisioning_data": { + "type": "object", + "description": "Vendor-specific provisioning data. Stored in Join Server." + }, + "multicast": { + "type": "boolean", + "description": "Indicates whether this device represents a multicast group." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3EndDeviceAuthenticationCode", + "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." + }, + "skip_payload_crypto": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." + }, + "skip_payload_crypto_override": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." + }, + "activated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." + }, + "last_seen_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." + }, + "serial_number": { + "type": "string" + }, + "lora_alliance_profile_ids": { + "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" + } + }, + "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." + }, + "field_mask": { + "type": "string", + "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." } - }, - "description": "Application Server configuration." + } }, "v3AuthInfoResponse": { "type": "object", @@ -22333,6 +19522,17 @@ }, "description": "An OAuth client on the network." }, + "v3ClientAccessSetCollaboratorBody": { + "type": "object", + "properties": { + "client_ids": { + "type": "object" + }, + "collaborator": { + "$ref": "#/definitions/v3Collaborator" + } + } + }, "v3ClientIdentifiers": { "type": "object", "properties": { @@ -22341,6 +19541,139 @@ } } }, + "v3ClientRegistryCreateBody": { + "type": "object", + "properties": { + "client": { + "$ref": "#/definitions/v3Client" + }, + "collaborator": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "user_ids": { + "$ref": "#/definitions/v3UserIdentifiers" + } + }, + "description": "Collaborator to grant all rights on the newly created client.", + "title": "Collaborator to grant all rights on the newly created client." + } + } + }, + "v3ClientRegistryUpdateBody": { + "type": "object", + "properties": { + "client": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "description": "The identifiers of the OAuth client. These are public and can be seen by any authenticated user in the network.", + "title": "The identifiers of the OAuth client. These are public and can be seen by any authenticated user in the network." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "When the OAuth client was created. This information is public and can be seen by any authenticated user in the network." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "When the OAuth client was last updated. This information is public and can be seen by any authenticated user in the network." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the OAuth client was deleted. This information is public and can be seen by any authenticated user in the network." + }, + "name": { + "type": "string", + "description": "The name of the OAuth client. This information is public and can be seen by any authenticated user in the network." + }, + "description": { + "type": "string", + "description": "A description for the OAuth client. This information is public and can be seen by any authenticated user in the network." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this client. Typically used for organizing clients or for storing integration-specific data." + }, + "contact_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ContactInfo" + }, + "description": "Contact information for this client. Typically used to indicate who to contact with technical/security questions about the application.\nThis information is public and can be seen by any authenticated user in the network.\nThis field is deprecated. Use administrative_contact and technical_contact instead." + }, + "administrative_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "technical_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "secret": { + "type": "string", + "description": "The client secret is only visible to collaborators of the client." + }, + "redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The allowed redirect URIs against which authorization requests are checked.\nIf the authorization request does not pass a redirect URI, the first one\nfrom this list is taken.\nThis information is public and can be seen by any authenticated user in the network." + }, + "logout_redirect_uris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The allowed logout redirect URIs against which client initiated logout\nrequests are checked. If the authorization request does not pass a redirect\nURI, the first one from this list is taken.\nThis information is public and can be seen by any authenticated user in the network." + }, + "state": { + "$ref": "#/definitions/v3State", + "description": "The reviewing state of the client.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins.\nIf state_description is not updated when updating state, state_description is cleared." + }, + "state_description": { + "type": "string", + "description": "A description for the state field.\nThis field can only be modified by admins, and should typically only be updated\nwhen also updating `state`." + }, + "skip_authorization": { + "type": "boolean", + "description": "If set, the authorization page will be skipped.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." + }, + "endorsed": { + "type": "boolean", + "description": "If set, the authorization page will show endorsement.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." + }, + "grants": { + "type": "array", + "items": { + "$ref": "#/definitions/v3GrantType" + }, + "description": "OAuth flows that can be used for the client to get a token.\nThis information is public and can be seen by any authenticated user in the network.\nAfter a client is created, this field can only be modified by admins." + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + }, + "description": "Rights denotes what rights the client will have access to.\nThis information is public and can be seen by any authenticated user in the network.\nUsers that previously authorized this client will have to re-authorize the\nclient after rights are added to this list." + } + }, + "description": "An OAuth client on the network." + }, + "field_mask": { + "type": "string", + "description": "The names of the client fields that should be updated." + } + } + }, "v3Clients": { "type": "object", "properties": { @@ -23192,46 +20525,593 @@ "items": { "$ref": "#/definitions/v3KeyProvisioning" }, - "description": "Supported key provisioning methods." - }, - "key_security": { - "$ref": "#/definitions/v3KeySecurity", - "description": "Device key security." - }, - "photos": { - "$ref": "#/definitions/EndDeviceModelPhotos", - "description": "Device photos." - }, - "videos": { - "$ref": "#/definitions/EndDeviceModelVideos", - "description": "Device videos." - }, - "product_url": { - "type": "string", - "description": "Device information page URL." + "description": "Supported key provisioning methods." + }, + "key_security": { + "$ref": "#/definitions/v3KeySecurity", + "description": "Device key security." + }, + "photos": { + "$ref": "#/definitions/EndDeviceModelPhotos", + "description": "Device photos." + }, + "videos": { + "$ref": "#/definitions/EndDeviceModelVideos", + "description": "Device videos." + }, + "product_url": { + "type": "string", + "description": "Device information page URL." + }, + "datasheet_url": { + "type": "string", + "description": "Device datasheet URL." + }, + "resellers": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/EndDeviceModelReseller" + }, + "description": "Reseller URLs." + }, + "compliances": { + "$ref": "#/definitions/EndDeviceModelCompliances", + "description": "List of standards the device is compliant with." + }, + "additional_radios": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of any additional radios included in the device." + } + } + }, + "v3EndDeviceRegistryCreateBody": { + "type": "object", + "properties": { + "end_device": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "device_id": { + "type": "string" + }, + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "Friendly name of the device. Stored in Entity Registry." + }, + "description": { + "type": "string", + "description": "Description of the device. Stored in Entity Registry." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", + "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." + }, + "service_profile_id": { + "type": "string", + "description": "Default service profile. Stored in Entity Registry." + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "network_server_kek_label": { + "type": "string", + "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_kek_label": { + "type": "string", + "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." + }, + "application_server_id": { + "type": "string", + "description": "The AS-ID of the Application Server to use.\nStored in Join Server." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "locations": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/lorawanv3Location" + }, + "description": "Location of the device. Stored in Entity Registry." + }, + "picture": { + "$ref": "#/definitions/v3Picture", + "description": "Stored in Entity Registry." + }, + "supports_class_b": { + "type": "boolean", + "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_class_c": { + "type": "boolean", + "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_version": { + "$ref": "#/definitions/v3MACVersion", + "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_phy_version": { + "$ref": "#/definitions/v3PHYVersion", + "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "frequency_plan_id": { + "type": "string", + "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "min_frequency": { + "type": "string", + "format": "uint64", + "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "max_frequency": { + "type": "string", + "format": "uint64", + "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_join": { + "type": "boolean", + "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "resets_join_nonces": { + "type": "boolean", + "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "root_keys": { + "$ref": "#/definitions/v3RootKeys", + "description": "Device root keys. Stored in Join Server." + }, + "net_id": { + "type": "string", + "format": "string", + "example": "000013", + "description": "Home NetID. Stored in Join Server." + }, + "mac_settings": { + "$ref": "#/definitions/v3MACSettings", + "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." + }, + "mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "MAC state of the device. Stored in Network Server." + }, + "pending_mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "Pending MAC state of the device. Stored in Network Server." + }, + "session": { + "$ref": "#/definitions/v3Session", + "description": "Current session of the device. Stored in Network Server and Application Server." + }, + "pending_session": { + "$ref": "#/definitions/v3Session", + "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." + }, + "last_dev_nonce": { + "type": "integer", + "format": "int64", + "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." + }, + "used_dev_nonces": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." + }, + "last_join_nonce": { + "type": "integer", + "format": "int64", + "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." + }, + "last_rj_count_0": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." + }, + "last_rj_count_1": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." + }, + "last_dev_status_received_at": { + "type": "string", + "format": "date-time", + "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." + }, + "power_state": { + "$ref": "#/definitions/v3PowerState", + "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." + }, + "battery_percentage": { + "type": "number", + "format": "float", + "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." + }, + "downlink_margin": { + "type": "integer", + "format": "int32", + "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." + }, + "queued_application_downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." + }, + "formatters": { + "$ref": "#/definitions/v3MessagePayloadFormatters", + "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner. Stored in Join Server." + }, + "provisioning_data": { + "type": "object", + "description": "Vendor-specific provisioning data. Stored in Join Server." + }, + "multicast": { + "type": "boolean", + "description": "Indicates whether this device represents a multicast group." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3EndDeviceAuthenticationCode", + "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." + }, + "skip_payload_crypto": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." + }, + "skip_payload_crypto_override": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." + }, + "activated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." + }, + "last_seen_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." + }, + "serial_number": { + "type": "string" + }, + "lora_alliance_profile_ids": { + "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" + } + }, + "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." + } + } + }, + "v3EndDeviceRegistryUpdateBody": { + "type": "object", + "properties": { + "end_device": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "Friendly name of the device. Stored in Entity Registry." + }, + "description": { + "type": "string", + "description": "Description of the device. Stored in Entity Registry." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", + "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." + }, + "service_profile_id": { + "type": "string", + "description": "Default service profile. Stored in Entity Registry." + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "network_server_kek_label": { + "type": "string", + "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_kek_label": { + "type": "string", + "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." + }, + "application_server_id": { + "type": "string", + "description": "The AS-ID of the Application Server to use.\nStored in Join Server." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "locations": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/lorawanv3Location" + }, + "description": "Location of the device. Stored in Entity Registry." + }, + "picture": { + "$ref": "#/definitions/v3Picture", + "description": "Stored in Entity Registry." + }, + "supports_class_b": { + "type": "boolean", + "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_class_c": { + "type": "boolean", + "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_version": { + "$ref": "#/definitions/v3MACVersion", + "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_phy_version": { + "$ref": "#/definitions/v3PHYVersion", + "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "frequency_plan_id": { + "type": "string", + "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "min_frequency": { + "type": "string", + "format": "uint64", + "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "max_frequency": { + "type": "string", + "format": "uint64", + "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_join": { + "type": "boolean", + "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "resets_join_nonces": { + "type": "boolean", + "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "root_keys": { + "$ref": "#/definitions/v3RootKeys", + "description": "Device root keys. Stored in Join Server." + }, + "net_id": { + "type": "string", + "format": "string", + "example": "000013", + "description": "Home NetID. Stored in Join Server." + }, + "mac_settings": { + "$ref": "#/definitions/v3MACSettings", + "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." + }, + "mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "MAC state of the device. Stored in Network Server." + }, + "pending_mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "Pending MAC state of the device. Stored in Network Server." + }, + "session": { + "$ref": "#/definitions/v3Session", + "description": "Current session of the device. Stored in Network Server and Application Server." + }, + "pending_session": { + "$ref": "#/definitions/v3Session", + "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." + }, + "last_dev_nonce": { + "type": "integer", + "format": "int64", + "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." + }, + "used_dev_nonces": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." + }, + "last_join_nonce": { + "type": "integer", + "format": "int64", + "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." + }, + "last_rj_count_0": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." + }, + "last_rj_count_1": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." + }, + "last_dev_status_received_at": { + "type": "string", + "format": "date-time", + "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." + }, + "power_state": { + "$ref": "#/definitions/v3PowerState", + "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." + }, + "battery_percentage": { + "type": "number", + "format": "float", + "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." + }, + "downlink_margin": { + "type": "integer", + "format": "int32", + "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." + }, + "queued_application_downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." + }, + "formatters": { + "$ref": "#/definitions/v3MessagePayloadFormatters", + "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner. Stored in Join Server." + }, + "provisioning_data": { + "type": "object", + "description": "Vendor-specific provisioning data. Stored in Join Server." + }, + "multicast": { + "type": "boolean", + "description": "Indicates whether this device represents a multicast group." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3EndDeviceAuthenticationCode", + "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." + }, + "skip_payload_crypto": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." + }, + "skip_payload_crypto_override": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." + }, + "activated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." + }, + "last_seen_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." + }, + "serial_number": { + "type": "string" + }, + "lora_alliance_profile_ids": { + "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" + } + }, + "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." }, - "datasheet_url": { + "field_mask": { "type": "string", - "description": "Device datasheet URL." - }, - "resellers": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/EndDeviceModelReseller" - }, - "description": "Reseller URLs." - }, - "compliances": { - "$ref": "#/definitions/EndDeviceModelCompliances", - "description": "List of standards the device is compliant with." - }, - "additional_radios": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of any additional radios included in the device." + "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." } } }, @@ -23679,6 +21559,106 @@ }, "description": "Gateway is the message that defines a gateway on the network." }, + "v3GatewayAccessCreateAPIKeyBody": { + "type": "object", + "properties": { + "gateway_ids": { + "type": "object", + "properties": { + "eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "name": { + "type": "string" + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + } + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "v3GatewayAccessSetCollaboratorBody": { + "type": "object", + "properties": { + "gateway_ids": { + "type": "object", + "properties": { + "eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "collaborator": { + "$ref": "#/definitions/v3Collaborator" + } + } + }, + "v3GatewayAccessUpdateAPIKeyBody": { + "type": "object", + "properties": { + "gateway_ids": { + "type": "object", + "properties": { + "eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "api_key": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." + }, + "name": { + "type": "string", + "description": "User-defined (friendly) name for the API key." + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + }, + "description": "Rights that are granted to this API key." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "field_mask": { + "type": "string", + "description": "The names of the api key fields that should be updated." + } + } + }, "v3GatewayAntenna": { "type": "object", "properties": { @@ -23824,16 +21804,194 @@ "chip_type": { "type": "string" }, - "frequency": { + "frequency": { + "type": "string", + "format": "uint64" + }, + "rssi_offset": { + "type": "number", + "format": "float" + }, + "tx_configuration": { + "$ref": "#/definitions/GatewayRadioTxConfiguration" + } + } + }, + "v3GatewayRegistryCreateBody": { + "type": "object", + "properties": { + "gateway": { + "$ref": "#/definitions/v3Gateway" + }, + "collaborator": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "user_ids": { + "$ref": "#/definitions/v3UserIdentifiers" + } + }, + "description": "Collaborator to grant all rights on the newly created gateway.", + "title": "Collaborator to grant all rights on the newly created gateway." + } + } + }, + "v3GatewayRegistryUpdateBody": { + "type": "object", + "properties": { + "gateway": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "Secondary identifier, which can only be used in specific requests." + } + }, + "description": "The identifiers of the gateway. These are public and can be seen by any authenticated user in the network.", + "title": "The identifiers of the gateway. These are public and can be seen by any authenticated user in the network." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "When the gateway was created. This information is public and can be seen by any authenticated user in the network." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "When the gateway was last updated. This information is public and can be seen by any authenticated user in the network." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the gateway was deleted. This information is public and can be seen by any authenticated user in the network." + }, + "name": { + "type": "string", + "description": "The name of the gateway. This information is public and can be seen by any authenticated user in the network." + }, + "description": { + "type": "string", + "description": "A description for the gateway. This information is public and can be seen by any authenticated user in the network." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this gateway. Typically used for organizing gateways or for storing integration-specific data." + }, + "contact_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ContactInfo" + }, + "description": "Contact information for this gateway. Typically used to indicate who to contact with technical/security questions about the gateway.\nThis field is deprecated. Use administrative_contact and technical_contact instead." + }, + "administrative_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "technical_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "version_ids": { + "$ref": "#/definitions/v3GatewayVersionIdentifiers" + }, + "gateway_server_address": { + "type": "string", + "description": "The address of the Gateway Server to connect to.\nThis information is public and can be seen by any authenticated user in the network if status_public is true.\nThe typical format of the address is \"scheme://host:port\". The scheme is optional. If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "auto_update": { + "type": "boolean" + }, + "update_channel": { + "type": "string" + }, + "frequency_plan_id": { + "type": "string", + "description": "Frequency plan ID of the gateway.\nThis information is public and can be seen by any authenticated user in the network.\nDEPRECATED: use frequency_plan_ids.\nThis equals the first element of the frequency_plan_ids field." + }, + "frequency_plan_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Frequency plan IDs of the gateway.\nThis information is public and can be seen by any authenticated user in the network.\nThe first element equals the frequency_plan_id field." + }, + "antennas": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3GatewayAntenna" + }, + "description": "Antennas of the gateway. Location information of the antennas is public and can be seen by any authenticated user in the network if location_public=true." + }, + "status_public": { + "type": "boolean", + "description": "The status of this gateway may be publicly displayed." + }, + "location_public": { + "type": "boolean", + "description": "The location of this gateway may be publicly displayed." + }, + "schedule_downlink_late": { + "type": "boolean", + "description": "Enable server-side buffering of downlink messages. This is recommended for gateways using the Semtech UDP Packet\nForwarder v2.x or older, as it does not feature a just-in-time queue. If enabled, the Gateway Server schedules the\ndownlink message late to the gateway so that it does not overwrite previously scheduled downlink messages that have\nnot been transmitted yet." + }, + "enforce_duty_cycle": { + "type": "boolean", + "description": "Enforcing gateway duty cycle is recommended for all gateways to respect spectrum regulations. Disable enforcing the\nduty cycle only in controlled research and development environments." + }, + "downlink_path_constraint": { + "$ref": "#/definitions/v3DownlinkPathConstraint" + }, + "schedule_anytime_delay": { + "type": "string", + "description": "Adjust the time that GS schedules class C messages in advance. This is useful for gateways that have a known high latency backhaul, like 3G and satellite." + }, + "update_location_from_status": { + "type": "boolean", + "description": "Update the location of this gateway from status messages. This only works for gateways connecting with authentication; gateways connected over UDP are not supported." + }, + "lbs_lns_secret": { + "$ref": "#/definitions/v3Secret", + "description": "The LoRa Basics Station LNS secret.\nThis is either an auth token (such as an API Key) or a TLS private certificate.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3GatewayClaimAuthenticationCode", + "description": "The authentication code for gateway claiming.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value.\nThe entire field must be used in RPCs since sub-fields are validated wrt to each other. Direct selection/update of sub-fields only are not allowed.\nUse the top level field mask `claim_authentication_code` even when updating single fields." + }, + "target_cups_uri": { + "type": "string", + "description": "CUPS URI for LoRa Basics Station CUPS redirection.\nThe CUPS Trust field will be automatically fetched from the cert chain presented by the target server." + }, + "target_cups_key": { + "$ref": "#/definitions/v3Secret", + "description": "CUPS Key for LoRa Basics Station CUPS redirection.\nIf redirecting to another instance of TTS, use the CUPS API Key for the gateway on the target instance.\nRequires the RIGHT_GATEWAY_READ_SECRETS for reading and RIGHT_GATEWAY_WRITE_SECRETS for updating this value." + }, + "require_authenticated_connection": { + "type": "boolean", + "description": "Require an authenticated gateway connection. This prevents the gateway from using the UDP protocol and requires authentication when using other protocols." + }, + "lrfhss": { + "$ref": "#/definitions/GatewayLRFHSS" + }, + "disable_packet_broker_forwarding": { + "type": "boolean" + } + }, + "description": "Gateway is the message that defines a gateway on the network." + }, + "field_mask": { "type": "string", - "format": "uint64" - }, - "rssi_offset": { - "type": "number", - "format": "float" - }, - "tx_configuration": { - "$ref": "#/definitions/GatewayRadioTxConfiguration" + "description": "The names of the gateway fields that should be updated." } } }, @@ -24345,6 +22503,283 @@ } } }, + "v3JsEndDeviceRegistrySetBody": { + "type": "object", + "properties": { + "end_device": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "device_id": { + "type": "string" + }, + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "Friendly name of the device. Stored in Entity Registry." + }, + "description": { + "type": "string", + "description": "Description of the device. Stored in Entity Registry." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", + "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." + }, + "service_profile_id": { + "type": "string", + "description": "Default service profile. Stored in Entity Registry." + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "network_server_kek_label": { + "type": "string", + "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_kek_label": { + "type": "string", + "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." + }, + "application_server_id": { + "type": "string", + "description": "The AS-ID of the Application Server to use.\nStored in Join Server." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "locations": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/lorawanv3Location" + }, + "description": "Location of the device. Stored in Entity Registry." + }, + "picture": { + "$ref": "#/definitions/v3Picture", + "description": "Stored in Entity Registry." + }, + "supports_class_b": { + "type": "boolean", + "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_class_c": { + "type": "boolean", + "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_version": { + "$ref": "#/definitions/v3MACVersion", + "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_phy_version": { + "$ref": "#/definitions/v3PHYVersion", + "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "frequency_plan_id": { + "type": "string", + "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "min_frequency": { + "type": "string", + "format": "uint64", + "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "max_frequency": { + "type": "string", + "format": "uint64", + "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_join": { + "type": "boolean", + "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "resets_join_nonces": { + "type": "boolean", + "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "root_keys": { + "$ref": "#/definitions/v3RootKeys", + "description": "Device root keys. Stored in Join Server." + }, + "net_id": { + "type": "string", + "format": "string", + "example": "000013", + "description": "Home NetID. Stored in Join Server." + }, + "mac_settings": { + "$ref": "#/definitions/v3MACSettings", + "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." + }, + "mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "MAC state of the device. Stored in Network Server." + }, + "pending_mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "Pending MAC state of the device. Stored in Network Server." + }, + "session": { + "$ref": "#/definitions/v3Session", + "description": "Current session of the device. Stored in Network Server and Application Server." + }, + "pending_session": { + "$ref": "#/definitions/v3Session", + "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." + }, + "last_dev_nonce": { + "type": "integer", + "format": "int64", + "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." + }, + "used_dev_nonces": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." + }, + "last_join_nonce": { + "type": "integer", + "format": "int64", + "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." + }, + "last_rj_count_0": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." + }, + "last_rj_count_1": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." + }, + "last_dev_status_received_at": { + "type": "string", + "format": "date-time", + "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." + }, + "power_state": { + "$ref": "#/definitions/v3PowerState", + "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." + }, + "battery_percentage": { + "type": "number", + "format": "float", + "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." + }, + "downlink_margin": { + "type": "integer", + "format": "int32", + "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." + }, + "queued_application_downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." + }, + "formatters": { + "$ref": "#/definitions/v3MessagePayloadFormatters", + "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner. Stored in Join Server." + }, + "provisioning_data": { + "type": "object", + "description": "Vendor-specific provisioning data. Stored in Join Server." + }, + "multicast": { + "type": "boolean", + "description": "Indicates whether this device represents a multicast group." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3EndDeviceAuthenticationCode", + "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." + }, + "skip_payload_crypto": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." + }, + "skip_payload_crypto_override": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." + }, + "activated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." + }, + "last_seen_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." + }, + "serial_number": { + "type": "string" + }, + "lora_alliance_profile_ids": { + "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" + } + }, + "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." + }, + "field_mask": { + "type": "string", + "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." + } + } + }, "v3KeyEnvelope": { "type": "object", "properties": { @@ -25423,43 +23858,320 @@ "items": { "$ref": "#/definitions/v3NotificationReceiver" }, - "description": "Relation of the notification receiver to the entity." - }, - "email": { - "type": "boolean", - "description": "Whether an email was sent for the notification." - }, - "status": { - "$ref": "#/definitions/v3NotificationStatus", - "description": "The status of the notification." + "description": "Relation of the notification receiver to the entity." + }, + "email": { + "type": "boolean", + "description": "Whether an email was sent for the notification." + }, + "status": { + "$ref": "#/definitions/v3NotificationStatus", + "description": "The status of the notification." + }, + "status_updated_at": { + "type": "string", + "format": "date-time", + "description": "The time when the notification status was updated." + } + } + }, + "v3NotificationReceiver": { + "type": "string", + "enum": [ + "NOTIFICATION_RECEIVER_UNKNOWN", + "NOTIFICATION_RECEIVER_COLLABORATOR", + "NOTIFICATION_RECEIVER_ADMINISTRATIVE_CONTACT", + "NOTIFICATION_RECEIVER_TECHNICAL_CONTACT" + ], + "default": "NOTIFICATION_RECEIVER_UNKNOWN", + "description": " - NOTIFICATION_RECEIVER_COLLABORATOR: Notification is received by collaborators of the entity.\nIf the collaborator is an organization, the notification is received by organization members.\n - NOTIFICATION_RECEIVER_ADMINISTRATIVE_CONTACT: Notification is received by administrative contact of the entity.\nIf this is an organization, the notification is received by organization members.\n - NOTIFICATION_RECEIVER_TECHNICAL_CONTACT: Notification is received by technical contact of the entity.\nIf this is an organization, the notification is received by organization members." + }, + "v3NotificationStatus": { + "type": "string", + "enum": [ + "NOTIFICATION_STATUS_UNSEEN", + "NOTIFICATION_STATUS_SEEN", + "NOTIFICATION_STATUS_ARCHIVED" + ], + "default": "NOTIFICATION_STATUS_UNSEEN" + }, + "v3NsEndDeviceRegistrySetBody": { + "type": "object", + "properties": { + "end_device": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "device_id": { + "type": "string" + }, + "application_ids": { + "type": "object" + }, + "dev_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN DevEUI." + }, + "join_eui": { + "type": "string", + "format": "string", + "example": "70B3D57ED000ABCD", + "description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)." + }, + "dev_addr": { + "type": "string", + "format": "string", + "example": "2600ABCD", + "description": "The LoRaWAN DevAddr." + } + } + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string", + "description": "Friendly name of the device. Stored in Entity Registry." + }, + "description": { + "type": "string", + "description": "Description of the device. Stored in Entity Registry." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this end device. Typically used for organizing end devices or for storing integration-specific data. Stored in Entity Registry." + }, + "version_ids": { + "$ref": "#/definitions/v3EndDeviceVersionIdentifiers", + "description": "Version Identifiers. Stored in Entity Registry, Network Server and Application Server." + }, + "service_profile_id": { + "type": "string", + "description": "Default service profile. Stored in Entity Registry." + }, + "network_server_address": { + "type": "string", + "description": "The address of the Network Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "network_server_kek_label": { + "type": "string", + "description": "The KEK label of the Network Server to use for wrapping network session keys.\nStored in Join Server." + }, + "application_server_address": { + "type": "string", + "description": "The address of the Application Server where this device is supposed to be registered.\nStored in Entity Registry and Join Server.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "application_server_kek_label": { + "type": "string", + "description": "The KEK label of the Application Server to use for wrapping the application session key.\nStored in Join Server." + }, + "application_server_id": { + "type": "string", + "description": "The AS-ID of the Application Server to use.\nStored in Join Server." + }, + "join_server_address": { + "type": "string", + "description": "The address of the Join Server where this device is supposed to be registered.\nStored in Entity Registry.\nThe typical format of the address is \"host:port\". If the port is omitted,\nthe normal port inference (with DNS lookup, otherwise defaults) is used.\nThe connection shall be established with transport layer security (TLS).\nCustom certificate authorities may be configured out-of-band." + }, + "locations": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/lorawanv3Location" + }, + "description": "Location of the device. Stored in Entity Registry." + }, + "picture": { + "$ref": "#/definitions/v3Picture", + "description": "Stored in Entity Registry." + }, + "supports_class_b": { + "type": "boolean", + "description": "Whether the device supports class B.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_class_c": { + "type": "boolean", + "description": "Whether the device supports class C.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_version": { + "$ref": "#/definitions/v3MACVersion", + "description": "LoRaWAN MAC version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "lorawan_phy_version": { + "$ref": "#/definitions/v3PHYVersion", + "description": "LoRaWAN PHY version. Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "frequency_plan_id": { + "type": "string", + "description": "ID of the frequency plan used by this device.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "min_frequency": { + "type": "string", + "format": "uint64", + "description": "Minimum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "max_frequency": { + "type": "string", + "format": "uint64", + "description": "Maximum frequency the device is capable of using (Hz). Stored in Network Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "supports_join": { + "type": "boolean", + "description": "The device supports join (it's OTAA).\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "resets_join_nonces": { + "type": "boolean", + "description": "Whether the device resets the join and dev nonces (not LoRaWAN compliant). Stored in Join Server.\nCopied on creation from template identified by version_ids, if any or from the home Network Server device profile, if any." + }, + "root_keys": { + "$ref": "#/definitions/v3RootKeys", + "description": "Device root keys. Stored in Join Server." + }, + "net_id": { + "type": "string", + "format": "string", + "example": "000013", + "description": "Home NetID. Stored in Join Server." + }, + "mac_settings": { + "$ref": "#/definitions/v3MACSettings", + "description": "Settings for how the Network Server handles MAC layer for this device. Stored in Network Server." + }, + "mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "MAC state of the device. Stored in Network Server." + }, + "pending_mac_state": { + "$ref": "#/definitions/v3MACState", + "description": "Pending MAC state of the device. Stored in Network Server." + }, + "session": { + "$ref": "#/definitions/v3Session", + "description": "Current session of the device. Stored in Network Server and Application Server." + }, + "pending_session": { + "$ref": "#/definitions/v3Session", + "description": "Pending session. Stored in Network Server and Application Server until RekeyInd is received." + }, + "last_dev_nonce": { + "type": "integer", + "format": "int64", + "description": "Last DevNonce used.\nThis field is only used for devices using LoRaWAN version 1.1 and later.\nStored in Join Server." + }, + "used_dev_nonces": { + "type": "array", + "items": { + "type": "integer", + "format": "int64" + }, + "description": "Used DevNonces sorted in ascending order.\nThis field is only used for devices using LoRaWAN versions preceding 1.1.\nStored in Join Server." + }, + "last_join_nonce": { + "type": "integer", + "format": "int64", + "description": "Last JoinNonce/AppNonce(for devices using LoRaWAN versions preceding 1.1) used.\nStored in Join Server." + }, + "last_rj_count_0": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 0/2).\nStored in Join Server." + }, + "last_rj_count_1": { + "type": "integer", + "format": "int64", + "description": "Last Rejoin counter value used (type 1).\nStored in Join Server." + }, + "last_dev_status_received_at": { + "type": "string", + "format": "date-time", + "description": "Time when last DevStatus MAC command was received.\nStored in Network Server." + }, + "power_state": { + "$ref": "#/definitions/v3PowerState", + "description": "The power state of the device; whether it is battery-powered or connected to an external power source.\nReceived via the DevStatus MAC command at status_received_at.\nStored in Network Server." + }, + "battery_percentage": { + "type": "number", + "format": "float", + "description": "Latest-known battery percentage of the device.\nReceived via the DevStatus MAC command at last_dev_status_received_at or earlier.\nStored in Network Server." + }, + "downlink_margin": { + "type": "integer", + "format": "int32", + "description": "Demodulation signal-to-noise ratio (dB).\nReceived via the DevStatus MAC command at last_dev_status_received_at.\nStored in Network Server." + }, + "queued_application_downlinks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ApplicationDownlink" + }, + "description": "Queued Application downlink messages. Stored in Application Server,\nwhich sets them on the Network Server.\nThis field is deprecated and is always set equal to session.queued_application_downlinks." + }, + "formatters": { + "$ref": "#/definitions/v3MessagePayloadFormatters", + "description": "The payload formatters for this end device. Stored in Application Server.\nCopied on creation from template identified by version_ids." + }, + "provisioner_id": { + "type": "string", + "description": "ID of the provisioner. Stored in Join Server." + }, + "provisioning_data": { + "type": "object", + "description": "Vendor-specific provisioning data. Stored in Join Server." + }, + "multicast": { + "type": "boolean", + "description": "Indicates whether this device represents a multicast group." + }, + "claim_authentication_code": { + "$ref": "#/definitions/v3EndDeviceAuthenticationCode", + "description": "Authentication code to claim ownership of the end device.\nFrom TTS v3.21.0 this field is stored in the Identity Server.\nFor TTS versions \u003c 3.21.0, this field is stored in the Join Server.\nThe value stored on the Identity Server takes precedence." + }, + "skip_payload_crypto": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field is deprecated, use skip_payload_crypto_override instead." + }, + "skip_payload_crypto_override": { + "type": "boolean", + "description": "Skip decryption of uplink payloads and encryption of downlink payloads.\nThis field overrides the application-level setting." + }, + "activated_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the device has been activated. Stored in the Entity Registry.\nThis field is set by the Application Server when an end device sends\nits first uplink.\nThe Application Server will use the field in order to avoid repeated\ncalls to the Entity Registry.\nThe field cannot be unset once set." + }, + "last_seen_at": { + "type": "string", + "format": "date-time", + "description": "Timestamp when a device uplink has been last observed.\nThis field is set by the Application Server and stored in the Identity Server." + }, + "serial_number": { + "type": "string" + }, + "lora_alliance_profile_ids": { + "$ref": "#/definitions/v3LoRaAllianceProfileIdentifiers" + } + }, + "description": "Defines an End Device registration and its state on the network.\nThe persistence of the EndDevice is divided between the Network Server, Application Server and Join Server.\nSDKs are responsible for combining (if desired) the three." }, - "status_updated_at": { + "field_mask": { "type": "string", - "format": "date-time", - "description": "The time when the notification status was updated." + "description": "The names of the end device fields that should be updated.\nSee the API reference for which fields can be set on the different services." } } }, - "v3NotificationReceiver": { - "type": "string", - "enum": [ - "NOTIFICATION_RECEIVER_UNKNOWN", - "NOTIFICATION_RECEIVER_COLLABORATOR", - "NOTIFICATION_RECEIVER_ADMINISTRATIVE_CONTACT", - "NOTIFICATION_RECEIVER_TECHNICAL_CONTACT" - ], - "default": "NOTIFICATION_RECEIVER_UNKNOWN", - "description": " - NOTIFICATION_RECEIVER_COLLABORATOR: Notification is received by collaborators of the entity.\nIf the collaborator is an organization, the notification is received by organization members.\n - NOTIFICATION_RECEIVER_ADMINISTRATIVE_CONTACT: Notification is received by administrative contact of the entity.\nIf this is an organization, the notification is received by organization members.\n - NOTIFICATION_RECEIVER_TECHNICAL_CONTACT: Notification is received by technical contact of the entity.\nIf this is an organization, the notification is received by organization members." - }, - "v3NotificationStatus": { - "type": "string", - "enum": [ - "NOTIFICATION_STATUS_UNSEEN", - "NOTIFICATION_STATUS_SEEN", - "NOTIFICATION_STATUS_ARCHIVED" - ], - "default": "NOTIFICATION_STATUS_UNSEEN" - }, "v3NwkSKeysResponse": { "type": "object", "properties": { @@ -25620,6 +24332,82 @@ } } }, + "v3OrganizationAccessCreateAPIKeyBody": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "name": { + "type": "string" + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + } + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "v3OrganizationAccessSetCollaboratorBody": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "collaborator": { + "$ref": "#/definitions/v3Collaborator" + } + } + }, + "v3OrganizationAccessUpdateAPIKeyBody": { + "type": "object", + "properties": { + "organization_ids": { + "type": "object" + }, + "api_key": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." + }, + "name": { + "type": "string", + "description": "User-defined (friendly) name for the API key." + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + }, + "description": "Rights that are granted to this API key." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "field_mask": { + "type": "string", + "description": "The names of the api key fields that should be updated." + } + } + }, "v3OrganizationIdentifiers": { "type": "object", "properties": { @@ -25641,6 +24429,100 @@ }, "description": "OrganizationOrUserIdentifiers contains either organization or user identifiers." }, + "v3OrganizationRegistryCreateBody": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/v3Organization" + }, + "collaborator": { + "type": "object", + "properties": { + "organization_ids": { + "$ref": "#/definitions/v3OrganizationIdentifiers" + }, + "user_ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + } + }, + "description": "Collaborator to grant all rights on the newly created application.\nNOTE: It is currently not possible to have organizations collaborating on\nother organizations.", + "title": "Collaborator to grant all rights on the newly created application.\nNOTE: It is currently not possible to have organizations collaborating on\nother organizations." + } + } + }, + "v3OrganizationRegistryUpdateBody": { + "type": "object", + "properties": { + "organization": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "description": "The identifiers of the organization. These are public and can be seen by any authenticated user in the network.", + "title": "The identifiers of the organization. These are public and can be seen by any authenticated user in the network." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "When the organization was created. This information is public and can be seen by any authenticated user in the network." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "When the organization was last updated. This information is public and can be seen by any authenticated user in the network." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the organization was deleted. This information is public and can be seen by any authenticated user in the network." + }, + "name": { + "type": "string", + "description": "The name of the organization. This information is public and can be seen by any authenticated user in the network." + }, + "description": { + "type": "string", + "description": "A description for the organization." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this organization. Typically used for organizing organizations or for storing integration-specific data." + }, + "contact_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ContactInfo" + }, + "description": "Contact information for this organization. Typically used to indicate who to contact with security/billing questions about the organization.\nThis field is deprecated. Use administrative_contact and technical_contact instead." + }, + "administrative_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "technical_contact": { + "$ref": "#/definitions/v3OrganizationOrUserIdentifiers" + }, + "fanout_notifications": { + "type": "boolean", + "description": "Determines if a notification will be sent to the collaborators. If false it, notifications will be sent only to the\nadministrative or technical contact." + } + } + }, + "field_mask": { + "type": "string", + "description": "The names of the organization fields that should be updated." + } + } + }, "v3Organizations": { "type": "object", "properties": { @@ -27090,6 +25972,83 @@ }, "description": "User is the message that defines a user on the network." }, + "v3UserAccessCreateAPIKeyBody": { + "type": "object", + "properties": { + "user_ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "name": { + "type": "string" + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + } + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "v3UserAccessUpdateAPIKeyBody": { + "type": "object", + "properties": { + "user_ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + } + }, + "api_key": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Immutable and unique secret value of the API key.\nGenerated by the Access Server." + }, + "name": { + "type": "string", + "description": "User-defined (friendly) name for the API key." + }, + "rights": { + "type": "array", + "items": { + "$ref": "#/definitions/v3Right" + }, + "description": "Rights that are granted to this API key." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "expires_at": { + "type": "string", + "format": "date-time" + } + } + }, + "field_mask": { + "type": "string", + "description": "The names of the api key fields that should be updated." + } + } + }, "v3UserIdentifiers": { "type": "object", "properties": { @@ -27103,6 +26062,118 @@ } } }, + "v3UserRegistryUpdateBody": { + "type": "object", + "properties": { + "user": { + "type": "object", + "properties": { + "ids": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Secondary identifier, which can only be used in specific requests." + } + }, + "description": "The identifiers of the user. These are public and can be seen by any authenticated user in the network.", + "title": "The identifiers of the user. These are public and can be seen by any authenticated user in the network." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "When the user was created. This information is public and can be seen by any authenticated user in the network." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "When the user was last updated. This information is public and can be seen by any authenticated user in the network." + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "description": "When the user was deleted. This information is public and can be seen by any authenticated user in the network." + }, + "name": { + "type": "string", + "description": "The name of the user. This information is public and can be seen by any authenticated user in the network." + }, + "description": { + "type": "string", + "description": "A description for the user. This information is public and can be seen by any authenticated user in the network." + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value attributes for this users. Typically used for storing integration-specific data." + }, + "contact_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v3ContactInfo" + }, + "description": "Contact information for this user. Typically used to indicate who to contact with security/billing questions about the user.\nThis field is deprecated." + }, + "primary_email_address": { + "type": "string", + "description": "Primary email address that can be used for logging in.\nThis address is not public, use contact_info for that." + }, + "primary_email_address_validated_at": { + "type": "string", + "format": "date-time", + "description": "When the primary email address was validated. Note that email address validation is not required on all networks." + }, + "password": { + "type": "string", + "description": "The password field is only considered when creating a user.\nIt is not returned on API calls, and can not be updated by updating the User.\nSee the UpdatePassword method of the UserRegistry service for more information." + }, + "password_updated_at": { + "type": "string", + "format": "date-time" + }, + "require_password_update": { + "type": "boolean" + }, + "state": { + "$ref": "#/definitions/v3State", + "description": "The reviewing state of the user.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by admins." + }, + "state_description": { + "type": "string", + "description": "A description for the state field.\nThis field can only be modified by admins, and should typically only be updated\nwhen also updating `state`." + }, + "admin": { + "type": "boolean", + "description": "This user is an admin.\nThis information is public and can be seen by any authenticated user in the network.\nThis field can only be modified by other admins." + }, + "temporary_password": { + "type": "string", + "description": "The temporary password can only be used to update a user's password; never returned on API calls.\nIt is not returned on API calls, and can not be updated by updating the User.\nSee the CreateTemporaryPassword method of the UserRegistry service for more information." + }, + "temporary_password_created_at": { + "type": "string", + "format": "date-time" + }, + "temporary_password_expires_at": { + "type": "string", + "format": "date-time" + }, + "profile_picture": { + "$ref": "#/definitions/v3Picture", + "description": "A profile picture for the user.\nThis information is public and can be seen by any authenticated user in the network." + } + }, + "description": "User is the message that defines a user on the network." + }, + "field_mask": { + "type": "string", + "description": "The names of the user fields that should be updated." + } + } + }, "v3UserSession": { "type": "object", "properties": { diff --git a/pkg/ttnpb/_api.pb.go b/pkg/ttnpb/_api.pb.go index 222be5de4c..b740767ffa 100644 --- a/pkg/ttnpb/_api.pb.go +++ b/pkg/ttnpb/_api.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/_api.proto // Package documentation should be added in the comment block below: diff --git a/pkg/ttnpb/application.pb.go b/pkg/ttnpb/application.pb.go index 654c89bf9d..d255e08acc 100644 --- a/pkg/ttnpb/application.pb.go +++ b/pkg/ttnpb/application.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/application.proto package ttnpb diff --git a/pkg/ttnpb/application_flags.pb.go b/pkg/ttnpb/application_flags.pb.go index bb62014bf7..7643da8c00 100644 --- a/pkg/ttnpb/application_flags.pb.go +++ b/pkg/ttnpb/application_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/application.proto package ttnpb diff --git a/pkg/ttnpb/application_json.pb.go b/pkg/ttnpb/application_json.pb.go index 7a22cbde09..74c764f9ae 100644 --- a/pkg/ttnpb/application_json.pb.go +++ b/pkg/ttnpb/application_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/application.proto package ttnpb diff --git a/pkg/ttnpb/application_services.pb.go b/pkg/ttnpb/application_services.pb.go index 8f1176441f..14c2f231da 100644 --- a/pkg/ttnpb/application_services.pb.go +++ b/pkg/ttnpb/application_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/application_services.proto package ttnpb diff --git a/pkg/ttnpb/application_services.pb.gw.go b/pkg/ttnpb/application_services.pb.gw.go index 17f262fce2..c53f8f9fdd 100644 --- a/pkg/ttnpb/application_services.pb.gw.go +++ b/pkg/ttnpb/application_services.pb.gw.go @@ -35,11 +35,7 @@ func request_ApplicationRegistry_Create_0(ctx context.Context, marshaler runtime var protoReq CreateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +65,7 @@ func local_request_ApplicationRegistry_Create_0(ctx context.Context, marshaler r var protoReq CreateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -103,11 +95,7 @@ func request_ApplicationRegistry_Create_1(ctx context.Context, marshaler runtime var protoReq CreateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -137,11 +125,7 @@ func local_request_ApplicationRegistry_Create_1(ctx context.Context, marshaler r var protoReq CreateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -168,7 +152,7 @@ func local_request_ApplicationRegistry_Create_1(ctx context.Context, marshaler r } var ( - filter_ApplicationRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -274,7 +258,7 @@ func local_request_ApplicationRegistry_List_0(ctx context.Context, marshaler run } var ( - filter_ApplicationRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2, "userId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_ApplicationRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_ApplicationRegistry_List_1(ctx context.Context, marshaler runtime.Marshaler, client ApplicationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -344,7 +328,7 @@ func local_request_ApplicationRegistry_List_1(ctx context.Context, marshaler run } var ( - filter_ApplicationRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2, "organizationId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_ApplicationRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_ApplicationRegistry_List_2(ctx context.Context, marshaler runtime.Marshaler, client ApplicationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -417,11 +401,7 @@ func request_ApplicationRegistry_Update_0(ctx context.Context, marshaler runtime var protoReq UpdateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -451,11 +431,7 @@ func local_request_ApplicationRegistry_Update_0(ctx context.Context, marshaler r var protoReq UpdateApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -745,11 +721,7 @@ func request_ApplicationAccess_CreateAPIKey_0(ctx context.Context, marshaler run var protoReq CreateApplicationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -779,11 +751,7 @@ func local_request_ApplicationAccess_CreateAPIKey_0(ctx context.Context, marshal var protoReq CreateApplicationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -810,7 +778,7 @@ func local_request_ApplicationAccess_CreateAPIKey_0(ctx context.Context, marshal } var ( - filter_ApplicationAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationAccess_ListAPIKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -880,7 +848,7 @@ func local_request_ApplicationAccess_ListAPIKeys_0(ctx context.Context, marshale } var ( - filter_ApplicationAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationAccess_GetAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -973,11 +941,7 @@ func request_ApplicationAccess_UpdateAPIKey_0(ctx context.Context, marshaler run var protoReq UpdateApplicationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1017,11 +981,7 @@ func local_request_ApplicationAccess_UpdateAPIKey_0(ctx context.Context, marshal var protoReq UpdateApplicationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1058,7 +1018,7 @@ func local_request_ApplicationAccess_UpdateAPIKey_0(ctx context.Context, marshal } var ( - filter_ApplicationAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationAccess_DeleteAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1148,7 +1108,7 @@ func local_request_ApplicationAccess_DeleteAPIKey_0(ctx context.Context, marshal } var ( - filter_ApplicationAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "collaborator": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ApplicationAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "collaborator": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ApplicationAccess_GetCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1238,7 +1198,7 @@ func local_request_ApplicationAccess_GetCollaborator_0(ctx context.Context, mars } var ( - filter_ApplicationAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "collaborator": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ApplicationAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "collaborator": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ApplicationAccess_GetCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1331,11 +1291,7 @@ func request_ApplicationAccess_SetCollaborator_0(ctx context.Context, marshaler var protoReq SetApplicationCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1365,11 +1321,7 @@ func local_request_ApplicationAccess_SetCollaborator_0(ctx context.Context, mars var protoReq SetApplicationCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1396,7 +1348,7 @@ func local_request_ApplicationAccess_SetCollaborator_0(ctx context.Context, mars } var ( - filter_ApplicationAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationAccess_ListCollaborators_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1466,7 +1418,7 @@ func local_request_ApplicationAccess_ListCollaborators_0(ctx context.Context, ma } var ( - filter_ApplicationAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "collaborator_ids": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ApplicationAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "collaborator_ids": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ApplicationAccess_DeleteCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1556,7 +1508,7 @@ func local_request_ApplicationAccess_DeleteCollaborator_0(ctx context.Context, m } var ( - filter_ApplicationAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "collaborator_ids": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ApplicationAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "collaborator_ids": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ApplicationAccess_DeleteCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client ApplicationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/application_services_grpc.pb.go b/pkg/ttnpb/application_services_grpc.pb.go index 16718b67af..e6a90c4d26 100644 --- a/pkg/ttnpb/application_services_grpc.pb.go +++ b/pkg/ttnpb/application_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/application_services.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver.pb.go b/pkg/ttnpb/applicationserver.pb.go index 858c60f260..6965e4c990 100644 --- a/pkg/ttnpb/applicationserver.pb.go +++ b/pkg/ttnpb/applicationserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver.pb.gw.go b/pkg/ttnpb/applicationserver.pb.gw.go index ef72f86302..caacfc9c6e 100644 --- a/pkg/ttnpb/applicationserver.pb.gw.go +++ b/pkg/ttnpb/applicationserver.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_As_GetLink_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_As_GetLink_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_As_GetLink_0(ctx context.Context, marshaler runtime.Marshaler, client AsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -105,11 +105,7 @@ func request_As_SetLink_0(ctx context.Context, marshaler runtime.Marshaler, clie var protoReq SetApplicationLinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -139,11 +135,7 @@ func local_request_As_SetLink_0(ctx context.Context, marshaler runtime.Marshaler var protoReq SetApplicationLinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -295,11 +287,7 @@ func request_AppAs_DownlinkQueuePush_0(ctx context.Context, marshaler runtime.Ma var protoReq DownlinkQueueRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -339,11 +327,7 @@ func local_request_AppAs_DownlinkQueuePush_0(ctx context.Context, marshaler runt var protoReq DownlinkQueueRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -383,11 +367,7 @@ func request_AppAs_DownlinkQueueReplace_0(ctx context.Context, marshaler runtime var protoReq DownlinkQueueRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -427,11 +407,7 @@ func local_request_AppAs_DownlinkQueueReplace_0(ctx context.Context, marshaler r var protoReq DownlinkQueueRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -468,7 +444,7 @@ func local_request_AppAs_DownlinkQueueReplace_0(ctx context.Context, marshaler r } var ( - filter_AppAs_DownlinkQueueList_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_AppAs_DownlinkQueueList_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_AppAs_DownlinkQueueList_0(ctx context.Context, marshaler runtime.Marshaler, client AppAsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -613,11 +589,7 @@ func request_AppAs_SimulateUplink_0(ctx context.Context, marshaler runtime.Marsh var protoReq ApplicationUp var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -657,11 +629,7 @@ func local_request_AppAs_SimulateUplink_0(ctx context.Context, marshaler runtime var protoReq ApplicationUp var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -701,11 +669,7 @@ func request_AppAs_EncodeDownlink_0(ctx context.Context, marshaler runtime.Marsh var protoReq EncodeDownlinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -745,11 +709,7 @@ func local_request_AppAs_EncodeDownlink_0(ctx context.Context, marshaler runtime var protoReq EncodeDownlinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -789,11 +749,7 @@ func request_AppAs_DecodeUplink_0(ctx context.Context, marshaler runtime.Marshal var protoReq DecodeUplinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -833,11 +789,7 @@ func local_request_AppAs_DecodeUplink_0(ctx context.Context, marshaler runtime.M var protoReq DecodeUplinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -877,11 +829,7 @@ func request_AppAs_DecodeDownlink_0(ctx context.Context, marshaler runtime.Marsh var protoReq DecodeDownlinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -921,11 +869,7 @@ func local_request_AppAs_DecodeDownlink_0(ctx context.Context, marshaler runtime var protoReq DecodeDownlinkRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -962,7 +906,7 @@ func local_request_AppAs_DecodeDownlink_0(ctx context.Context, marshaler runtime } var ( - filter_AsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_AsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_AsEndDeviceRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client AsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1055,11 +999,7 @@ func request_AsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1099,11 +1039,7 @@ func local_request_AsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1143,11 +1079,7 @@ func request_AsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1177,11 +1109,7 @@ func local_request_AsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1208,7 +1136,7 @@ func local_request_AsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runt } var ( - filter_AsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_AsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_AsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client AsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1298,7 +1226,7 @@ func local_request_AsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler r } var ( - filter_AsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_AsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_AsEndDeviceBatchRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client AsEndDeviceBatchRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/applicationserver_flags.pb.go b/pkg/ttnpb/applicationserver_flags.pb.go index 8955ca32bf..31995e8bdd 100644 --- a/pkg/ttnpb/applicationserver_flags.pb.go +++ b/pkg/ttnpb/applicationserver_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_grpc.pb.go b/pkg/ttnpb/applicationserver_grpc.pb.go index 67273a1aec..e1ff892525 100644 --- a/pkg/ttnpb/applicationserver_grpc.pb.go +++ b/pkg/ttnpb/applicationserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_integrations_alcsync.pb.go b/pkg/ttnpb/applicationserver_integrations_alcsync.pb.go index 44eec7b7ab..73c4e9e97c 100644 --- a/pkg/ttnpb/applicationserver_integrations_alcsync.pb.go +++ b/pkg/ttnpb/applicationserver_integrations_alcsync.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_integrations_alcsync.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_integrations_alcsync_json.pb.go b/pkg/ttnpb/applicationserver_integrations_alcsync_json.pb.go index b894cdabd8..cc53cea4fe 100644 --- a/pkg/ttnpb/applicationserver_integrations_alcsync_json.pb.go +++ b/pkg/ttnpb/applicationserver_integrations_alcsync_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_integrations_alcsync.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_integrations_storage.pb.go b/pkg/ttnpb/applicationserver_integrations_storage.pb.go index ca34f5e04c..23c0cba271 100644 --- a/pkg/ttnpb/applicationserver_integrations_storage.pb.go +++ b/pkg/ttnpb/applicationserver_integrations_storage.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_integrations_storage.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_integrations_storage.pb.gw.go b/pkg/ttnpb/applicationserver_integrations_storage.pb.gw.go index 9d8fce1d0e..0c328b6698 100644 --- a/pkg/ttnpb/applicationserver_integrations_storage.pb.gw.go +++ b/pkg/ttnpb/applicationserver_integrations_storage.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_ApplicationUpStorage_GetStoredApplicationUp_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5, "type": 6}, Base: []int{1, 1, 1, 1, 3, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 1, 4, 6, 5, 7, 8, 8}} + filter_ApplicationUpStorage_GetStoredApplicationUp_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3, "type": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 3, 2, 1, 4, 5, 6}} ) func request_ApplicationUpStorage_GetStoredApplicationUp_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationUpStorageClient, req *http.Request, pathParams map[string]string) (ApplicationUpStorage_GetStoredApplicationUpClient, runtime.ServerMetadata, error) { @@ -97,7 +97,7 @@ func request_ApplicationUpStorage_GetStoredApplicationUp_0(ctx context.Context, } var ( - filter_ApplicationUpStorage_GetStoredApplicationUp_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "type": 3}, Base: []int{1, 1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 3, 4, 5, 5}} + filter_ApplicationUpStorage_GetStoredApplicationUp_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "type": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationUpStorage_GetStoredApplicationUp_1(ctx context.Context, marshaler runtime.Marshaler, client ApplicationUpStorageClient, req *http.Request, pathParams map[string]string) (ApplicationUpStorage_GetStoredApplicationUpClient, runtime.ServerMetadata, error) { @@ -152,7 +152,7 @@ func request_ApplicationUpStorage_GetStoredApplicationUp_1(ctx context.Context, } var ( - filter_ApplicationUpStorage_GetStoredApplicationUpCount_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5, "type": 6}, Base: []int{1, 1, 1, 1, 3, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 1, 4, 6, 5, 7, 8, 8}} + filter_ApplicationUpStorage_GetStoredApplicationUpCount_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3, "type": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 3, 2, 1, 4, 5, 6}} ) func request_ApplicationUpStorage_GetStoredApplicationUpCount_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationUpStorageClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -262,7 +262,7 @@ func local_request_ApplicationUpStorage_GetStoredApplicationUpCount_0(ctx contex } var ( - filter_ApplicationUpStorage_GetStoredApplicationUpCount_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "type": 3}, Base: []int{1, 1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 3, 4, 5, 5}} + filter_ApplicationUpStorage_GetStoredApplicationUpCount_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "type": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationUpStorage_GetStoredApplicationUpCount_1(ctx context.Context, marshaler runtime.Marshaler, client ApplicationUpStorageClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/applicationserver_integrations_storage_grpc.pb.go b/pkg/ttnpb/applicationserver_integrations_storage_grpc.pb.go index 8708b261f7..a01706820a 100644 --- a/pkg/ttnpb/applicationserver_integrations_storage_grpc.pb.go +++ b/pkg/ttnpb/applicationserver_integrations_storage_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_integrations_storage.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_integrations_storage_json.pb.go b/pkg/ttnpb/applicationserver_integrations_storage_json.pb.go index 5189bdeb0c..11b0916d3b 100644 --- a/pkg/ttnpb/applicationserver_integrations_storage_json.pb.go +++ b/pkg/ttnpb/applicationserver_integrations_storage_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_integrations_storage.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_json.pb.go b/pkg/ttnpb/applicationserver_json.pb.go index be951529a4..fe587858bf 100644 --- a/pkg/ttnpb/applicationserver_json.pb.go +++ b/pkg/ttnpb/applicationserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_packages.pb.go b/pkg/ttnpb/applicationserver_packages.pb.go index d59cb21423..d7400699c3 100644 --- a/pkg/ttnpb/applicationserver_packages.pb.go +++ b/pkg/ttnpb/applicationserver_packages.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_packages.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_packages.pb.gw.go b/pkg/ttnpb/applicationserver_packages.pb.gw.go index b398fb130f..6070f176d4 100644 --- a/pkg/ttnpb/applicationserver_packages.pb.gw.go +++ b/pkg/ttnpb/applicationserver_packages.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_ApplicationPackageRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationPackageRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationPackageRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -122,7 +122,7 @@ func local_request_ApplicationPackageRegistry_List_0(ctx context.Context, marsha } var ( - filter_ApplicationPackageRegistry_GetAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "end_device_ids": 1, "application_ids": 2, "application_id": 3, "applicationId": 4, "device_id": 5, "deviceId": 6, "f_port": 7, "fPort": 8}, Base: []int{1, 5, 1, 1, 1, 5, 3, 6, 2, 7, 0, 0, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 4, 1, 2, 1, 7, 1, 5, 9, 2, 13, 6, 8, 10}} + filter_ApplicationPackageRegistry_GetAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "end_device_ids": 1, "application_ids": 2, "application_id": 3, "device_id": 4, "f_port": 5}, Base: []int{1, 4, 1, 1, 1, 2, 2, 0, 0, 4, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 5, 7, 2, 10}} ) func request_ApplicationPackageRegistry_GetAssociation_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +232,7 @@ func local_request_ApplicationPackageRegistry_GetAssociation_0(ctx context.Conte } var ( - filter_ApplicationPackageRegistry_ListAssociations_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_ApplicationPackageRegistry_ListAssociations_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_ApplicationPackageRegistry_ListAssociations_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -325,11 +325,7 @@ func request_ApplicationPackageRegistry_SetAssociation_0(ctx context.Context, ma var protoReq SetApplicationPackageAssociationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -379,11 +375,7 @@ func local_request_ApplicationPackageRegistry_SetAssociation_0(ctx context.Conte var protoReq SetApplicationPackageAssociationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -430,7 +422,7 @@ func local_request_ApplicationPackageRegistry_SetAssociation_0(ctx context.Conte } var ( - filter_ApplicationPackageRegistry_DeleteAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5, "f_port": 6, "fPort": 7}, Base: []int{1, 1, 1, 1, 3, 2, 4, 5, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 1, 1, 4, 6, 5, 7, 8, 9}} + filter_ApplicationPackageRegistry_DeleteAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3, "f_port": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 3, 2, 1, 4, 5, 6}} ) func request_ApplicationPackageRegistry_DeleteAssociation_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -540,7 +532,7 @@ func local_request_ApplicationPackageRegistry_DeleteAssociation_0(ctx context.Co } var ( - filter_ApplicationPackageRegistry_GetDefaultAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "f_port": 4, "fPort": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_ApplicationPackageRegistry_GetDefaultAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "f_port": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_ApplicationPackageRegistry_GetDefaultAssociation_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -630,7 +622,7 @@ func local_request_ApplicationPackageRegistry_GetDefaultAssociation_0(ctx contex } var ( - filter_ApplicationPackageRegistry_ListDefaultAssociations_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationPackageRegistry_ListDefaultAssociations_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationPackageRegistry_ListDefaultAssociations_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -703,11 +695,7 @@ func request_ApplicationPackageRegistry_SetDefaultAssociation_0(ctx context.Cont var protoReq SetApplicationPackageDefaultAssociationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -747,11 +735,7 @@ func local_request_ApplicationPackageRegistry_SetDefaultAssociation_0(ctx contex var protoReq SetApplicationPackageDefaultAssociationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -788,7 +772,7 @@ func local_request_ApplicationPackageRegistry_SetDefaultAssociation_0(ctx contex } var ( - filter_ApplicationPackageRegistry_DeleteDefaultAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "f_port": 3, "fPort": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationPackageRegistry_DeleteDefaultAssociation_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "f_port": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationPackageRegistry_DeleteDefaultAssociation_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPackageRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/applicationserver_packages_flags.pb.go b/pkg/ttnpb/applicationserver_packages_flags.pb.go index 72435d1146..e560f7deaa 100644 --- a/pkg/ttnpb/applicationserver_packages_flags.pb.go +++ b/pkg/ttnpb/applicationserver_packages_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_packages.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_packages_grpc.pb.go b/pkg/ttnpb/applicationserver_packages_grpc.pb.go index 5b30e6435e..3484cd73b9 100644 --- a/pkg/ttnpb/applicationserver_packages_grpc.pb.go +++ b/pkg/ttnpb/applicationserver_packages_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_packages.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_packages_json.pb.go b/pkg/ttnpb/applicationserver_packages_json.pb.go index 5aaa3967a9..02beefbbce 100644 --- a/pkg/ttnpb/applicationserver_packages_json.pb.go +++ b/pkg/ttnpb/applicationserver_packages_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_packages.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_pubsub.pb.go b/pkg/ttnpb/applicationserver_pubsub.pb.go index ee0f666785..d36155cfec 100644 --- a/pkg/ttnpb/applicationserver_pubsub.pb.go +++ b/pkg/ttnpb/applicationserver_pubsub.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_pubsub.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_pubsub.pb.gw.go b/pkg/ttnpb/applicationserver_pubsub.pb.gw.go index 0b22d9cb47..5c64cc4e3c 100644 --- a/pkg/ttnpb/applicationserver_pubsub.pb.gw.go +++ b/pkg/ttnpb/applicationserver_pubsub.pb.gw.go @@ -51,7 +51,7 @@ func local_request_ApplicationPubSubRegistry_GetFormats_0(ctx context.Context, m } var ( - filter_ApplicationPubSubRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "pub_sub_id": 4, "pubSubId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_ApplicationPubSubRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "pub_sub_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_ApplicationPubSubRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPubSubRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -141,7 +141,7 @@ func local_request_ApplicationPubSubRegistry_Get_0(ctx context.Context, marshale } var ( - filter_ApplicationPubSubRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationPubSubRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationPubSubRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPubSubRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -214,11 +214,7 @@ func request_ApplicationPubSubRegistry_Set_0(ctx context.Context, marshaler runt var protoReq SetApplicationPubSubRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -258,11 +254,7 @@ func local_request_ApplicationPubSubRegistry_Set_0(ctx context.Context, marshale var protoReq SetApplicationPubSubRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -302,11 +294,7 @@ func request_ApplicationPubSubRegistry_Set_1(ctx context.Context, marshaler runt var protoReq SetApplicationPubSubRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -336,11 +324,7 @@ func local_request_ApplicationPubSubRegistry_Set_1(ctx context.Context, marshale var protoReq SetApplicationPubSubRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -367,7 +351,7 @@ func local_request_ApplicationPubSubRegistry_Set_1(ctx context.Context, marshale } var ( - filter_ApplicationPubSubRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "pub_sub_id": 3, "pubSubId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationPubSubRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "pub_sub_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationPubSubRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationPubSubRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/applicationserver_pubsub_flags.pb.go b/pkg/ttnpb/applicationserver_pubsub_flags.pb.go index 4b7b78c165..f8ce372121 100644 --- a/pkg/ttnpb/applicationserver_pubsub_flags.pb.go +++ b/pkg/ttnpb/applicationserver_pubsub_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_pubsub.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_pubsub_grpc.pb.go b/pkg/ttnpb/applicationserver_pubsub_grpc.pb.go index 400545400a..8f817670b6 100644 --- a/pkg/ttnpb/applicationserver_pubsub_grpc.pb.go +++ b/pkg/ttnpb/applicationserver_pubsub_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_pubsub.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_pubsub_json.pb.go b/pkg/ttnpb/applicationserver_pubsub_json.pb.go index 7553c33bd5..ae64d85502 100644 --- a/pkg/ttnpb/applicationserver_pubsub_json.pb.go +++ b/pkg/ttnpb/applicationserver_pubsub_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_pubsub.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_web.pb.go b/pkg/ttnpb/applicationserver_web.pb.go index 35007de5ea..a0cb0c811e 100644 --- a/pkg/ttnpb/applicationserver_web.pb.go +++ b/pkg/ttnpb/applicationserver_web.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_web.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_web.pb.gw.go b/pkg/ttnpb/applicationserver_web.pb.gw.go index 23d5e1d3b8..236bf912b1 100644 --- a/pkg/ttnpb/applicationserver_web.pb.gw.go +++ b/pkg/ttnpb/applicationserver_web.pb.gw.go @@ -51,7 +51,7 @@ func local_request_ApplicationWebhookRegistry_GetFormats_0(ctx context.Context, } var ( - filter_ApplicationWebhookRegistry_GetTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "template_id": 1, "templateId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationWebhookRegistry_GetTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "template_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationWebhookRegistry_GetTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationWebhookRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -157,7 +157,7 @@ func local_request_ApplicationWebhookRegistry_ListTemplates_0(ctx context.Contex } var ( - filter_ApplicationWebhookRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "webhook_id": 4, "webhookId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_ApplicationWebhookRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"ids": 0, "application_ids": 1, "application_id": 2, "webhook_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_ApplicationWebhookRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationWebhookRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -247,7 +247,7 @@ func local_request_ApplicationWebhookRegistry_Get_0(ctx context.Context, marshal } var ( - filter_ApplicationWebhookRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationWebhookRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationWebhookRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationWebhookRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -320,11 +320,7 @@ func request_ApplicationWebhookRegistry_Set_0(ctx context.Context, marshaler run var protoReq SetApplicationWebhookRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -364,11 +360,7 @@ func local_request_ApplicationWebhookRegistry_Set_0(ctx context.Context, marshal var protoReq SetApplicationWebhookRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -408,11 +400,7 @@ func request_ApplicationWebhookRegistry_Set_1(ctx context.Context, marshaler run var protoReq SetApplicationWebhookRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -442,11 +430,7 @@ func local_request_ApplicationWebhookRegistry_Set_1(ctx context.Context, marshal var protoReq SetApplicationWebhookRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -473,7 +457,7 @@ func local_request_ApplicationWebhookRegistry_Set_1(ctx context.Context, marshal } var ( - filter_ApplicationWebhookRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "webhook_id": 3, "webhookId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_ApplicationWebhookRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "webhook_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_ApplicationWebhookRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationWebhookRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/applicationserver_web_flags.pb.go b/pkg/ttnpb/applicationserver_web_flags.pb.go index f8c2877615..dc8041ad1e 100644 --- a/pkg/ttnpb/applicationserver_web_flags.pb.go +++ b/pkg/ttnpb/applicationserver_web_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_web.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_web_grpc.pb.go b/pkg/ttnpb/applicationserver_web_grpc.pb.go index b41a65bcbd..98fbc714dd 100644 --- a/pkg/ttnpb/applicationserver_web_grpc.pb.go +++ b/pkg/ttnpb/applicationserver_web_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/applicationserver_web.proto package ttnpb diff --git a/pkg/ttnpb/applicationserver_web_json.pb.go b/pkg/ttnpb/applicationserver_web_json.pb.go index b5696b1373..b4a27f53f5 100644 --- a/pkg/ttnpb/applicationserver_web_json.pb.go +++ b/pkg/ttnpb/applicationserver_web_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/applicationserver_web.proto package ttnpb diff --git a/pkg/ttnpb/client.pb.go b/pkg/ttnpb/client.pb.go index b5b59bfad3..9f2a05f68f 100644 --- a/pkg/ttnpb/client.pb.go +++ b/pkg/ttnpb/client.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/client.proto package ttnpb diff --git a/pkg/ttnpb/client_flags.pb.go b/pkg/ttnpb/client_flags.pb.go index 433b45e1a5..6ddec60059 100644 --- a/pkg/ttnpb/client_flags.pb.go +++ b/pkg/ttnpb/client_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/client.proto package ttnpb diff --git a/pkg/ttnpb/client_json.pb.go b/pkg/ttnpb/client_json.pb.go index aa3387c95e..c45ab8ddf3 100644 --- a/pkg/ttnpb/client_json.pb.go +++ b/pkg/ttnpb/client_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/client.proto package ttnpb diff --git a/pkg/ttnpb/client_services.pb.go b/pkg/ttnpb/client_services.pb.go index 71643acd05..8afee45ad9 100644 --- a/pkg/ttnpb/client_services.pb.go +++ b/pkg/ttnpb/client_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/client_services.proto package ttnpb diff --git a/pkg/ttnpb/client_services.pb.gw.go b/pkg/ttnpb/client_services.pb.gw.go index cb21a25d31..54f534346b 100644 --- a/pkg/ttnpb/client_services.pb.gw.go +++ b/pkg/ttnpb/client_services.pb.gw.go @@ -35,11 +35,7 @@ func request_ClientRegistry_Create_0(ctx context.Context, marshaler runtime.Mars var protoReq CreateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +65,7 @@ func local_request_ClientRegistry_Create_0(ctx context.Context, marshaler runtim var protoReq CreateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -103,11 +95,7 @@ func request_ClientRegistry_Create_1(ctx context.Context, marshaler runtime.Mars var protoReq CreateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -137,11 +125,7 @@ func local_request_ClientRegistry_Create_1(ctx context.Context, marshaler runtim var protoReq CreateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -168,7 +152,7 @@ func local_request_ClientRegistry_Create_1(ctx context.Context, marshaler runtim } var ( - filter_ClientRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ClientRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ClientRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ClientRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -274,7 +258,7 @@ func local_request_ClientRegistry_List_0(ctx context.Context, marshaler runtime. } var ( - filter_ClientRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2, "userId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_ClientRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_ClientRegistry_List_1(ctx context.Context, marshaler runtime.Marshaler, client ClientRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -344,7 +328,7 @@ func local_request_ClientRegistry_List_1(ctx context.Context, marshaler runtime. } var ( - filter_ClientRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2, "organizationId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_ClientRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_ClientRegistry_List_2(ctx context.Context, marshaler runtime.Marshaler, client ClientRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -417,11 +401,7 @@ func request_ClientRegistry_Update_0(ctx context.Context, marshaler runtime.Mars var protoReq UpdateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -451,11 +431,7 @@ func local_request_ClientRegistry_Update_0(ctx context.Context, marshaler runtim var protoReq UpdateClientRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -690,7 +666,7 @@ func local_request_ClientAccess_ListRights_0(ctx context.Context, marshaler runt } var ( - filter_ClientAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2, "collaborator": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ClientAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "collaborator": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ClientAccess_GetCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client ClientAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -780,7 +756,7 @@ func local_request_ClientAccess_GetCollaborator_0(ctx context.Context, marshaler } var ( - filter_ClientAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2, "collaborator": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ClientAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "collaborator": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ClientAccess_GetCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client ClientAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -873,11 +849,7 @@ func request_ClientAccess_SetCollaborator_0(ctx context.Context, marshaler runti var protoReq SetClientCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -907,11 +879,7 @@ func local_request_ClientAccess_SetCollaborator_0(ctx context.Context, marshaler var protoReq SetClientCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -938,7 +906,7 @@ func local_request_ClientAccess_SetCollaborator_0(ctx context.Context, marshaler } var ( - filter_ClientAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ClientAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ClientAccess_ListCollaborators_0(ctx context.Context, marshaler runtime.Marshaler, client ClientAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1008,7 +976,7 @@ func local_request_ClientAccess_ListCollaborators_0(ctx context.Context, marshal } var ( - filter_ClientAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2, "collaborator_ids": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ClientAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "collaborator_ids": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ClientAccess_DeleteCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client ClientAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1098,7 +1066,7 @@ func local_request_ClientAccess_DeleteCollaborator_0(ctx context.Context, marsha } var ( - filter_ClientAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2, "collaborator_ids": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_ClientAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "collaborator_ids": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_ClientAccess_DeleteCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client ClientAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/client_services_grpc.pb.go b/pkg/ttnpb/client_services_grpc.pb.go index 0277a6c7f9..3a0107b6db 100644 --- a/pkg/ttnpb/client_services_grpc.pb.go +++ b/pkg/ttnpb/client_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/client_services.proto package ttnpb diff --git a/pkg/ttnpb/cluster.pb.go b/pkg/ttnpb/cluster.pb.go index bc397138e7..d926c4e099 100644 --- a/pkg/ttnpb/cluster.pb.go +++ b/pkg/ttnpb/cluster.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/cluster.proto package ttnpb diff --git a/pkg/ttnpb/configuration_services.pb.go b/pkg/ttnpb/configuration_services.pb.go index 4cb3b3c269..5878819f45 100644 --- a/pkg/ttnpb/configuration_services.pb.go +++ b/pkg/ttnpb/configuration_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/configuration_services.proto package ttnpb diff --git a/pkg/ttnpb/configuration_services.pb.gw.go b/pkg/ttnpb/configuration_services.pb.gw.go index 4cee86eb57..8269a081e5 100644 --- a/pkg/ttnpb/configuration_services.pb.gw.go +++ b/pkg/ttnpb/configuration_services.pb.gw.go @@ -140,7 +140,7 @@ func local_request_Configuration_ListBands_0(ctx context.Context, marshaler runt } var ( - filter_Configuration_ListBands_1 = &utilities.DoubleArray{Encoding: map[string]int{"band_id": 0, "bandId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Configuration_ListBands_1 = &utilities.DoubleArray{Encoding: map[string]int{"band_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_Configuration_ListBands_1(ctx context.Context, marshaler runtime.Marshaler, client ConfigurationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/configuration_services_flags.pb.go b/pkg/ttnpb/configuration_services_flags.pb.go index e4e72481de..426ed1940f 100644 --- a/pkg/ttnpb/configuration_services_flags.pb.go +++ b/pkg/ttnpb/configuration_services_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/configuration_services.proto package ttnpb diff --git a/pkg/ttnpb/configuration_services_grpc.pb.go b/pkg/ttnpb/configuration_services_grpc.pb.go index 32eca83c85..a1e01ff623 100644 --- a/pkg/ttnpb/configuration_services_grpc.pb.go +++ b/pkg/ttnpb/configuration_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/configuration_services.proto package ttnpb diff --git a/pkg/ttnpb/configuration_services_json.pb.go b/pkg/ttnpb/configuration_services_json.pb.go index 61586aead8..8fb2b25e51 100644 --- a/pkg/ttnpb/configuration_services_json.pb.go +++ b/pkg/ttnpb/configuration_services_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/configuration_services.proto package ttnpb diff --git a/pkg/ttnpb/contact_info.pb.go b/pkg/ttnpb/contact_info.pb.go index c95036964a..01201125ee 100644 --- a/pkg/ttnpb/contact_info.pb.go +++ b/pkg/ttnpb/contact_info.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/contact_info.proto package ttnpb diff --git a/pkg/ttnpb/contact_info.pb.gw.go b/pkg/ttnpb/contact_info.pb.gw.go index e53c72fbbd..3483fcedf8 100644 --- a/pkg/ttnpb/contact_info.pb.gw.go +++ b/pkg/ttnpb/contact_info.pb.gw.go @@ -35,11 +35,7 @@ func request_ContactInfoRegistry_RequestValidation_0(ctx context.Context, marsha var protoReq EntityIdentifiers var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -52,11 +48,7 @@ func local_request_ContactInfoRegistry_RequestValidation_0(ctx context.Context, var protoReq EntityIdentifiers var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +61,7 @@ func request_ContactInfoRegistry_Validate_0(ctx context.Context, marshaler runti var protoReq ContactInfoValidation var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -86,11 +74,7 @@ func local_request_ContactInfoRegistry_Validate_0(ctx context.Context, marshaler var protoReq ContactInfoValidation var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/contact_info_flags.pb.go b/pkg/ttnpb/contact_info_flags.pb.go index 8845715fc5..374f56dde7 100644 --- a/pkg/ttnpb/contact_info_flags.pb.go +++ b/pkg/ttnpb/contact_info_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/contact_info.proto package ttnpb diff --git a/pkg/ttnpb/contact_info_grpc.pb.go b/pkg/ttnpb/contact_info_grpc.pb.go index 24027c3edf..55bd1c7bf6 100644 --- a/pkg/ttnpb/contact_info_grpc.pb.go +++ b/pkg/ttnpb/contact_info_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/contact_info.proto package ttnpb diff --git a/pkg/ttnpb/contact_info_json.pb.go b/pkg/ttnpb/contact_info_json.pb.go index 914ccb7b40..536e530a1f 100644 --- a/pkg/ttnpb/contact_info_json.pb.go +++ b/pkg/ttnpb/contact_info_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/contact_info.proto package ttnpb diff --git a/pkg/ttnpb/deviceclaimingserver.pb.go b/pkg/ttnpb/deviceclaimingserver.pb.go index 95f0e822fe..d10e0050e2 100644 --- a/pkg/ttnpb/deviceclaimingserver.pb.go +++ b/pkg/ttnpb/deviceclaimingserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/deviceclaimingserver.proto package ttnpb diff --git a/pkg/ttnpb/deviceclaimingserver.pb.gw.go b/pkg/ttnpb/deviceclaimingserver.pb.gw.go index 40f0b85b84..ef61197718 100644 --- a/pkg/ttnpb/deviceclaimingserver.pb.gw.go +++ b/pkg/ttnpb/deviceclaimingserver.pb.gw.go @@ -35,11 +35,7 @@ func request_EndDeviceClaimingServer_Claim_0(ctx context.Context, marshaler runt var protoReq ClaimEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -52,11 +48,7 @@ func local_request_EndDeviceClaimingServer_Claim_0(ctx context.Context, marshale var protoReq ClaimEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -66,7 +58,7 @@ func local_request_EndDeviceClaimingServer_Claim_0(ctx context.Context, marshale } var ( - filter_EndDeviceClaimingServer_Unclaim_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_EndDeviceClaimingServer_Unclaim_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_EndDeviceClaimingServer_Unclaim_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceClaimingServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,11 +151,7 @@ func request_EndDeviceClaimingServer_GetInfoByJoinEUI_0(ctx context.Context, mar var protoReq GetInfoByJoinEUIRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -176,11 +164,7 @@ func local_request_EndDeviceClaimingServer_GetInfoByJoinEUI_0(ctx context.Contex var protoReq GetInfoByJoinEUIRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -190,7 +174,7 @@ func local_request_EndDeviceClaimingServer_GetInfoByJoinEUI_0(ctx context.Contex } var ( - filter_EndDeviceClaimingServer_GetClaimStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_EndDeviceClaimingServer_GetClaimStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_EndDeviceClaimingServer_GetClaimStatus_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceClaimingServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,11 +267,7 @@ func request_EndDeviceClaimingServer_AuthorizeApplication_0(ctx context.Context, var protoReq AuthorizeApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -317,11 +297,7 @@ func local_request_EndDeviceClaimingServer_AuthorizeApplication_0(ctx context.Co var protoReq AuthorizeApplicationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -400,7 +376,7 @@ func local_request_EndDeviceClaimingServer_UnauthorizeApplication_0(ctx context. } var ( - filter_EndDeviceBatchClaimingServer_Unclaim_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EndDeviceBatchClaimingServer_Unclaim_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EndDeviceBatchClaimingServer_Unclaim_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceBatchClaimingServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -473,11 +449,7 @@ func request_EndDeviceBatchClaimingServer_GetInfoByJoinEUIs_0(ctx context.Contex var protoReq GetInfoByJoinEUIsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -490,11 +462,7 @@ func local_request_EndDeviceBatchClaimingServer_GetInfoByJoinEUIs_0(ctx context. var protoReq GetInfoByJoinEUIsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -507,11 +475,7 @@ func request_GatewayClaimingServer_Claim_0(ctx context.Context, marshaler runtim var protoReq ClaimGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -524,11 +488,7 @@ func local_request_GatewayClaimingServer_Claim_0(ctx context.Context, marshaler var protoReq ClaimGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -541,11 +501,7 @@ func request_GatewayClaimingServer_AuthorizeGateway_0(ctx context.Context, marsh var protoReq AuthorizeGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -575,11 +531,7 @@ func local_request_GatewayClaimingServer_AuthorizeGateway_0(ctx context.Context, var protoReq AuthorizeGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -606,7 +558,7 @@ func local_request_GatewayClaimingServer_AuthorizeGateway_0(ctx context.Context, } var ( - filter_GatewayClaimingServer_UnauthorizeGateway_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GatewayClaimingServer_UnauthorizeGateway_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GatewayClaimingServer_UnauthorizeGateway_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayClaimingServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -679,11 +631,7 @@ func request_GatewayClaimingServer_GetInfoByGatewayEUI_0(ctx context.Context, ma var protoReq GetInfoByGatewayEUIRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -696,11 +644,7 @@ func local_request_GatewayClaimingServer_GetInfoByGatewayEUI_0(ctx context.Conte var protoReq GetInfoByGatewayEUIRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/deviceclaimingserver_grpc.pb.go b/pkg/ttnpb/deviceclaimingserver_grpc.pb.go index c9668cd152..90f8f37d85 100644 --- a/pkg/ttnpb/deviceclaimingserver_grpc.pb.go +++ b/pkg/ttnpb/deviceclaimingserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/deviceclaimingserver.proto package ttnpb diff --git a/pkg/ttnpb/deviceclaimingserver_json.pb.go b/pkg/ttnpb/deviceclaimingserver_json.pb.go index 3331578d9b..d402205b28 100644 --- a/pkg/ttnpb/deviceclaimingserver_json.pb.go +++ b/pkg/ttnpb/deviceclaimingserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/deviceclaimingserver.proto package ttnpb diff --git a/pkg/ttnpb/devicerepository.pb.go b/pkg/ttnpb/devicerepository.pb.go index 52a2853f34..70111bf7cb 100644 --- a/pkg/ttnpb/devicerepository.pb.go +++ b/pkg/ttnpb/devicerepository.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/devicerepository.proto package ttnpb diff --git a/pkg/ttnpb/devicerepository.pb.gw.go b/pkg/ttnpb/devicerepository.pb.gw.go index 95464a2c17..be977da2c7 100644 --- a/pkg/ttnpb/devicerepository.pb.gw.go +++ b/pkg/ttnpb/devicerepository.pb.gw.go @@ -68,7 +68,7 @@ func local_request_DeviceRepository_ListBrands_0(ctx context.Context, marshaler } var ( - filter_DeviceRepository_ListBrands_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_DeviceRepository_ListBrands_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_DeviceRepository_ListBrands_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -138,7 +138,7 @@ func local_request_DeviceRepository_ListBrands_1(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetBrand_0 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0, "brandId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_DeviceRepository_GetBrand_0 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_DeviceRepository_GetBrand_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -208,7 +208,7 @@ func local_request_DeviceRepository_GetBrand_0(ctx context.Context, marshaler ru } var ( - filter_DeviceRepository_GetBrand_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "brand_id": 3, "brandId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_DeviceRepository_GetBrand_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "brand_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_DeviceRepository_GetBrand_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -334,7 +334,7 @@ func local_request_DeviceRepository_ListModels_0(ctx context.Context, marshaler } var ( - filter_DeviceRepository_ListModels_1 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0, "brandId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_DeviceRepository_ListModels_1 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_DeviceRepository_ListModels_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -404,7 +404,7 @@ func local_request_DeviceRepository_ListModels_1(ctx context.Context, marshaler } var ( - filter_DeviceRepository_ListModels_2 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_DeviceRepository_ListModels_2 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_DeviceRepository_ListModels_2(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -474,7 +474,7 @@ func local_request_DeviceRepository_ListModels_2(ctx context.Context, marshaler } var ( - filter_DeviceRepository_ListModels_3 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "brand_id": 3, "brandId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_DeviceRepository_ListModels_3 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "brand_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_DeviceRepository_ListModels_3(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -564,7 +564,7 @@ func local_request_DeviceRepository_ListModels_3(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetModel_0 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0, "brandId": 1, "model_id": 2, "modelId": 3}, Base: []int{1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 3, 4, 5}} + filter_DeviceRepository_GetModel_0 = &utilities.DoubleArray{Encoding: map[string]int{"brand_id": 0, "model_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} ) func request_DeviceRepository_GetModel_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -654,7 +654,7 @@ func local_request_DeviceRepository_GetModel_0(ctx context.Context, marshaler ru } var ( - filter_DeviceRepository_GetModel_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "brand_id": 3, "brandId": 4, "model_id": 5, "modelId": 6}, Base: []int{1, 1, 1, 2, 3, 4, 5, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 1, 1, 3, 4, 5, 6, 7, 8}} + filter_DeviceRepository_GetModel_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "brand_id": 2, "model_id": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 3, 4, 5}} ) func request_DeviceRepository_GetModel_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -764,7 +764,7 @@ func local_request_DeviceRepository_GetModel_1(ctx context.Context, marshaler ru } var ( - filter_DeviceRepository_GetTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "brandId": 2, "model_id": 3, "modelId": 4, "firmware_version": 5, "firmwareVersion": 6, "band_id": 7, "bandId": 8}, Base: []int{1, 1, 1, 5, 2, 6, 3, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 5, 7, 9, 4, 6, 8, 10}} + filter_DeviceRepository_GetTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "model_id": 2, "firmware_version": 3, "band_id": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} ) func request_DeviceRepository_GetTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -894,7 +894,7 @@ func local_request_DeviceRepository_GetTemplate_0(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetTemplate_1 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_profile_ids": 0, "vendor_id": 1, "vendorId": 2, "vendor_profile_id": 3, "vendorProfileId": 4}, Base: []int{1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 2, 1, 3, 5, 4, 6}} + filter_DeviceRepository_GetTemplate_1 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_profile_ids": 0, "vendor_id": 1, "vendor_profile_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} ) func request_DeviceRepository_GetTemplate_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -984,7 +984,7 @@ func local_request_DeviceRepository_GetTemplate_1(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetTemplate_2 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "version_ids": 3, "brand_id": 4, "brandId": 5, "model_id": 6, "modelId": 7, "firmware_version": 8, "firmwareVersion": 9, "band_id": 10, "bandId": 11}, Base: []int{1, 1, 1, 2, 1, 3, 7, 4, 8, 5, 9, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 5, 1, 5, 1, 5, 1, 3, 4, 6, 8, 10, 12, 7, 9, 11, 13}} + filter_DeviceRepository_GetTemplate_2 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "version_ids": 2, "brand_id": 3, "model_id": 4, "firmware_version": 5, "band_id": 6}, Base: []int{1, 1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 4, 4, 4, 3, 5, 6, 7, 8}} ) func request_DeviceRepository_GetTemplate_2(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1134,7 +1134,7 @@ func local_request_DeviceRepository_GetTemplate_2(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetTemplate_3 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "end_device_profile_ids": 3, "vendor_id": 4, "vendorId": 5, "vendor_profile_id": 6, "vendorProfileId": 7}, Base: []int{1, 1, 1, 2, 1, 3, 5, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 5, 1, 3, 4, 6, 8, 7, 9}} + filter_DeviceRepository_GetTemplate_3 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "end_device_profile_ids": 2, "vendor_id": 3, "vendor_profile_id": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 4, 3, 5, 6}} ) func request_DeviceRepository_GetTemplate_3(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1244,7 +1244,7 @@ func local_request_DeviceRepository_GetTemplate_3(ctx context.Context, marshaler } var ( - filter_DeviceRepository_GetUplinkDecoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "brandId": 2, "model_id": 3, "modelId": 4, "firmware_version": 5, "firmwareVersion": 6, "band_id": 7, "bandId": 8}, Base: []int{1, 1, 1, 5, 2, 6, 3, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 5, 7, 9, 4, 6, 8, 10}} + filter_DeviceRepository_GetUplinkDecoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "model_id": 2, "firmware_version": 3, "band_id": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} ) func request_DeviceRepository_GetUplinkDecoder_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1374,7 +1374,7 @@ func local_request_DeviceRepository_GetUplinkDecoder_0(ctx context.Context, mars } var ( - filter_DeviceRepository_GetUplinkDecoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "version_ids": 3, "brand_id": 4, "brandId": 5, "model_id": 6, "modelId": 7, "firmware_version": 8, "firmwareVersion": 9, "band_id": 10, "bandId": 11}, Base: []int{1, 1, 1, 2, 1, 3, 7, 4, 8, 5, 9, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 5, 1, 5, 1, 5, 1, 3, 4, 6, 8, 10, 12, 7, 9, 11, 13}} + filter_DeviceRepository_GetUplinkDecoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "version_ids": 2, "brand_id": 3, "model_id": 4, "firmware_version": 5, "band_id": 6}, Base: []int{1, 1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 4, 4, 4, 3, 5, 6, 7, 8}} ) func request_DeviceRepository_GetUplinkDecoder_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1524,7 +1524,7 @@ func local_request_DeviceRepository_GetUplinkDecoder_1(ctx context.Context, mars } var ( - filter_DeviceRepository_GetDownlinkDecoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "brandId": 2, "model_id": 3, "modelId": 4, "firmware_version": 5, "firmwareVersion": 6, "band_id": 7, "bandId": 8}, Base: []int{1, 1, 1, 5, 2, 6, 3, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 5, 7, 9, 4, 6, 8, 10}} + filter_DeviceRepository_GetDownlinkDecoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "model_id": 2, "firmware_version": 3, "band_id": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} ) func request_DeviceRepository_GetDownlinkDecoder_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1654,7 +1654,7 @@ func local_request_DeviceRepository_GetDownlinkDecoder_0(ctx context.Context, ma } var ( - filter_DeviceRepository_GetDownlinkDecoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "version_ids": 3, "brand_id": 4, "brandId": 5, "model_id": 6, "modelId": 7, "firmware_version": 8, "firmwareVersion": 9, "band_id": 10, "bandId": 11}, Base: []int{1, 1, 1, 2, 1, 3, 7, 4, 8, 5, 9, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 5, 1, 5, 1, 5, 1, 3, 4, 6, 8, 10, 12, 7, 9, 11, 13}} + filter_DeviceRepository_GetDownlinkDecoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "version_ids": 2, "brand_id": 3, "model_id": 4, "firmware_version": 5, "band_id": 6}, Base: []int{1, 1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 4, 4, 4, 3, 5, 6, 7, 8}} ) func request_DeviceRepository_GetDownlinkDecoder_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1804,7 +1804,7 @@ func local_request_DeviceRepository_GetDownlinkDecoder_1(ctx context.Context, ma } var ( - filter_DeviceRepository_GetDownlinkEncoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "brandId": 2, "model_id": 3, "modelId": 4, "firmware_version": 5, "firmwareVersion": 6, "band_id": 7, "bandId": 8}, Base: []int{1, 1, 1, 5, 2, 6, 3, 7, 4, 8, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 5, 7, 9, 4, 6, 8, 10}} + filter_DeviceRepository_GetDownlinkEncoder_0 = &utilities.DoubleArray{Encoding: map[string]int{"version_ids": 0, "brand_id": 1, "model_id": 2, "firmware_version": 3, "band_id": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} ) func request_DeviceRepository_GetDownlinkEncoder_0(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1934,7 +1934,7 @@ func local_request_DeviceRepository_GetDownlinkEncoder_0(ctx context.Context, ma } var ( - filter_DeviceRepository_GetDownlinkEncoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "version_ids": 3, "brand_id": 4, "brandId": 5, "model_id": 6, "modelId": 7, "firmware_version": 8, "firmwareVersion": 9, "band_id": 10, "bandId": 11}, Base: []int{1, 1, 1, 2, 1, 3, 7, 4, 8, 5, 9, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 5, 1, 5, 1, 5, 1, 3, 4, 6, 8, 10, 12, 7, 9, 11, 13}} + filter_DeviceRepository_GetDownlinkEncoder_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "version_ids": 2, "brand_id": 3, "model_id": 4, "firmware_version": 5, "band_id": 6}, Base: []int{1, 1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 4, 4, 4, 3, 5, 6, 7, 8}} ) func request_DeviceRepository_GetDownlinkEncoder_1(ctx context.Context, marshaler runtime.Marshaler, client DeviceRepositoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/devicerepository_grpc.pb.go b/pkg/ttnpb/devicerepository_grpc.pb.go index 974c892eb2..f68c781490 100644 --- a/pkg/ttnpb/devicerepository_grpc.pb.go +++ b/pkg/ttnpb/devicerepository_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/devicerepository.proto package ttnpb diff --git a/pkg/ttnpb/devicerepository_json.pb.go b/pkg/ttnpb/devicerepository_json.pb.go index 76b568bc4b..bfadaf96b3 100644 --- a/pkg/ttnpb/devicerepository_json.pb.go +++ b/pkg/ttnpb/devicerepository_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/devicerepository.proto package ttnpb diff --git a/pkg/ttnpb/email_messages.pb.go b/pkg/ttnpb/email_messages.pb.go index 6f2d841ad1..79d353b204 100644 --- a/pkg/ttnpb/email_messages.pb.go +++ b/pkg/ttnpb/email_messages.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/email_messages.proto package ttnpb diff --git a/pkg/ttnpb/email_messages_json.pb.go b/pkg/ttnpb/email_messages_json.pb.go index 79652b8c2c..f688fd5d12 100644 --- a/pkg/ttnpb/email_messages_json.pb.go +++ b/pkg/ttnpb/email_messages_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/email_messages.proto package ttnpb diff --git a/pkg/ttnpb/end_device.pb.go b/pkg/ttnpb/end_device.pb.go index a75b46dbf9..832bb2be55 100644 --- a/pkg/ttnpb/end_device.pb.go +++ b/pkg/ttnpb/end_device.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/end_device.proto package ttnpb diff --git a/pkg/ttnpb/end_device_flags.pb.go b/pkg/ttnpb/end_device_flags.pb.go index fe10419c91..6819ef0d6e 100644 --- a/pkg/ttnpb/end_device_flags.pb.go +++ b/pkg/ttnpb/end_device_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/end_device.proto package ttnpb diff --git a/pkg/ttnpb/end_device_json.pb.go b/pkg/ttnpb/end_device_json.pb.go index 10cb7f4a57..bfb308e251 100644 --- a/pkg/ttnpb/end_device_json.pb.go +++ b/pkg/ttnpb/end_device_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/end_device.proto package ttnpb diff --git a/pkg/ttnpb/end_device_services.pb.go b/pkg/ttnpb/end_device_services.pb.go index a4f8a81d41..a8f0c7d662 100644 --- a/pkg/ttnpb/end_device_services.pb.go +++ b/pkg/ttnpb/end_device_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/end_device_services.proto package ttnpb diff --git a/pkg/ttnpb/end_device_services.pb.gw.go b/pkg/ttnpb/end_device_services.pb.gw.go index 48567ddde6..4e3cb180d4 100644 --- a/pkg/ttnpb/end_device_services.pb.gw.go +++ b/pkg/ttnpb/end_device_services.pb.gw.go @@ -36,11 +36,7 @@ func request_EndDeviceRegistry_Create_0(ctx context.Context, marshaler runtime.M var protoReq CreateEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -70,11 +66,7 @@ func local_request_EndDeviceRegistry_Create_0(ctx context.Context, marshaler run var protoReq CreateEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -101,7 +93,7 @@ func local_request_EndDeviceRegistry_Create_0(ctx context.Context, marshaler run } var ( - filter_EndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_EndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_EndDeviceRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,7 +183,7 @@ func local_request_EndDeviceRegistry_Get_0(ctx context.Context, marshaler runtim } var ( - filter_EndDeviceRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EndDeviceRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EndDeviceRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -264,11 +256,7 @@ func request_EndDeviceRegistry_Update_0(ctx context.Context, marshaler runtime.M var protoReq UpdateEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -308,11 +296,7 @@ func local_request_EndDeviceRegistry_Update_0(ctx context.Context, marshaler run var protoReq UpdateEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -349,7 +333,7 @@ func local_request_EndDeviceRegistry_Update_0(ctx context.Context, marshaler run } var ( - filter_EndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_EndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_EndDeviceRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -460,11 +444,7 @@ func request_EndDeviceTemplateConverter_Convert_0(ctx context.Context, marshaler var protoReq ConvertEndDeviceTemplateRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -482,7 +462,7 @@ func request_EndDeviceTemplateConverter_Convert_0(ctx context.Context, marshaler } var ( - filter_EndDeviceBatchRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EndDeviceBatchRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EndDeviceBatchRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceBatchRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -552,7 +532,7 @@ func local_request_EndDeviceBatchRegistry_Get_0(ctx context.Context, marshaler r } var ( - filter_EndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EndDeviceBatchRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceBatchRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/end_device_services_grpc.pb.go b/pkg/ttnpb/end_device_services_grpc.pb.go index 975058fe18..18d413f645 100644 --- a/pkg/ttnpb/end_device_services_grpc.pb.go +++ b/pkg/ttnpb/end_device_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/end_device_services.proto package ttnpb diff --git a/pkg/ttnpb/enums.pb.go b/pkg/ttnpb/enums.pb.go index 8b72daaa8e..1e22ccb7e3 100644 --- a/pkg/ttnpb/enums.pb.go +++ b/pkg/ttnpb/enums.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/enums.proto package ttnpb diff --git a/pkg/ttnpb/enums_json.pb.go b/pkg/ttnpb/enums_json.pb.go index 49ae3bbd59..4ab54a5aa5 100644 --- a/pkg/ttnpb/enums_json.pb.go +++ b/pkg/ttnpb/enums_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/enums.proto package ttnpb diff --git a/pkg/ttnpb/error.pb.go b/pkg/ttnpb/error.pb.go index 065d57b628..5a5ad392b3 100644 --- a/pkg/ttnpb/error.pb.go +++ b/pkg/ttnpb/error.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/error.proto package ttnpb diff --git a/pkg/ttnpb/error_flags.pb.go b/pkg/ttnpb/error_flags.pb.go index 23307b7473..cb83091711 100644 --- a/pkg/ttnpb/error_flags.pb.go +++ b/pkg/ttnpb/error_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/error.proto package ttnpb diff --git a/pkg/ttnpb/events.pb.go b/pkg/ttnpb/events.pb.go index e0b68464c2..c6a562beb0 100644 --- a/pkg/ttnpb/events.pb.go +++ b/pkg/ttnpb/events.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/events.proto package ttnpb diff --git a/pkg/ttnpb/events.pb.gw.go b/pkg/ttnpb/events.pb.gw.go index 762985bf6b..ae0b1bf68d 100644 --- a/pkg/ttnpb/events.pb.gw.go +++ b/pkg/ttnpb/events.pb.gw.go @@ -35,11 +35,7 @@ func request_Events_Stream_0(ctx context.Context, marshaler runtime.Marshaler, c var protoReq StreamEventsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/events_grpc.pb.go b/pkg/ttnpb/events_grpc.pb.go index 3ca8a2265e..6b17cc712a 100644 --- a/pkg/ttnpb/events_grpc.pb.go +++ b/pkg/ttnpb/events_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/events.proto package ttnpb diff --git a/pkg/ttnpb/events_json.pb.go b/pkg/ttnpb/events_json.pb.go index 44c951a508..8ee0737eee 100644 --- a/pkg/ttnpb/events_json.pb.go +++ b/pkg/ttnpb/events_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/events.proto package ttnpb diff --git a/pkg/ttnpb/gateway.pb.go b/pkg/ttnpb/gateway.pb.go index c8e2fa9565..98af9c0da7 100644 --- a/pkg/ttnpb/gateway.pb.go +++ b/pkg/ttnpb/gateway.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/gateway.proto package ttnpb diff --git a/pkg/ttnpb/gateway_configuration.pb.go b/pkg/ttnpb/gateway_configuration.pb.go index f2e2504dc3..5e929dd70f 100644 --- a/pkg/ttnpb/gateway_configuration.pb.go +++ b/pkg/ttnpb/gateway_configuration.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/gateway_configuration.proto package ttnpb diff --git a/pkg/ttnpb/gateway_configuration.pb.gw.go b/pkg/ttnpb/gateway_configuration.pb.gw.go index 6363713fe1..457ad58789 100644 --- a/pkg/ttnpb/gateway_configuration.pb.gw.go +++ b/pkg/ttnpb/gateway_configuration.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_GatewayConfigurationService_GetGatewayConfiguration_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "format": 3, "filename": 4}, Base: []int{1, 1, 1, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 5, 6, 6}} + filter_GatewayConfigurationService_GetGatewayConfiguration_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "format": 2, "filename": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 3, 4, 5}} ) func request_GatewayConfigurationService_GetGatewayConfiguration_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -142,7 +142,7 @@ func local_request_GatewayConfigurationService_GetGatewayConfiguration_0(ctx con } var ( - filter_GatewayConfigurationService_GetGatewayConfiguration_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "format": 3, "type": 4, "filename": 5}, Base: []int{1, 1, 1, 2, 4, 6, 8, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 1, 3, 4, 5, 5, 6, 6, 7, 7}} + filter_GatewayConfigurationService_GetGatewayConfiguration_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "format": 2, "type": 3, "filename": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} ) func request_GatewayConfigurationService_GetGatewayConfiguration_1(ctx context.Context, marshaler runtime.Marshaler, client GatewayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/gateway_configuration_grpc.pb.go b/pkg/ttnpb/gateway_configuration_grpc.pb.go index 5526d2a606..613fd1906a 100644 --- a/pkg/ttnpb/gateway_configuration_grpc.pb.go +++ b/pkg/ttnpb/gateway_configuration_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/gateway_configuration.proto package ttnpb diff --git a/pkg/ttnpb/gateway_configuration_json.pb.go b/pkg/ttnpb/gateway_configuration_json.pb.go index da1ca9ef07..5aacded08e 100644 --- a/pkg/ttnpb/gateway_configuration_json.pb.go +++ b/pkg/ttnpb/gateway_configuration_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/gateway_configuration.proto package ttnpb diff --git a/pkg/ttnpb/gateway_flags.pb.go b/pkg/ttnpb/gateway_flags.pb.go index 535ee452ea..742a2f12bd 100644 --- a/pkg/ttnpb/gateway_flags.pb.go +++ b/pkg/ttnpb/gateway_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/gateway.proto package ttnpb diff --git a/pkg/ttnpb/gateway_json.pb.go b/pkg/ttnpb/gateway_json.pb.go index 465abe083d..f87649b9a8 100644 --- a/pkg/ttnpb/gateway_json.pb.go +++ b/pkg/ttnpb/gateway_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/gateway.proto package ttnpb diff --git a/pkg/ttnpb/gateway_services.pb.go b/pkg/ttnpb/gateway_services.pb.go index 515c777438..0da7db38af 100644 --- a/pkg/ttnpb/gateway_services.pb.go +++ b/pkg/ttnpb/gateway_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/gateway_services.proto package ttnpb diff --git a/pkg/ttnpb/gateway_services.pb.gw.go b/pkg/ttnpb/gateway_services.pb.gw.go index f41e5c40eb..205a32d4a0 100644 --- a/pkg/ttnpb/gateway_services.pb.gw.go +++ b/pkg/ttnpb/gateway_services.pb.gw.go @@ -35,11 +35,7 @@ func request_GatewayRegistry_Create_0(ctx context.Context, marshaler runtime.Mar var protoReq CreateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +65,7 @@ func local_request_GatewayRegistry_Create_0(ctx context.Context, marshaler runti var protoReq CreateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -103,11 +95,7 @@ func request_GatewayRegistry_Create_1(ctx context.Context, marshaler runtime.Mar var protoReq CreateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -137,11 +125,7 @@ func local_request_GatewayRegistry_Create_1(ctx context.Context, marshaler runti var protoReq CreateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -168,7 +152,7 @@ func local_request_GatewayRegistry_Create_1(ctx context.Context, marshaler runti } var ( - filter_GatewayRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_GatewayRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_GatewayRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -274,7 +258,7 @@ func local_request_GatewayRegistry_List_0(ctx context.Context, marshaler runtime } var ( - filter_GatewayRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2, "userId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_GatewayRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_GatewayRegistry_List_1(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -344,7 +328,7 @@ func local_request_GatewayRegistry_List_1(ctx context.Context, marshaler runtime } var ( - filter_GatewayRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2, "organizationId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_GatewayRegistry_List_2 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "organization_ids": 1, "organization_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_GatewayRegistry_List_2(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -417,11 +401,7 @@ func request_GatewayRegistry_Update_0(ctx context.Context, marshaler runtime.Mar var protoReq UpdateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -451,11 +431,7 @@ func local_request_GatewayRegistry_Update_0(ctx context.Context, marshaler runti var protoReq UpdateGatewayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -482,7 +458,7 @@ func local_request_GatewayRegistry_Update_0(ctx context.Context, marshaler runti } var ( - filter_GatewayRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GatewayRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GatewayRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -552,7 +528,7 @@ func local_request_GatewayRegistry_Delete_0(ctx context.Context, marshaler runti } var ( - filter_GatewayRegistry_Restore_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GatewayRegistry_Restore_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GatewayRegistry_Restore_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -622,7 +598,7 @@ func local_request_GatewayRegistry_Restore_0(ctx context.Context, marshaler runt } var ( - filter_GatewayRegistry_Purge_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GatewayRegistry_Purge_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GatewayRegistry_Purge_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -692,7 +668,7 @@ func local_request_GatewayRegistry_Purge_0(ctx context.Context, marshaler runtim } var ( - filter_GatewayAccess_ListRights_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GatewayAccess_ListRights_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GatewayAccess_ListRights_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -765,11 +741,7 @@ func request_GatewayAccess_CreateAPIKey_0(ctx context.Context, marshaler runtime var protoReq CreateGatewayAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -799,11 +771,7 @@ func local_request_GatewayAccess_CreateAPIKey_0(ctx context.Context, marshaler r var protoReq CreateGatewayAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -830,7 +798,7 @@ func local_request_GatewayAccess_CreateAPIKey_0(ctx context.Context, marshaler r } var ( - filter_GatewayAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_GatewayAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_GatewayAccess_ListAPIKeys_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -900,7 +868,7 @@ func local_request_GatewayAccess_ListAPIKeys_0(ctx context.Context, marshaler ru } var ( - filter_GatewayAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_GatewayAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_GatewayAccess_GetAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -993,11 +961,7 @@ func request_GatewayAccess_UpdateAPIKey_0(ctx context.Context, marshaler runtime var protoReq UpdateGatewayAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1037,11 +1001,7 @@ func local_request_GatewayAccess_UpdateAPIKey_0(ctx context.Context, marshaler r var protoReq UpdateGatewayAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1078,7 +1038,7 @@ func local_request_GatewayAccess_UpdateAPIKey_0(ctx context.Context, marshaler r } var ( - filter_GatewayAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_GatewayAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_GatewayAccess_DeleteAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1168,7 +1128,7 @@ func local_request_GatewayAccess_DeleteAPIKey_0(ctx context.Context, marshaler r } var ( - filter_GatewayAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "collaborator": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_GatewayAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "collaborator": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_GatewayAccess_GetCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1258,7 +1218,7 @@ func local_request_GatewayAccess_GetCollaborator_0(ctx context.Context, marshale } var ( - filter_GatewayAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "collaborator": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_GatewayAccess_GetCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "collaborator": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_GatewayAccess_GetCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1351,11 +1311,7 @@ func request_GatewayAccess_SetCollaborator_0(ctx context.Context, marshaler runt var protoReq SetGatewayCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1385,11 +1341,7 @@ func local_request_GatewayAccess_SetCollaborator_0(ctx context.Context, marshale var protoReq SetGatewayCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1416,7 +1368,7 @@ func local_request_GatewayAccess_SetCollaborator_0(ctx context.Context, marshale } var ( - filter_GatewayAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_GatewayAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_GatewayAccess_ListCollaborators_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1486,7 +1438,7 @@ func local_request_GatewayAccess_ListCollaborators_0(ctx context.Context, marsha } var ( - filter_GatewayAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "collaborator_ids": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_GatewayAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "collaborator_ids": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_GatewayAccess_DeleteCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1576,7 +1528,7 @@ func local_request_GatewayAccess_DeleteCollaborator_0(ctx context.Context, marsh } var ( - filter_GatewayAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2, "collaborator_ids": 3, "organization_ids": 4, "organization_id": 5, "organizationId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_GatewayAccess_DeleteCollaborator_1 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "collaborator_ids": 2, "organization_ids": 3, "organization_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_GatewayAccess_DeleteCollaborator_1(ctx context.Context, marshaler runtime.Marshaler, client GatewayAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/gateway_services_grpc.pb.go b/pkg/ttnpb/gateway_services_grpc.pb.go index 29ea2d0199..67a599e60a 100644 --- a/pkg/ttnpb/gateway_services_grpc.pb.go +++ b/pkg/ttnpb/gateway_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/gateway_services.proto package ttnpb diff --git a/pkg/ttnpb/gateway_services_json.pb.go b/pkg/ttnpb/gateway_services_json.pb.go index 4106bc54fe..382fbccf7c 100644 --- a/pkg/ttnpb/gateway_services_json.pb.go +++ b/pkg/ttnpb/gateway_services_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/gateway_services.proto package ttnpb diff --git a/pkg/ttnpb/gatewayserver.pb.go b/pkg/ttnpb/gatewayserver.pb.go index 9ea620008a..4b3a136b49 100644 --- a/pkg/ttnpb/gatewayserver.pb.go +++ b/pkg/ttnpb/gatewayserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/gatewayserver.proto package ttnpb diff --git a/pkg/ttnpb/gatewayserver.pb.gw.go b/pkg/ttnpb/gatewayserver.pb.gw.go index c9a3f4c93b..0ce0e7aea8 100644 --- a/pkg/ttnpb/gatewayserver.pb.gw.go +++ b/pkg/ttnpb/gatewayserver.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_GtwGs_GetMQTTConnectionInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GtwGs_GetMQTTConnectionInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GtwGs_GetMQTTConnectionInfo_0(ctx context.Context, marshaler runtime.Marshaler, client GtwGsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -102,7 +102,7 @@ func local_request_GtwGs_GetMQTTConnectionInfo_0(ctx context.Context, marshaler } var ( - filter_GtwGs_GetMQTTV2ConnectionInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GtwGs_GetMQTTV2ConnectionInfo_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_GtwGs_GetMQTTV2ConnectionInfo_0(ctx context.Context, marshaler runtime.Marshaler, client GtwGsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -172,7 +172,7 @@ func local_request_GtwGs_GetMQTTV2ConnectionInfo_0(ctx context.Context, marshale } var ( - filter_Gs_GetGatewayConnectionStats_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0, "gatewayId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Gs_GetGatewayConnectionStats_0 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_Gs_GetGatewayConnectionStats_0(ctx context.Context, marshaler runtime.Marshaler, client GsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -245,11 +245,7 @@ func request_Gs_BatchGetGatewayConnectionStats_0(ctx context.Context, marshaler var protoReq BatchGetGatewayConnectionStatsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -262,11 +258,7 @@ func local_request_Gs_BatchGetGatewayConnectionStats_0(ctx context.Context, mars var protoReq BatchGetGatewayConnectionStatsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/gatewayserver_grpc.pb.go b/pkg/ttnpb/gatewayserver_grpc.pb.go index acd331bec1..0eae9e153d 100644 --- a/pkg/ttnpb/gatewayserver_grpc.pb.go +++ b/pkg/ttnpb/gatewayserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/gatewayserver.proto package ttnpb diff --git a/pkg/ttnpb/gatewayserver_json.pb.go b/pkg/ttnpb/gatewayserver_json.pb.go index 53b5a7b3dc..bf2cb9d690 100644 --- a/pkg/ttnpb/gatewayserver_json.pb.go +++ b/pkg/ttnpb/gatewayserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/gatewayserver.proto package ttnpb diff --git a/pkg/ttnpb/identifiers.pb.go b/pkg/ttnpb/identifiers.pb.go index 7d605e5a1e..fef2ec68b5 100644 --- a/pkg/ttnpb/identifiers.pb.go +++ b/pkg/ttnpb/identifiers.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/identifiers.proto package ttnpb diff --git a/pkg/ttnpb/identifiers_flags.pb.go b/pkg/ttnpb/identifiers_flags.pb.go index f2e69fd0aa..5f765f6184 100644 --- a/pkg/ttnpb/identifiers_flags.pb.go +++ b/pkg/ttnpb/identifiers_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/identifiers.proto package ttnpb diff --git a/pkg/ttnpb/identifiers_json.pb.go b/pkg/ttnpb/identifiers_json.pb.go index 424f6f79ca..865fd4c40d 100644 --- a/pkg/ttnpb/identifiers_json.pb.go +++ b/pkg/ttnpb/identifiers_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/identifiers.proto package ttnpb diff --git a/pkg/ttnpb/identityserver.pb.go b/pkg/ttnpb/identityserver.pb.go index 226852743e..f3c583437a 100644 --- a/pkg/ttnpb/identityserver.pb.go +++ b/pkg/ttnpb/identityserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/identityserver.proto package ttnpb diff --git a/pkg/ttnpb/identityserver_grpc.pb.go b/pkg/ttnpb/identityserver_grpc.pb.go index b59c426460..c27205394e 100644 --- a/pkg/ttnpb/identityserver_grpc.pb.go +++ b/pkg/ttnpb/identityserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/identityserver.proto package ttnpb diff --git a/pkg/ttnpb/identityserver_json.pb.go b/pkg/ttnpb/identityserver_json.pb.go index 864f412ced..8878c6bfa1 100644 --- a/pkg/ttnpb/identityserver_json.pb.go +++ b/pkg/ttnpb/identityserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/identityserver.proto package ttnpb diff --git a/pkg/ttnpb/join.pb.go b/pkg/ttnpb/join.pb.go index 8be9074ac0..f751541ca7 100644 --- a/pkg/ttnpb/join.pb.go +++ b/pkg/ttnpb/join.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/join.proto package ttnpb diff --git a/pkg/ttnpb/join_json.pb.go b/pkg/ttnpb/join_json.pb.go index 2fee0c1efb..2ea4db3888 100644 --- a/pkg/ttnpb/join_json.pb.go +++ b/pkg/ttnpb/join_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/join.proto package ttnpb diff --git a/pkg/ttnpb/joinserver.pb.go b/pkg/ttnpb/joinserver.pb.go index 8500efb2e8..eb83649733 100644 --- a/pkg/ttnpb/joinserver.pb.go +++ b/pkg/ttnpb/joinserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/joinserver.proto package ttnpb diff --git a/pkg/ttnpb/joinserver.pb.gw.go b/pkg/ttnpb/joinserver.pb.gw.go index 3ddcada68d..a0d979aa19 100644 --- a/pkg/ttnpb/joinserver.pb.gw.go +++ b/pkg/ttnpb/joinserver.pb.gw.go @@ -33,7 +33,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_JsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_JsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_JsEndDeviceRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client JsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -126,11 +126,7 @@ func request_JsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -170,11 +166,7 @@ func local_request_JsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -214,11 +206,7 @@ func request_JsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -248,11 +236,7 @@ func local_request_JsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -282,11 +266,7 @@ func request_JsEndDeviceRegistry_Provision_0(ctx context.Context, marshaler runt var protoReq ProvisionEndDevicesRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -321,7 +301,7 @@ func request_JsEndDeviceRegistry_Provision_0(ctx context.Context, marshaler runt } var ( - filter_JsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_JsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_JsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client JsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -411,7 +391,7 @@ func local_request_JsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler r } var ( - filter_JsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_JsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_JsEndDeviceBatchRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client JsEndDeviceBatchRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -481,7 +461,7 @@ func local_request_JsEndDeviceBatchRegistry_Delete_0(ctx context.Context, marsha } var ( - filter_ApplicationActivationSettingRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationActivationSettingRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationActivationSettingRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationActivationSettingRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -554,11 +534,7 @@ func request_ApplicationActivationSettingRegistry_Set_0(ctx context.Context, mar var protoReq SetApplicationActivationSettingsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -588,11 +564,7 @@ func local_request_ApplicationActivationSettingRegistry_Set_0(ctx context.Contex var protoReq SetApplicationActivationSettingsRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -619,7 +591,7 @@ func local_request_ApplicationActivationSettingRegistry_Set_0(ctx context.Contex } var ( - filter_ApplicationActivationSettingRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_ApplicationActivationSettingRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_ApplicationActivationSettingRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationActivationSettingRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/joinserver_flags.pb.go b/pkg/ttnpb/joinserver_flags.pb.go index 4ed56ae92d..e6397d2d14 100644 --- a/pkg/ttnpb/joinserver_flags.pb.go +++ b/pkg/ttnpb/joinserver_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/joinserver.proto package ttnpb diff --git a/pkg/ttnpb/joinserver_grpc.pb.go b/pkg/ttnpb/joinserver_grpc.pb.go index 9c17aded7a..c50d944c14 100644 --- a/pkg/ttnpb/joinserver_grpc.pb.go +++ b/pkg/ttnpb/joinserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/joinserver.proto package ttnpb diff --git a/pkg/ttnpb/joinserver_json.pb.go b/pkg/ttnpb/joinserver_json.pb.go index a9384023be..08663f9bb1 100644 --- a/pkg/ttnpb/joinserver_json.pb.go +++ b/pkg/ttnpb/joinserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/joinserver.proto package ttnpb diff --git a/pkg/ttnpb/keys.pb.go b/pkg/ttnpb/keys.pb.go index f79414d1e1..655480aeb3 100644 --- a/pkg/ttnpb/keys.pb.go +++ b/pkg/ttnpb/keys.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/keys.proto package ttnpb diff --git a/pkg/ttnpb/keys_flags.pb.go b/pkg/ttnpb/keys_flags.pb.go index 995be91537..72371b9d26 100644 --- a/pkg/ttnpb/keys_flags.pb.go +++ b/pkg/ttnpb/keys_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/keys.proto package ttnpb diff --git a/pkg/ttnpb/keys_json.pb.go b/pkg/ttnpb/keys_json.pb.go index 55900af99f..30a6e5c880 100644 --- a/pkg/ttnpb/keys_json.pb.go +++ b/pkg/ttnpb/keys_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/keys.proto package ttnpb diff --git a/pkg/ttnpb/lorawan.pb.go b/pkg/ttnpb/lorawan.pb.go index 04fc47efe9..13cccca420 100644 --- a/pkg/ttnpb/lorawan.pb.go +++ b/pkg/ttnpb/lorawan.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/lorawan.proto package ttnpb diff --git a/pkg/ttnpb/lorawan_flags.pb.go b/pkg/ttnpb/lorawan_flags.pb.go index ab460b1687..ec1f775ca1 100644 --- a/pkg/ttnpb/lorawan_flags.pb.go +++ b/pkg/ttnpb/lorawan_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/lorawan.proto package ttnpb diff --git a/pkg/ttnpb/lorawan_json.pb.go b/pkg/ttnpb/lorawan_json.pb.go index 0423befb41..b28e24b604 100644 --- a/pkg/ttnpb/lorawan_json.pb.go +++ b/pkg/ttnpb/lorawan_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/lorawan.proto package ttnpb diff --git a/pkg/ttnpb/messages.pb.go b/pkg/ttnpb/messages.pb.go index f33f319c3b..50b9fc4ad6 100644 --- a/pkg/ttnpb/messages.pb.go +++ b/pkg/ttnpb/messages.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/messages.proto package ttnpb diff --git a/pkg/ttnpb/messages_flags.pb.go b/pkg/ttnpb/messages_flags.pb.go index 38ea4ccdd8..9387353430 100644 --- a/pkg/ttnpb/messages_flags.pb.go +++ b/pkg/ttnpb/messages_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/messages.proto package ttnpb diff --git a/pkg/ttnpb/messages_json.pb.go b/pkg/ttnpb/messages_json.pb.go index eb47c2c031..edfa400db0 100644 --- a/pkg/ttnpb/messages_json.pb.go +++ b/pkg/ttnpb/messages_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/messages.proto package ttnpb diff --git a/pkg/ttnpb/metadata.pb.go b/pkg/ttnpb/metadata.pb.go index a3ec06d512..7730d6bee6 100644 --- a/pkg/ttnpb/metadata.pb.go +++ b/pkg/ttnpb/metadata.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/metadata.proto package ttnpb diff --git a/pkg/ttnpb/metadata_flags.pb.go b/pkg/ttnpb/metadata_flags.pb.go index 3052193566..511e92af1a 100644 --- a/pkg/ttnpb/metadata_flags.pb.go +++ b/pkg/ttnpb/metadata_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/metadata.proto package ttnpb diff --git a/pkg/ttnpb/metadata_json.pb.go b/pkg/ttnpb/metadata_json.pb.go index 78fb30da13..60f3b0afe8 100644 --- a/pkg/ttnpb/metadata_json.pb.go +++ b/pkg/ttnpb/metadata_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/metadata.proto package ttnpb diff --git a/pkg/ttnpb/mqtt.pb.go b/pkg/ttnpb/mqtt.pb.go index 82ae1fee44..71f4a0b419 100644 --- a/pkg/ttnpb/mqtt.pb.go +++ b/pkg/ttnpb/mqtt.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/mqtt.proto package ttnpb diff --git a/pkg/ttnpb/networkserver.pb.go b/pkg/ttnpb/networkserver.pb.go index 5b8e21ed30..754951a797 100644 --- a/pkg/ttnpb/networkserver.pb.go +++ b/pkg/ttnpb/networkserver.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/networkserver.proto package ttnpb diff --git a/pkg/ttnpb/networkserver.pb.gw.go b/pkg/ttnpb/networkserver.pb.gw.go index f279488214..edcfcf1bcf 100644 --- a/pkg/ttnpb/networkserver.pb.gw.go +++ b/pkg/ttnpb/networkserver.pb.gw.go @@ -165,7 +165,7 @@ func local_request_Ns_GetDeviceAddressPrefixes_0(ctx context.Context, marshaler } var ( - filter_NsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_NsEndDeviceRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_NsEndDeviceRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client NsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -258,11 +258,7 @@ func request_NsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -302,11 +298,7 @@ func local_request_NsEndDeviceRegistry_Set_0(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -346,11 +338,7 @@ func request_NsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runtime.Ma var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -380,11 +368,7 @@ func local_request_NsEndDeviceRegistry_Set_1(ctx context.Context, marshaler runt var protoReq SetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -414,11 +398,7 @@ func request_NsEndDeviceRegistry_ResetFactoryDefaults_0(ctx context.Context, mar var protoReq ResetAndGetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -458,11 +438,7 @@ func local_request_NsEndDeviceRegistry_ResetFactoryDefaults_0(ctx context.Contex var protoReq ResetAndGetEndDeviceRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -499,7 +475,7 @@ func local_request_NsEndDeviceRegistry_ResetFactoryDefaults_0(ctx context.Contex } var ( - filter_NsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2, "device_id": 3, "deviceId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_NsEndDeviceRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "device_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_NsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client NsEndDeviceRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -589,7 +565,7 @@ func local_request_NsEndDeviceRegistry_Delete_0(ctx context.Context, marshaler r } var ( - filter_NsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_NsEndDeviceBatchRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_NsEndDeviceBatchRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client NsEndDeviceBatchRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/networkserver_flags.pb.go b/pkg/ttnpb/networkserver_flags.pb.go index 561d7457fe..6fa3defeaa 100644 --- a/pkg/ttnpb/networkserver_flags.pb.go +++ b/pkg/ttnpb/networkserver_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/networkserver.proto package ttnpb diff --git a/pkg/ttnpb/networkserver_grpc.pb.go b/pkg/ttnpb/networkserver_grpc.pb.go index 1b36ec88a5..da666da9a1 100644 --- a/pkg/ttnpb/networkserver_grpc.pb.go +++ b/pkg/ttnpb/networkserver_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/networkserver.proto package ttnpb diff --git a/pkg/ttnpb/networkserver_json.pb.go b/pkg/ttnpb/networkserver_json.pb.go index 02fcdc25d4..b9d759afde 100644 --- a/pkg/ttnpb/networkserver_json.pb.go +++ b/pkg/ttnpb/networkserver_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/networkserver.proto package ttnpb diff --git a/pkg/ttnpb/networkserver_relay.pb.go b/pkg/ttnpb/networkserver_relay.pb.go index 263b8c8a7f..3ed53d7afc 100644 --- a/pkg/ttnpb/networkserver_relay.pb.go +++ b/pkg/ttnpb/networkserver_relay.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/networkserver_relay.proto package ttnpb diff --git a/pkg/ttnpb/networkserver_relay.pb.gw.go b/pkg/ttnpb/networkserver_relay.pb.gw.go index bb34ca823d..74de8db703 100644 --- a/pkg/ttnpb/networkserver_relay.pb.gw.go +++ b/pkg/ttnpb/networkserver_relay.pb.gw.go @@ -35,11 +35,7 @@ func request_NsRelayConfigurationService_CreateRelay_0(ctx context.Context, mars var protoReq CreateRelayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +65,7 @@ func local_request_NsRelayConfigurationService_CreateRelay_0(ctx context.Context var protoReq CreateRelayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -100,7 +92,7 @@ func local_request_NsRelayConfigurationService_CreateRelay_0(ctx context.Context } var ( - filter_NsRelayConfigurationService_GetRelay_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_NsRelayConfigurationService_GetRelay_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_NsRelayConfigurationService_GetRelay_0(ctx context.Context, marshaler runtime.Marshaler, client NsRelayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -193,11 +185,7 @@ func request_NsRelayConfigurationService_UpdateRelay_0(ctx context.Context, mars var protoReq UpdateRelayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -237,11 +225,7 @@ func local_request_NsRelayConfigurationService_UpdateRelay_0(ctx context.Context var protoReq UpdateRelayRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -278,7 +262,7 @@ func local_request_NsRelayConfigurationService_UpdateRelay_0(ctx context.Context } var ( - filter_NsRelayConfigurationService_DeleteRelay_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_NsRelayConfigurationService_DeleteRelay_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_NsRelayConfigurationService_DeleteRelay_0(ctx context.Context, marshaler runtime.Marshaler, client NsRelayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -371,11 +355,7 @@ func request_NsRelayConfigurationService_CreateRelayUplinkForwardingRule_0(ctx c var protoReq CreateRelayUplinkForwardingRuleRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -415,11 +395,7 @@ func local_request_NsRelayConfigurationService_CreateRelayUplinkForwardingRule_0 var protoReq CreateRelayUplinkForwardingRuleRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -456,7 +432,7 @@ func local_request_NsRelayConfigurationService_CreateRelayUplinkForwardingRule_0 } var ( - filter_NsRelayConfigurationService_GetRelayUplinkForwardingRule_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5, "index": 6}, Base: []int{1, 1, 1, 1, 3, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 1, 4, 6, 5, 7, 8, 8}} + filter_NsRelayConfigurationService_GetRelayUplinkForwardingRule_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3, "index": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 3, 2, 1, 4, 5, 6}} ) func request_NsRelayConfigurationService_GetRelayUplinkForwardingRule_0(ctx context.Context, marshaler runtime.Marshaler, client NsRelayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -566,7 +542,7 @@ func local_request_NsRelayConfigurationService_GetRelayUplinkForwardingRule_0(ct } var ( - filter_NsRelayConfigurationService_ListRelayUplinkForwardingRules_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5}, Base: []int{1, 1, 1, 1, 3, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 4, 6, 5, 7}} + filter_NsRelayConfigurationService_ListRelayUplinkForwardingRules_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 2, 4, 5}} ) func request_NsRelayConfigurationService_ListRelayUplinkForwardingRules_0(ctx context.Context, marshaler runtime.Marshaler, client NsRelayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -659,11 +635,7 @@ func request_NsRelayConfigurationService_UpdateRelayUplinkForwardingRule_0(ctx c var protoReq UpdateRelayUplinkForwardingRuleRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -713,11 +685,7 @@ func local_request_NsRelayConfigurationService_UpdateRelayUplinkForwardingRule_0 var protoReq UpdateRelayUplinkForwardingRuleRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -764,7 +732,7 @@ func local_request_NsRelayConfigurationService_UpdateRelayUplinkForwardingRule_0 } var ( - filter_NsRelayConfigurationService_DeleteRelayUplinkForwardingRule_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "applicationId": 3, "device_id": 4, "deviceId": 5, "index": 6}, Base: []int{1, 1, 1, 1, 3, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 2, 1, 1, 4, 6, 5, 7, 8, 8}} + filter_NsRelayConfigurationService_DeleteRelayUplinkForwardingRule_0 = &utilities.DoubleArray{Encoding: map[string]int{"end_device_ids": 0, "application_ids": 1, "application_id": 2, "device_id": 3, "index": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 3, 2, 1, 4, 5, 6}} ) func request_NsRelayConfigurationService_DeleteRelayUplinkForwardingRule_0(ctx context.Context, marshaler runtime.Marshaler, client NsRelayConfigurationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/networkserver_relay_grpc.pb.go b/pkg/ttnpb/networkserver_relay_grpc.pb.go index 0a39f2c16e..91c2bd766d 100644 --- a/pkg/ttnpb/networkserver_relay_grpc.pb.go +++ b/pkg/ttnpb/networkserver_relay_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/networkserver_relay.proto package ttnpb diff --git a/pkg/ttnpb/networkserver_relay_json.pb.go b/pkg/ttnpb/networkserver_relay_json.pb.go index 37cc80ca03..38d619737c 100644 --- a/pkg/ttnpb/networkserver_relay_json.pb.go +++ b/pkg/ttnpb/networkserver_relay_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/networkserver_relay.proto package ttnpb diff --git a/pkg/ttnpb/notification_service.pb.go b/pkg/ttnpb/notification_service.pb.go index 9e542977b8..7f3ae444c7 100644 --- a/pkg/ttnpb/notification_service.pb.go +++ b/pkg/ttnpb/notification_service.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/notification_service.proto package ttnpb diff --git a/pkg/ttnpb/notification_service.pb.gw.go b/pkg/ttnpb/notification_service.pb.gw.go index d91b73b441..f56abd68a3 100644 --- a/pkg/ttnpb/notification_service.pb.gw.go +++ b/pkg/ttnpb/notification_service.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_NotificationService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"receiver_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_NotificationService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"receiver_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_NotificationService_List_0(ctx context.Context, marshaler runtime.Marshaler, client NotificationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -105,11 +105,7 @@ func request_NotificationService_UpdateStatus_0(ctx context.Context, marshaler r var protoReq UpdateNotificationStatusRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -139,11 +135,7 @@ func local_request_NotificationService_UpdateStatus_0(ctx context.Context, marsh var protoReq UpdateNotificationStatusRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/notification_service_flags.pb.go b/pkg/ttnpb/notification_service_flags.pb.go index 6f26b8ea25..e5c3f8d5b2 100644 --- a/pkg/ttnpb/notification_service_flags.pb.go +++ b/pkg/ttnpb/notification_service_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/notification_service.proto package ttnpb diff --git a/pkg/ttnpb/notification_service_grpc.pb.go b/pkg/ttnpb/notification_service_grpc.pb.go index c893fce8fa..a41fdcac55 100644 --- a/pkg/ttnpb/notification_service_grpc.pb.go +++ b/pkg/ttnpb/notification_service_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/notification_service.proto package ttnpb diff --git a/pkg/ttnpb/notification_service_json.pb.go b/pkg/ttnpb/notification_service_json.pb.go index f645a0c688..561dc7b7c6 100644 --- a/pkg/ttnpb/notification_service_json.pb.go +++ b/pkg/ttnpb/notification_service_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/notification_service.proto package ttnpb diff --git a/pkg/ttnpb/oauth.pb.go b/pkg/ttnpb/oauth.pb.go index aaf11ca8fc..4c9be29c9a 100644 --- a/pkg/ttnpb/oauth.pb.go +++ b/pkg/ttnpb/oauth.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/oauth.proto package ttnpb diff --git a/pkg/ttnpb/oauth_json.pb.go b/pkg/ttnpb/oauth_json.pb.go index cf5703e5ab..e6c43d614c 100644 --- a/pkg/ttnpb/oauth_json.pb.go +++ b/pkg/ttnpb/oauth_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/oauth.proto package ttnpb diff --git a/pkg/ttnpb/oauth_services.pb.go b/pkg/ttnpb/oauth_services.pb.go index 46e9d68e2f..45bb144bce 100644 --- a/pkg/ttnpb/oauth_services.pb.go +++ b/pkg/ttnpb/oauth_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/oauth_services.proto package ttnpb diff --git a/pkg/ttnpb/oauth_services.pb.gw.go b/pkg/ttnpb/oauth_services.pb.gw.go index e0bdc2f679..841f5f6637 100644 --- a/pkg/ttnpb/oauth_services.pb.gw.go +++ b/pkg/ttnpb/oauth_services.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_OAuthAuthorizationRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_OAuthAuthorizationRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_OAuthAuthorizationRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client OAuthAuthorizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -102,7 +102,7 @@ func local_request_OAuthAuthorizationRegistry_List_0(ctx context.Context, marsha } var ( - filter_OAuthAuthorizationRegistry_ListTokens_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "client_ids": 3, "client_id": 4, "clientId": 5}, Base: []int{1, 1, 1, 2, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 3, 4, 6, 7}} + filter_OAuthAuthorizationRegistry_ListTokens_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "client_ids": 2, "client_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 3, 5}} ) func request_OAuthAuthorizationRegistry_ListTokens_0(ctx context.Context, marshaler runtime.Marshaler, client OAuthAuthorizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -192,7 +192,7 @@ func local_request_OAuthAuthorizationRegistry_ListTokens_0(ctx context.Context, } var ( - filter_OAuthAuthorizationRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "client_ids": 3, "client_id": 4, "clientId": 5}, Base: []int{1, 1, 1, 2, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 3, 4, 6, 7}} + filter_OAuthAuthorizationRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "client_ids": 2, "client_id": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 3, 5}} ) func request_OAuthAuthorizationRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client OAuthAuthorizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -282,7 +282,7 @@ func local_request_OAuthAuthorizationRegistry_Delete_0(ctx context.Context, mars } var ( - filter_OAuthAuthorizationRegistry_DeleteToken_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "client_ids": 3, "client_id": 4, "clientId": 5, "id": 6}, Base: []int{1, 1, 1, 2, 1, 3, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 1, 1, 3, 4, 6, 7, 8, 8}} + filter_OAuthAuthorizationRegistry_DeleteToken_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "client_ids": 2, "client_id": 3, "id": 4}, Base: []int{1, 1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 1, 4, 1, 3, 5, 6}} ) func request_OAuthAuthorizationRegistry_DeleteToken_0(ctx context.Context, marshaler runtime.Marshaler, client OAuthAuthorizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/oauth_services_grpc.pb.go b/pkg/ttnpb/oauth_services_grpc.pb.go index be8eda8d35..8d4687ff76 100644 --- a/pkg/ttnpb/oauth_services_grpc.pb.go +++ b/pkg/ttnpb/oauth_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/oauth_services.proto package ttnpb diff --git a/pkg/ttnpb/organization.pb.go b/pkg/ttnpb/organization.pb.go index 8a7d548f7f..eee3330b80 100644 --- a/pkg/ttnpb/organization.pb.go +++ b/pkg/ttnpb/organization.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/organization.proto package ttnpb diff --git a/pkg/ttnpb/organization_flags.pb.go b/pkg/ttnpb/organization_flags.pb.go index 844bb7863a..38f0e49547 100644 --- a/pkg/ttnpb/organization_flags.pb.go +++ b/pkg/ttnpb/organization_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/organization.proto package ttnpb diff --git a/pkg/ttnpb/organization_json.pb.go b/pkg/ttnpb/organization_json.pb.go index 39b510c403..1150f90fe7 100644 --- a/pkg/ttnpb/organization_json.pb.go +++ b/pkg/ttnpb/organization_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/organization.proto package ttnpb diff --git a/pkg/ttnpb/organization_services.pb.go b/pkg/ttnpb/organization_services.pb.go index 0640867bb6..527359664f 100644 --- a/pkg/ttnpb/organization_services.pb.go +++ b/pkg/ttnpb/organization_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/organization_services.proto package ttnpb diff --git a/pkg/ttnpb/organization_services.pb.gw.go b/pkg/ttnpb/organization_services.pb.gw.go index 2e0fbc3733..1140ecdb0d 100644 --- a/pkg/ttnpb/organization_services.pb.gw.go +++ b/pkg/ttnpb/organization_services.pb.gw.go @@ -35,11 +35,7 @@ func request_OrganizationRegistry_Create_0(ctx context.Context, marshaler runtim var protoReq CreateOrganizationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -69,11 +65,7 @@ func local_request_OrganizationRegistry_Create_0(ctx context.Context, marshaler var protoReq CreateOrganizationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -100,7 +92,7 @@ func local_request_OrganizationRegistry_Create_0(ctx context.Context, marshaler } var ( - filter_OrganizationRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_OrganizationRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_OrganizationRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -206,7 +198,7 @@ func local_request_OrganizationRegistry_List_0(ctx context.Context, marshaler ru } var ( - filter_OrganizationRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2, "userId": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 3, 1, 4, 5}} + filter_OrganizationRegistry_List_1 = &utilities.DoubleArray{Encoding: map[string]int{"collaborator": 0, "user_ids": 1, "user_id": 2}, Base: []int{1, 1, 1, 1, 0}, Check: []int{0, 1, 2, 3, 4}} ) func request_OrganizationRegistry_List_1(ctx context.Context, marshaler runtime.Marshaler, client OrganizationRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -279,11 +271,7 @@ func request_OrganizationRegistry_Update_0(ctx context.Context, marshaler runtim var protoReq UpdateOrganizationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -313,11 +301,7 @@ func local_request_OrganizationRegistry_Update_0(ctx context.Context, marshaler var protoReq UpdateOrganizationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -555,11 +539,7 @@ func request_OrganizationAccess_CreateAPIKey_0(ctx context.Context, marshaler ru var protoReq CreateOrganizationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -589,11 +569,7 @@ func local_request_OrganizationAccess_CreateAPIKey_0(ctx context.Context, marsha var protoReq CreateOrganizationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -620,7 +596,7 @@ func local_request_OrganizationAccess_CreateAPIKey_0(ctx context.Context, marsha } var ( - filter_OrganizationAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_OrganizationAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_OrganizationAccess_ListAPIKeys_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -690,7 +666,7 @@ func local_request_OrganizationAccess_ListAPIKeys_0(ctx context.Context, marshal } var ( - filter_OrganizationAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_OrganizationAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_OrganizationAccess_GetAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -783,11 +759,7 @@ func request_OrganizationAccess_UpdateAPIKey_0(ctx context.Context, marshaler ru var protoReq UpdateOrganizationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -827,11 +799,7 @@ func local_request_OrganizationAccess_UpdateAPIKey_0(ctx context.Context, marsha var protoReq UpdateOrganizationAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -868,7 +836,7 @@ func local_request_OrganizationAccess_UpdateAPIKey_0(ctx context.Context, marsha } var ( - filter_OrganizationAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_OrganizationAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_OrganizationAccess_DeleteAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -958,7 +926,7 @@ func local_request_OrganizationAccess_DeleteAPIKey_0(ctx context.Context, marsha } var ( - filter_OrganizationAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2, "collaborator": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_OrganizationAccess_GetCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "collaborator": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_OrganizationAccess_GetCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1051,11 +1019,7 @@ func request_OrganizationAccess_SetCollaborator_0(ctx context.Context, marshaler var protoReq SetOrganizationCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1085,11 +1049,7 @@ func local_request_OrganizationAccess_SetCollaborator_0(ctx context.Context, mar var protoReq SetOrganizationCollaboratorRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1116,7 +1076,7 @@ func local_request_OrganizationAccess_SetCollaborator_0(ctx context.Context, mar } var ( - filter_OrganizationAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_OrganizationAccess_ListCollaborators_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_OrganizationAccess_ListCollaborators_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1186,7 +1146,7 @@ func local_request_OrganizationAccess_ListCollaborators_0(ctx context.Context, m } var ( - filter_OrganizationAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2, "collaborator_ids": 3, "user_ids": 4, "user_id": 5, "userId": 6}, Base: []int{1, 1, 1, 2, 1, 1, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 5, 6, 1, 3, 4, 7, 8}} + filter_OrganizationAccess_DeleteCollaborator_0 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "collaborator_ids": 2, "user_ids": 3, "user_id": 4}, Base: []int{1, 1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 5, 3, 6}} ) func request_OrganizationAccess_DeleteCollaborator_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/organization_services_grpc.pb.go b/pkg/ttnpb/organization_services_grpc.pb.go index 362065e0f4..9e92d6cbad 100644 --- a/pkg/ttnpb/organization_services_grpc.pb.go +++ b/pkg/ttnpb/organization_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/organization_services.proto package ttnpb diff --git a/pkg/ttnpb/packetbrokeragent.pb.go b/pkg/ttnpb/packetbrokeragent.pb.go index a2df0a6788..3b979b71cb 100644 --- a/pkg/ttnpb/packetbrokeragent.pb.go +++ b/pkg/ttnpb/packetbrokeragent.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/packetbrokeragent.proto package ttnpb diff --git a/pkg/ttnpb/packetbrokeragent.pb.gw.go b/pkg/ttnpb/packetbrokeragent.pb.gw.go index 3e5c9757ac..7e821811a8 100644 --- a/pkg/ttnpb/packetbrokeragent.pb.gw.go +++ b/pkg/ttnpb/packetbrokeragent.pb.gw.go @@ -54,11 +54,7 @@ func request_Pba_Register_0(ctx context.Context, marshaler runtime.Marshaler, cl var protoReq PacketBrokerRegisterRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -71,11 +67,7 @@ func local_request_Pba_Register_0(ctx context.Context, marshaler runtime.Marshal var protoReq PacketBrokerRegisterRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -88,11 +80,7 @@ func request_Pba_Register_1(ctx context.Context, marshaler runtime.Marshaler, cl var protoReq PacketBrokerRegisterRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -105,11 +93,7 @@ func local_request_Pba_Register_1(ctx context.Context, marshaler runtime.Marshal var protoReq PacketBrokerRegisterRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -173,7 +157,7 @@ func local_request_Pba_ListHomeNetworkRoutingPolicies_0(ctx context.Context, mar } var ( - filter_Pba_GetHomeNetworkRoutingPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{"net_id": 0, "netId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Pba_GetHomeNetworkRoutingPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{"net_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_Pba_GetHomeNetworkRoutingPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PbaClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -318,11 +302,7 @@ func request_Pba_SetHomeNetworkRoutingPolicy_0(ctx context.Context, marshaler ru var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -352,11 +332,7 @@ func local_request_Pba_SetHomeNetworkRoutingPolicy_0(ctx context.Context, marsha var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -386,11 +362,7 @@ func request_Pba_SetHomeNetworkRoutingPolicy_1(ctx context.Context, marshaler ru var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -420,11 +392,7 @@ func local_request_Pba_SetHomeNetworkRoutingPolicy_1(ctx context.Context, marsha var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -454,11 +422,7 @@ func request_Pba_SetHomeNetworkRoutingPolicy_2(ctx context.Context, marshaler ru var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -498,11 +462,7 @@ func local_request_Pba_SetHomeNetworkRoutingPolicy_2(ctx context.Context, marsha var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -542,11 +502,7 @@ func request_Pba_SetHomeNetworkRoutingPolicy_3(ctx context.Context, marshaler ru var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -586,11 +542,7 @@ func local_request_Pba_SetHomeNetworkRoutingPolicy_3(ctx context.Context, marsha var protoReq SetPacketBrokerRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -627,7 +579,7 @@ func local_request_Pba_SetHomeNetworkRoutingPolicy_3(ctx context.Context, marsha } var ( - filter_Pba_DeleteHomeNetworkRoutingPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{"net_id": 0, "netId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_Pba_DeleteHomeNetworkRoutingPolicy_0 = &utilities.DoubleArray{Encoding: map[string]int{"net_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_Pba_DeleteHomeNetworkRoutingPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client PbaClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -790,11 +742,7 @@ func request_Pba_SetHomeNetworkDefaultRoutingPolicy_0(ctx context.Context, marsh var protoReq SetPacketBrokerDefaultRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -807,11 +755,7 @@ func local_request_Pba_SetHomeNetworkDefaultRoutingPolicy_0(ctx context.Context, var protoReq SetPacketBrokerDefaultRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -824,11 +768,7 @@ func request_Pba_SetHomeNetworkDefaultRoutingPolicy_1(ctx context.Context, marsh var protoReq SetPacketBrokerDefaultRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -841,11 +781,7 @@ func local_request_Pba_SetHomeNetworkDefaultRoutingPolicy_1(ctx context.Context, var protoReq SetPacketBrokerDefaultRoutingPolicyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -894,11 +830,7 @@ func request_Pba_SetHomeNetworkDefaultGatewayVisibility_0(ctx context.Context, m var protoReq SetPacketBrokerDefaultGatewayVisibilityRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -911,11 +843,7 @@ func local_request_Pba_SetHomeNetworkDefaultGatewayVisibility_0(ctx context.Cont var protoReq SetPacketBrokerDefaultGatewayVisibilityRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -928,11 +856,7 @@ func request_Pba_SetHomeNetworkDefaultGatewayVisibility_1(ctx context.Context, m var protoReq SetPacketBrokerDefaultGatewayVisibilityRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -945,11 +869,7 @@ func local_request_Pba_SetHomeNetworkDefaultGatewayVisibility_1(ctx context.Cont var protoReq SetPacketBrokerDefaultGatewayVisibilityRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/packetbrokeragent_flags.pb.go b/pkg/ttnpb/packetbrokeragent_flags.pb.go index 36a072dcf4..b3d8264bb5 100644 --- a/pkg/ttnpb/packetbrokeragent_flags.pb.go +++ b/pkg/ttnpb/packetbrokeragent_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/packetbrokeragent.proto package ttnpb diff --git a/pkg/ttnpb/packetbrokeragent_grpc.pb.go b/pkg/ttnpb/packetbrokeragent_grpc.pb.go index a9feb38523..3aacc6a74a 100644 --- a/pkg/ttnpb/packetbrokeragent_grpc.pb.go +++ b/pkg/ttnpb/packetbrokeragent_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/packetbrokeragent.proto package ttnpb diff --git a/pkg/ttnpb/packetbrokeragent_json.pb.go b/pkg/ttnpb/packetbrokeragent_json.pb.go index db2790dc32..780a3ae227 100644 --- a/pkg/ttnpb/packetbrokeragent_json.pb.go +++ b/pkg/ttnpb/packetbrokeragent_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/packetbrokeragent.proto package ttnpb diff --git a/pkg/ttnpb/picture.pb.go b/pkg/ttnpb/picture.pb.go index 3a79ebd163..0a007106a3 100644 --- a/pkg/ttnpb/picture.pb.go +++ b/pkg/ttnpb/picture.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/picture.proto package ttnpb diff --git a/pkg/ttnpb/qrcodegenerator.pb.go b/pkg/ttnpb/qrcodegenerator.pb.go index c1419efbcb..58158bd8a0 100644 --- a/pkg/ttnpb/qrcodegenerator.pb.go +++ b/pkg/ttnpb/qrcodegenerator.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/qrcodegenerator.proto package ttnpb diff --git a/pkg/ttnpb/qrcodegenerator.pb.gw.go b/pkg/ttnpb/qrcodegenerator.pb.gw.go index dbd0151315..60faa7ba36 100644 --- a/pkg/ttnpb/qrcodegenerator.pb.gw.go +++ b/pkg/ttnpb/qrcodegenerator.pb.gw.go @@ -106,11 +106,7 @@ func request_EndDeviceQRCodeGenerator_Generate_0(ctx context.Context, marshaler var protoReq GenerateEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -123,11 +119,7 @@ func local_request_EndDeviceQRCodeGenerator_Generate_0(ctx context.Context, mars var protoReq GenerateEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -140,11 +132,7 @@ func request_EndDeviceQRCodeGenerator_Parse_0(ctx context.Context, marshaler run var protoReq ParseEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -157,11 +145,7 @@ func local_request_EndDeviceQRCodeGenerator_Parse_0(ctx context.Context, marshal var protoReq ParseEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -174,11 +158,7 @@ func request_EndDeviceQRCodeGenerator_Parse_1(ctx context.Context, marshaler run var protoReq ParseEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -208,11 +188,7 @@ func local_request_EndDeviceQRCodeGenerator_Parse_1(ctx context.Context, marshal var protoReq ParseEndDeviceQRCodeRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } diff --git a/pkg/ttnpb/qrcodegenerator_grpc.pb.go b/pkg/ttnpb/qrcodegenerator_grpc.pb.go index 89af8a7d5b..b7c74458b5 100644 --- a/pkg/ttnpb/qrcodegenerator_grpc.pb.go +++ b/pkg/ttnpb/qrcodegenerator_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/qrcodegenerator.proto package ttnpb diff --git a/pkg/ttnpb/qrcodegenerator_json.pb.go b/pkg/ttnpb/qrcodegenerator_json.pb.go index b6b3ac001c..5dc86c424a 100644 --- a/pkg/ttnpb/qrcodegenerator_json.pb.go +++ b/pkg/ttnpb/qrcodegenerator_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/qrcodegenerator.proto package ttnpb diff --git a/pkg/ttnpb/regional.pb.go b/pkg/ttnpb/regional.pb.go index 45bf9d6b43..23ecad418a 100644 --- a/pkg/ttnpb/regional.pb.go +++ b/pkg/ttnpb/regional.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/regional.proto package ttnpb diff --git a/pkg/ttnpb/rights.pb.go b/pkg/ttnpb/rights.pb.go index 4af0dfc506..9583a7ef45 100644 --- a/pkg/ttnpb/rights.pb.go +++ b/pkg/ttnpb/rights.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/rights.proto package ttnpb diff --git a/pkg/ttnpb/rights_flags.pb.go b/pkg/ttnpb/rights_flags.pb.go index 5a47754373..55a8ea4fb6 100644 --- a/pkg/ttnpb/rights_flags.pb.go +++ b/pkg/ttnpb/rights_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/rights.proto package ttnpb diff --git a/pkg/ttnpb/rights_json.pb.go b/pkg/ttnpb/rights_json.pb.go index 105e2024ce..1a1f1277af 100644 --- a/pkg/ttnpb/rights_json.pb.go +++ b/pkg/ttnpb/rights_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/rights.proto package ttnpb diff --git a/pkg/ttnpb/search_services.pb.go b/pkg/ttnpb/search_services.pb.go index dcb99be663..30d4386975 100644 --- a/pkg/ttnpb/search_services.pb.go +++ b/pkg/ttnpb/search_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/search_services.proto package ttnpb diff --git a/pkg/ttnpb/search_services.pb.gw.go b/pkg/ttnpb/search_services.pb.gw.go index 51d992bae7..e273583ca7 100644 --- a/pkg/ttnpb/search_services.pb.gw.go +++ b/pkg/ttnpb/search_services.pb.gw.go @@ -248,7 +248,7 @@ func local_request_EntityRegistrySearch_SearchAccounts_0(ctx context.Context, ma } var ( - filter_EntityRegistrySearch_SearchAccounts_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EntityRegistrySearch_SearchAccounts_1 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EntityRegistrySearch_SearchAccounts_1(ctx context.Context, marshaler runtime.Marshaler, client EntityRegistrySearchClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -318,7 +318,7 @@ func local_request_EntityRegistrySearch_SearchAccounts_1(ctx context.Context, ma } var ( - filter_EntityRegistrySearch_SearchAccounts_2 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1, "clientId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EntityRegistrySearch_SearchAccounts_2 = &utilities.DoubleArray{Encoding: map[string]int{"client_ids": 0, "client_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EntityRegistrySearch_SearchAccounts_2(ctx context.Context, marshaler runtime.Marshaler, client EntityRegistrySearchClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -388,7 +388,7 @@ func local_request_EntityRegistrySearch_SearchAccounts_2(ctx context.Context, ma } var ( - filter_EntityRegistrySearch_SearchAccounts_3 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1, "gatewayId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EntityRegistrySearch_SearchAccounts_3 = &utilities.DoubleArray{Encoding: map[string]int{"gateway_ids": 0, "gateway_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EntityRegistrySearch_SearchAccounts_3(ctx context.Context, marshaler runtime.Marshaler, client EntityRegistrySearchClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -458,7 +458,7 @@ func local_request_EntityRegistrySearch_SearchAccounts_3(ctx context.Context, ma } var ( - filter_EntityRegistrySearch_SearchAccounts_4 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1, "organizationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EntityRegistrySearch_SearchAccounts_4 = &utilities.DoubleArray{Encoding: map[string]int{"organization_ids": 0, "organization_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EntityRegistrySearch_SearchAccounts_4(ctx context.Context, marshaler runtime.Marshaler, client EntityRegistrySearchClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -528,7 +528,7 @@ func local_request_EntityRegistrySearch_SearchAccounts_4(ctx context.Context, ma } var ( - filter_EndDeviceRegistrySearch_SearchEndDevices_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1, "applicationId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_EndDeviceRegistrySearch_SearchEndDevices_0 = &utilities.DoubleArray{Encoding: map[string]int{"application_ids": 0, "application_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_EndDeviceRegistrySearch_SearchEndDevices_0(ctx context.Context, marshaler runtime.Marshaler, client EndDeviceRegistrySearchClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/search_services_flags.pb.go b/pkg/ttnpb/search_services_flags.pb.go index 25926dae37..ca45b8a657 100644 --- a/pkg/ttnpb/search_services_flags.pb.go +++ b/pkg/ttnpb/search_services_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/search_services.proto package ttnpb diff --git a/pkg/ttnpb/search_services_grpc.pb.go b/pkg/ttnpb/search_services_grpc.pb.go index fbc847356d..bf318cd274 100644 --- a/pkg/ttnpb/search_services_grpc.pb.go +++ b/pkg/ttnpb/search_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/search_services.proto package ttnpb diff --git a/pkg/ttnpb/search_services_json.pb.go b/pkg/ttnpb/search_services_json.pb.go index 63a82c9fa8..88c22107b9 100644 --- a/pkg/ttnpb/search_services_json.pb.go +++ b/pkg/ttnpb/search_services_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/search_services.proto package ttnpb diff --git a/pkg/ttnpb/secrets.pb.go b/pkg/ttnpb/secrets.pb.go index 94928b8ea0..aa10e9e11d 100644 --- a/pkg/ttnpb/secrets.pb.go +++ b/pkg/ttnpb/secrets.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/secrets.proto package ttnpb diff --git a/pkg/ttnpb/secrets_flags.pb.go b/pkg/ttnpb/secrets_flags.pb.go index 47ef0ffe8c..8838baac1f 100644 --- a/pkg/ttnpb/secrets_flags.pb.go +++ b/pkg/ttnpb/secrets_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/secrets.proto package ttnpb diff --git a/pkg/ttnpb/simulate.pb.go b/pkg/ttnpb/simulate.pb.go index 0573133b25..93b408224e 100644 --- a/pkg/ttnpb/simulate.pb.go +++ b/pkg/ttnpb/simulate.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/simulate.proto package ttnpb diff --git a/pkg/ttnpb/simulate_flags.pb.go b/pkg/ttnpb/simulate_flags.pb.go index 76dc01216c..80755d51a6 100644 --- a/pkg/ttnpb/simulate_flags.pb.go +++ b/pkg/ttnpb/simulate_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/simulate.proto package ttnpb diff --git a/pkg/ttnpb/simulate_json.pb.go b/pkg/ttnpb/simulate_json.pb.go index 3c4aefb5d7..642d074770 100644 --- a/pkg/ttnpb/simulate_json.pb.go +++ b/pkg/ttnpb/simulate_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/simulate.proto package ttnpb diff --git a/pkg/ttnpb/user.pb.go b/pkg/ttnpb/user.pb.go index 6cb3686a35..b3d074f1ef 100644 --- a/pkg/ttnpb/user.pb.go +++ b/pkg/ttnpb/user.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/user.proto package ttnpb diff --git a/pkg/ttnpb/user_flags.pb.go b/pkg/ttnpb/user_flags.pb.go index 14a38e55a6..eaec14bbea 100644 --- a/pkg/ttnpb/user_flags.pb.go +++ b/pkg/ttnpb/user_flags.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-flags. DO NOT EDIT. // versions: -// - protoc-gen-go-flags v1.1.0 -// - protoc v4.22.2 +// - protoc-gen-go-flags v1.2.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/user.proto package ttnpb diff --git a/pkg/ttnpb/user_json.pb.go b/pkg/ttnpb/user_json.pb.go index ab3abc107f..adc00c94ae 100644 --- a/pkg/ttnpb/user_json.pb.go +++ b/pkg/ttnpb/user_json.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-json. DO NOT EDIT. // versions: -// - protoc-gen-go-json v1.5.1 -// - protoc v4.22.2 +// - protoc-gen-go-json v1.6.0 +// - protoc v4.23.4 // source: ttn/lorawan/v3/user.proto package ttnpb diff --git a/pkg/ttnpb/user_services.pb.go b/pkg/ttnpb/user_services.pb.go index a2061abd91..7cebac1db0 100644 --- a/pkg/ttnpb/user_services.pb.go +++ b/pkg/ttnpb/user_services.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v4.22.2 +// protoc-gen-go v1.32.0 +// protoc v4.25.1 // source: ttn/lorawan/v3/user_services.proto package ttnpb diff --git a/pkg/ttnpb/user_services.pb.gw.go b/pkg/ttnpb/user_services.pb.gw.go index 76422d1bd7..5916cc321a 100644 --- a/pkg/ttnpb/user_services.pb.gw.go +++ b/pkg/ttnpb/user_services.pb.gw.go @@ -35,11 +35,7 @@ func request_UserRegistry_Create_0(ctx context.Context, marshaler runtime.Marsha var protoReq CreateUserRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -52,11 +48,7 @@ func local_request_UserRegistry_Create_0(ctx context.Context, marshaler runtime. var protoReq CreateUserRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -66,7 +58,7 @@ func local_request_UserRegistry_Create_0(ctx context.Context, marshaler runtime. } var ( - filter_UserRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_UserRegistry_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_UserRegistry_Get_0(ctx context.Context, marshaler runtime.Marshaler, client UserRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,11 +167,7 @@ func request_UserRegistry_Update_0(ctx context.Context, marshaler runtime.Marsha var protoReq UpdateUserRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -209,11 +197,7 @@ func local_request_UserRegistry_Update_0(ctx context.Context, marshaler runtime. var protoReq UpdateUserRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -240,7 +224,7 @@ func local_request_UserRegistry_Update_0(ctx context.Context, marshaler runtime. } var ( - filter_UserRegistry_CreateTemporaryPassword_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_UserRegistry_CreateTemporaryPassword_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_UserRegistry_CreateTemporaryPassword_0(ctx context.Context, marshaler runtime.Marshaler, client UserRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -313,11 +297,7 @@ func request_UserRegistry_UpdatePassword_0(ctx context.Context, marshaler runtim var protoReq UpdateUserPasswordRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -347,11 +327,7 @@ func local_request_UserRegistry_UpdatePassword_0(ctx context.Context, marshaler var protoReq UpdateUserPasswordRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -378,7 +354,7 @@ func local_request_UserRegistry_UpdatePassword_0(ctx context.Context, marshaler } var ( - filter_UserRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0, "userId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_UserRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_UserRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client UserRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -448,7 +424,7 @@ func local_request_UserRegistry_Delete_0(ctx context.Context, marshaler runtime. } var ( - filter_UserRegistry_Restore_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0, "userId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_UserRegistry_Restore_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_UserRegistry_Restore_0(ctx context.Context, marshaler runtime.Marshaler, client UserRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -518,7 +494,7 @@ func local_request_UserRegistry_Restore_0(ctx context.Context, marshaler runtime } var ( - filter_UserRegistry_Purge_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0, "userId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_UserRegistry_Purge_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_UserRegistry_Purge_0(ctx context.Context, marshaler runtime.Marshaler, client UserRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -588,7 +564,7 @@ func local_request_UserRegistry_Purge_0(ctx context.Context, marshaler runtime.M } var ( - filter_UserAccess_ListRights_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0, "userId": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_UserAccess_ListRights_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) func request_UserAccess_ListRights_0(ctx context.Context, marshaler runtime.Marshaler, client UserAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -661,11 +637,7 @@ func request_UserAccess_CreateAPIKey_0(ctx context.Context, marshaler runtime.Ma var protoReq CreateUserAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -695,11 +667,7 @@ func local_request_UserAccess_CreateAPIKey_0(ctx context.Context, marshaler runt var protoReq CreateUserAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -726,7 +694,7 @@ func local_request_UserAccess_CreateAPIKey_0(ctx context.Context, marshaler runt } var ( - filter_UserAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_UserAccess_ListAPIKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_UserAccess_ListAPIKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -796,7 +764,7 @@ func local_request_UserAccess_ListAPIKeys_0(ctx context.Context, marshaler runti } var ( - filter_UserAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_UserAccess_GetAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_UserAccess_GetAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -889,11 +857,7 @@ func request_UserAccess_UpdateAPIKey_0(ctx context.Context, marshaler runtime.Ma var protoReq UpdateUserAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -933,11 +897,7 @@ func local_request_UserAccess_UpdateAPIKey_0(ctx context.Context, marshaler runt var protoReq UpdateUserAPIKeyRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -974,7 +934,7 @@ func local_request_UserAccess_UpdateAPIKey_0(ctx context.Context, marshaler runt } var ( - filter_UserAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "key_id": 3, "keyId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_UserAccess_DeleteAPIKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "key_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_UserAccess_DeleteAPIKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1064,7 +1024,7 @@ func local_request_UserAccess_DeleteAPIKey_0(ctx context.Context, marshaler runt } var ( - filter_UserAccess_CreateLoginToken_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_UserAccess_CreateLoginToken_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_UserAccess_CreateLoginToken_0(ctx context.Context, marshaler runtime.Marshaler, client UserAccessClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1137,11 +1097,7 @@ func request_UserInvitationRegistry_Send_0(ctx context.Context, marshaler runtim var protoReq SendInvitationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1154,11 +1110,7 @@ func local_request_UserInvitationRegistry_Send_0(ctx context.Context, marshaler var protoReq SendInvitationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -1240,7 +1192,7 @@ func local_request_UserInvitationRegistry_Delete_0(ctx context.Context, marshale } var ( - filter_UserSessionRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} + filter_UserSessionRegistry_List_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} ) func request_UserSessionRegistry_List_0(ctx context.Context, marshaler runtime.Marshaler, client UserSessionRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1310,7 +1262,7 @@ func local_request_UserSessionRegistry_List_0(ctx context.Context, marshaler run } var ( - filter_UserSessionRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "userId": 2, "session_id": 3, "sessionId": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 4, 5, 6}} + filter_UserSessionRegistry_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_ids": 0, "user_id": 1, "session_id": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 3, 4}} ) func request_UserSessionRegistry_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client UserSessionRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { diff --git a/pkg/ttnpb/user_services_grpc.pb.go b/pkg/ttnpb/user_services_grpc.pb.go index 9d0b9c8fae..7b19d09b6a 100644 --- a/pkg/ttnpb/user_services_grpc.pb.go +++ b/pkg/ttnpb/user_services_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.22.2 +// - protoc v4.25.1 // source: ttn/lorawan/v3/user_services.proto package ttnpb diff --git a/tools/mage/proto.go b/tools/mage/proto.go index 9d6b4178a0..89ff2e5d9e 100644 --- a/tools/mage/proto.go +++ b/tools/mage/proto.go @@ -30,14 +30,14 @@ import ( const ( protocOut = "/out" - goProtoImage = "ghcr.io/thethingsindustries/protoc:22.2-gen-go-1.30.0" - goGrpcProtoImage = "ghcr.io/thethingsindustries/protoc:22.2-gen-go-grpc-1.54.0" - jsonProtoImage = "ghcr.io/thethingsindustries/protoc:22.2-gen-go-json-1.5.1" - fieldMaskProtoImage = "ghcr.io/thethingsindustries/protoc:22.2-gen-fieldmask-0.7.3" - grpcGatewayProtoImage = "ghcr.io/thethingsindustries/protoc:22.0-gen-grpc-gateway-2.15.2" - openAPIv2ProtoImage = "ghcr.io/thethingsindustries/protoc:22.0-gen-grpc-gateway-2.15.2" + goProtoImage = "ghcr.io/thethingsindustries/protoc:25.1-gen-go-1.32.0" + goGrpcProtoImage = "ghcr.io/thethingsindustries/protoc:25.1-gen-go-grpc-1.60.1" + jsonProtoImage = "ghcr.io/thethingsindustries/protoc:23.4-gen-go-json-1.6.0" + fieldMaskProtoImage = "ghcr.io/thethingsindustries/protoc:23.4-gen-fieldmask-0.7.4" + grpcGatewayProtoImage = "ghcr.io/thethingsindustries/protoc:25.1-gen-grpc-gateway-2.19.0" + openAPIv2ProtoImage = "ghcr.io/thethingsindustries/protoc:25.1-gen-grpc-gateway-2.19.0" docProtoImage = "ghcr.io/thethingsindustries/protoc:3.19.4-gen-doc-1.5.1" - flagProtoImage = "ghcr.io/thethingsindustries/protoc:22.2-gen-go-flags-1.1.0" + flagProtoImage = "ghcr.io/thethingsindustries/protoc:23.4-gen-go-flags-1.2.0" ) // Proto namespace. diff --git a/tools/mage/sql.go b/tools/mage/sql.go index 5efdda46b7..4b517e96b2 100644 --- a/tools/mage/sql.go +++ b/tools/mage/sql.go @@ -25,7 +25,7 @@ import ( ) const ( - sqlfmtImage = "ghcr.io/tconbeer/sqlfmt:v0.16.0" + sqlfmtImage = "ghcr.io/tconbeer/sqlfmt:v0.21.0" lineLength = "120" )