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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
400 changes: 202 additions & 198 deletions src/viam/gen/app/v1/app_pb2.py

Large diffs are not rendered by default.

95 changes: 88 additions & 7 deletions src/viam/gen/app/v1/app_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,46 @@ FRAGMENT_ERROR_TYPE_CHILD_ID_INVALID: FragmentErrorType.ValueType
FRAGMENT_ERROR_TYPE_CYCLE_DETECTED: FragmentErrorType.ValueType
global___FragmentErrorType = FragmentErrorType

class _ModuleSourceType:
ValueType = typing.NewType('ValueType', builtins.int)
V: typing_extensions.TypeAlias = ValueType

class _ModuleSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ModuleSourceType.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
MODULE_SOURCE_TYPE_UNSPECIFIED: _ModuleSourceType.ValueType
MODULE_SOURCE_TYPE_EXTERNAL: _ModuleSourceType.ValueType
'Module source code is stored externally, such as in github.'
MODULE_SOURCE_TYPE_VIAM_HOSTED: _ModuleSourceType.ValueType
'Module source code is versioned and managed within Viam.'

class ModuleSourceType(_ModuleSourceType, metaclass=_ModuleSourceTypeEnumTypeWrapper):
...
MODULE_SOURCE_TYPE_UNSPECIFIED: ModuleSourceType.ValueType
MODULE_SOURCE_TYPE_EXTERNAL: ModuleSourceType.ValueType
'Module source code is stored externally, such as in github.'
MODULE_SOURCE_TYPE_VIAM_HOSTED: ModuleSourceType.ValueType
'Module source code is versioned and managed within Viam.'
global___ModuleSourceType = ModuleSourceType

class _ModuleLanguage:
ValueType = typing.NewType('ValueType', builtins.int)
V: typing_extensions.TypeAlias = ValueType

class _ModuleLanguageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ModuleLanguage.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
MODULE_LANGUAGE_UNSPECIFIED: _ModuleLanguage.ValueType
MODULE_LANGUAGE_GOLANG: _ModuleLanguage.ValueType
MODULE_LANGUAGE_PYTHON: _ModuleLanguage.ValueType
MODULE_LANGUAGE_CPP: _ModuleLanguage.ValueType

class ModuleLanguage(_ModuleLanguage, metaclass=_ModuleLanguageEnumTypeWrapper):
...
MODULE_LANGUAGE_UNSPECIFIED: ModuleLanguage.ValueType
MODULE_LANGUAGE_GOLANG: ModuleLanguage.ValueType
MODULE_LANGUAGE_PYTHON: ModuleLanguage.ValueType
MODULE_LANGUAGE_CPP: ModuleLanguage.ValueType
global___ModuleLanguage = ModuleLanguage

class _RegistryItemStatus:
ValueType = typing.NewType('ValueType', builtins.int)
V: typing_extensions.TypeAlias = ValueType
Expand Down Expand Up @@ -3916,12 +3956,18 @@ class ModuleMetadata(google.protobuf.message.Message):
FIRST_RUN_FIELD_NUMBER: builtins.int
MARKDOWN_DESCRIPTION_FIELD_NUMBER: builtins.int
APPS_FIELD_NUMBER: builtins.int
SOURCE_TYPE_FIELD_NUMBER: builtins.int
LANGUAGE_FIELD_NUMBER: builtins.int
entrypoint: builtins.str
'The executable to run to start the module program'
first_run: builtins.str
'The path to a setup script that is run before a newly downloaded module starts.'
markdown_description: builtins.str
'markdown content for the entire module'
source_type: global___ModuleSourceType.ValueType
'Determines the type of module, either a registry module or an inline module.'
language: global___ModuleLanguage.ValueType
'Specifies the language that the module is written in.'

@property
def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Model]:
Expand All @@ -3937,22 +3983,30 @@ class ModuleMetadata(google.protobuf.message.Message):
def apps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___App]:
"""A list of applications associated with the module"""

def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., versions: collections.abc.Iterable[global___ModuleVersion] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=..., markdown_description: builtins.str | None=..., apps: collections.abc.Iterable[global___App] | None=...) -> None:
def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., versions: collections.abc.Iterable[global___ModuleVersion] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=..., markdown_description: builtins.str | None=..., apps: collections.abc.Iterable[global___App] | None=..., source_type: global___ModuleSourceType.ValueType | None=..., language: global___ModuleLanguage.ValueType | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'first_run', b'first_run', 'markdown_description', b'markdown_description']) -> builtins.bool:
def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', '_language', b'_language', '_markdown_description', b'_markdown_description', '_source_type', b'_source_type', 'first_run', b'first_run', 'language', b'language', 'markdown_description', b'markdown_description', 'source_type', b'source_type']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'apps', b'apps', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'markdown_description', b'markdown_description', 'models', b'models', 'versions', b'versions']) -> None:
def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', '_language', b'_language', '_markdown_description', b'_markdown_description', '_source_type', b'_source_type', 'apps', b'apps', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'language', b'language', 'markdown_description', b'markdown_description', 'models', b'models', 'source_type', b'source_type', 'versions', b'versions']) -> None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_first_run', b'_first_run']) -> typing.Literal['first_run'] | None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_language', b'_language']) -> typing.Literal['language'] | None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_markdown_description', b'_markdown_description']) -> typing.Literal['markdown_description'] | None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_source_type', b'_source_type']) -> typing.Literal['source_type'] | None:
...
global___ModuleMetadata = ModuleMetadata

@typing.final
Expand Down Expand Up @@ -4237,6 +4291,8 @@ class ListRegistryItemsRequest(google.protobuf.message.Message):
PAGE_TOKEN_FIELD_NUMBER: builtins.int
PUBLIC_NAMESPACES_FIELD_NUMBER: builtins.int
INCLUDE_MARKDOWN_DOCUMENTATION_FIELD_NUMBER: builtins.int
MODULE_SOURCE_TYPES_FIELD_NUMBER: builtins.int
MODULE_LANGUAGES_FIELD_NUMBER: builtins.int
organization_id: builtins.str
'The id of the organization to return registry items for.'
search_term: builtins.str
Expand All @@ -4263,13 +4319,21 @@ class ListRegistryItemsRequest(google.protobuf.message.Message):
def public_namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
"""One or more public namespaces to return results for."""

def __init__(self, *, organization_id: builtins.str | None=..., types: collections.abc.Iterable[app.packages.v1.packages_pb2.PackageType.ValueType] | None=..., visibilities: collections.abc.Iterable[global___Visibility.ValueType] | None=..., platforms: collections.abc.Iterable[builtins.str] | None=..., statuses: collections.abc.Iterable[global___RegistryItemStatus.ValueType] | None=..., search_term: builtins.str | None=..., page_token: builtins.str | None=..., public_namespaces: collections.abc.Iterable[builtins.str] | None=..., include_markdown_documentation: builtins.bool | None=...) -> None:
@property
def module_source_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ModuleSourceType.ValueType]:
...

@property
def module_languages(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ModuleLanguage.ValueType]:
...

def __init__(self, *, organization_id: builtins.str | None=..., types: collections.abc.Iterable[app.packages.v1.packages_pb2.PackageType.ValueType] | None=..., visibilities: collections.abc.Iterable[global___Visibility.ValueType] | None=..., platforms: collections.abc.Iterable[builtins.str] | None=..., statuses: collections.abc.Iterable[global___RegistryItemStatus.ValueType] | None=..., search_term: builtins.str | None=..., page_token: builtins.str | None=..., public_namespaces: collections.abc.Iterable[builtins.str] | None=..., include_markdown_documentation: builtins.bool | None=..., module_source_types: collections.abc.Iterable[global___ModuleSourceType.ValueType] | None=..., module_languages: collections.abc.Iterable[global___ModuleLanguage.ValueType] | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['_include_markdown_documentation', b'_include_markdown_documentation', '_organization_id', b'_organization_id', '_page_token', b'_page_token', '_search_term', b'_search_term', 'include_markdown_documentation', b'include_markdown_documentation', 'organization_id', b'organization_id', 'page_token', b'page_token', 'search_term', b'search_term']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['_include_markdown_documentation', b'_include_markdown_documentation', '_organization_id', b'_organization_id', '_page_token', b'_page_token', '_search_term', b'_search_term', 'include_markdown_documentation', b'include_markdown_documentation', 'organization_id', b'organization_id', 'page_token', b'page_token', 'platforms', b'platforms', 'public_namespaces', b'public_namespaces', 'search_term', b'search_term', 'statuses', b'statuses', 'types', b'types', 'visibilities', b'visibilities']) -> None:
def ClearField(self, field_name: typing.Literal['_include_markdown_documentation', b'_include_markdown_documentation', '_organization_id', b'_organization_id', '_page_token', b'_page_token', '_search_term', b'_search_term', 'include_markdown_documentation', b'include_markdown_documentation', 'module_languages', b'module_languages', 'module_source_types', b'module_source_types', 'organization_id', b'organization_id', 'page_token', b'page_token', 'platforms', b'platforms', 'public_namespaces', b'public_namespaces', 'search_term', b'search_term', 'statuses', b'statuses', 'types', b'types', 'visibilities', b'visibilities']) -> None:
...

@typing.overload
Expand Down Expand Up @@ -4531,8 +4595,14 @@ class UpdateModuleMetadata(google.protobuf.message.Message):
MODELS_FIELD_NUMBER: builtins.int
ENTRYPOINT_FIELD_NUMBER: builtins.int
APPS_FIELD_NUMBER: builtins.int
SOURCE_TYPE_FIELD_NUMBER: builtins.int
LANGUAGE_FIELD_NUMBER: builtins.int
entrypoint: builtins.str
'The executable to run to start the module program'
source_type: global___ModuleSourceType.ValueType
'Determines where the source code of module is managed, either externally or hosted by viam.'
language: global___ModuleLanguage.ValueType
'The language the module is written in'

@property
def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Model]:
Expand All @@ -4542,10 +4612,21 @@ class UpdateModuleMetadata(google.protobuf.message.Message):
def apps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___App]:
"""A list of applications associated with the module"""

def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., entrypoint: builtins.str=..., apps: collections.abc.Iterable[global___App] | None=...) -> None:
def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., entrypoint: builtins.str=..., apps: collections.abc.Iterable[global___App] | None=..., source_type: global___ModuleSourceType.ValueType | None=..., language: global___ModuleLanguage.ValueType | None=...) -> None:
...

def ClearField(self, field_name: typing.Literal['apps', b'apps', 'entrypoint', b'entrypoint', 'models', b'models']) -> None:
def HasField(self, field_name: typing.Literal['_language', b'_language', '_source_type', b'_source_type', 'language', b'language', 'source_type', b'source_type']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['_language', b'_language', '_source_type', b'_source_type', 'apps', b'apps', 'entrypoint', b'entrypoint', 'language', b'language', 'models', b'models', 'source_type', b'source_type']) -> None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_language', b'_language']) -> typing.Literal['language'] | None:
...

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_source_type', b'_source_type']) -> typing.Literal['source_type'] | None:
...
global___UpdateModuleMetadata = UpdateModuleMetadata

Expand Down
12 changes: 7 additions & 5 deletions src/viam/gen/provisioning/v1/provisioning_pb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'provisioning/v1/provisioning.proto')
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n"provisioning/v1/provisioning.proto\x12\x14viam.provisioning.v1"\x19\n\x17ExitProvisioningRequest"\x1a\n\x18ExitProvisioningResponse"\x1e\n\x1cGetSmartMachineStatusRequest"\xf0\x02\n\x1dGetSmartMachineStatusResponse\x12S\n\x11provisioning_info\x18\x01 \x01(\x0b2&.viam.provisioning.v1.ProvisioningInfoR\x10provisioningInfo\x12A\n\x1dhas_smart_machine_credentials\x18\x02 \x01(\x08R\x1ahasSmartMachineCredentials\x12\x1b\n\tis_online\x18\x03 \x01(\x08R\x08isOnline\x12]\n\x19latest_connection_attempt\x18\x04 \x01(\x0b2!.viam.provisioning.v1.NetworkInfoR\x17latestConnectionAttempt\x12\x16\n\x06errors\x18\x05 \x03(\tR\x06errors\x12#\n\ragent_version\x18\x06 \x01(\tR\x0cagentVersion"X\n\x1cSetNetworkCredentialsRequest\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n\x04ssid\x18\x02 \x01(\tR\x04ssid\x12\x10\n\x03psk\x18\x03 \x01(\tR\x03psk"\x1f\n\x1dSetNetworkCredentialsResponse"\\\n!SetSmartMachineCredentialsRequest\x127\n\x05cloud\x18\x01 \x01(\x0b2!.viam.provisioning.v1.CloudConfigR\x05cloud"$\n"SetSmartMachineCredentialsResponse"\x17\n\x15GetNetworkListRequest"W\n\x16GetNetworkListResponse\x12=\n\x08networks\x18\x01 \x03(\x0b2!.viam.provisioning.v1.NetworkInfoR\x08networks"m\n\x10ProvisioningInfo\x12\x1f\n\x0bfragment_id\x18\x01 \x01(\tR\nfragmentId\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model\x12"\n\x0cmanufacturer\x18\x03 \x01(\tR\x0cmanufacturer"\xa6\x01\n\x0bNetworkInfo\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n\x04ssid\x18\x02 \x01(\tR\x04ssid\x12\x1a\n\x08security\x18\x03 \x01(\tR\x08security\x12\x16\n\x06signal\x18\x04 \x01(\x05R\x06signal\x12\x1c\n\tconnected\x18\x05 \x01(\x08R\tconnected\x12\x1d\n\nlast_error\x18\x06 \x01(\tR\tlastError"V\n\x0bCloudConfig\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\x12\x1f\n\x0bapp_address\x18\x03 \x01(\tR\nappAddress2\x8d\x05\n\x13ProvisioningService\x12\x80\x01\n\x15GetSmartMachineStatus\x122.viam.provisioning.v1.GetSmartMachineStatusRequest\x1a3.viam.provisioning.v1.GetSmartMachineStatusResponse\x12\x80\x01\n\x15SetNetworkCredentials\x122.viam.provisioning.v1.SetNetworkCredentialsRequest\x1a3.viam.provisioning.v1.SetNetworkCredentialsResponse\x12\x8f\x01\n\x1aSetSmartMachineCredentials\x127.viam.provisioning.v1.SetSmartMachineCredentialsRequest\x1a8.viam.provisioning.v1.SetSmartMachineCredentialsResponse\x12k\n\x0eGetNetworkList\x12+.viam.provisioning.v1.GetNetworkListRequest\x1a,.viam.provisioning.v1.GetNetworkListResponse\x12q\n\x10ExitProvisioning\x12-.viam.provisioning.v1.ExitProvisioningRequest\x1a..viam.provisioning.v1.ExitProvisioningResponseB!Z\x1fgo.viam.com/api/provisioning/v1b\x06proto3')
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n"provisioning/v1/provisioning.proto\x12\x14viam.provisioning.v1"\x19\n\x17ExitProvisioningRequest"\x1a\n\x18ExitProvisioningResponse"\x1e\n\x1cGetSmartMachineStatusRequest"\xf0\x02\n\x1dGetSmartMachineStatusResponse\x12S\n\x11provisioning_info\x18\x01 \x01(\x0b2&.viam.provisioning.v1.ProvisioningInfoR\x10provisioningInfo\x12A\n\x1dhas_smart_machine_credentials\x18\x02 \x01(\x08R\x1ahasSmartMachineCredentials\x12\x1b\n\tis_online\x18\x03 \x01(\x08R\x08isOnline\x12]\n\x19latest_connection_attempt\x18\x04 \x01(\x0b2!.viam.provisioning.v1.NetworkInfoR\x17latestConnectionAttempt\x12\x16\n\x06errors\x18\x05 \x03(\tR\x06errors\x12#\n\ragent_version\x18\x06 \x01(\tR\x0cagentVersion"X\n\x1cSetNetworkCredentialsRequest\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n\x04ssid\x18\x02 \x01(\tR\x04ssid\x12\x10\n\x03psk\x18\x03 \x01(\tR\x03psk"\x1f\n\x1dSetNetworkCredentialsResponse"\\\n!SetSmartMachineCredentialsRequest\x127\n\x05cloud\x18\x01 \x01(\x0b2!.viam.provisioning.v1.CloudConfigR\x05cloud"$\n"SetSmartMachineCredentialsResponse"\x17\n\x15GetNetworkListRequest"W\n\x16GetNetworkListResponse\x12=\n\x08networks\x18\x01 \x03(\x0b2!.viam.provisioning.v1.NetworkInfoR\x08networks"m\n\x10ProvisioningInfo\x12\x1f\n\x0bfragment_id\x18\x01 \x01(\tR\nfragmentId\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model\x12"\n\x0cmanufacturer\x18\x03 \x01(\tR\x0cmanufacturer"\xa6\x01\n\x0bNetworkInfo\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n\x04ssid\x18\x02 \x01(\tR\x04ssid\x12\x1a\n\x08security\x18\x03 \x01(\tR\x08security\x12\x16\n\x06signal\x18\x04 \x01(\x05R\x06signal\x12\x1c\n\tconnected\x18\x05 \x01(\x08R\tconnected\x12\x1d\n\nlast_error\x18\x06 \x01(\tR\tlastError"\x8d\x01\n\x0bCloudConfig\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\x12\x1f\n\x0bapp_address\x18\x03 \x01(\tR\nappAddress\x125\n\x07api_key\x18\x04 \x01(\x0b2\x1c.viam.provisioning.v1.APIKeyR\x06apiKey"*\n\x06APIKey\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n\x03key\x18\x02 \x01(\tR\x03key2\x8d\x05\n\x13ProvisioningService\x12\x80\x01\n\x15GetSmartMachineStatus\x122.viam.provisioning.v1.GetSmartMachineStatusRequest\x1a3.viam.provisioning.v1.GetSmartMachineStatusResponse\x12\x80\x01\n\x15SetNetworkCredentials\x122.viam.provisioning.v1.SetNetworkCredentialsRequest\x1a3.viam.provisioning.v1.SetNetworkCredentialsResponse\x12\x8f\x01\n\x1aSetSmartMachineCredentials\x127.viam.provisioning.v1.SetSmartMachineCredentialsRequest\x1a8.viam.provisioning.v1.SetSmartMachineCredentialsResponse\x12k\n\x0eGetNetworkList\x12+.viam.provisioning.v1.GetNetworkListRequest\x1a,.viam.provisioning.v1.GetNetworkListResponse\x12q\n\x10ExitProvisioning\x12-.viam.provisioning.v1.ExitProvisioningRequest\x1a..viam.provisioning.v1.ExitProvisioningResponseB!Z\x1fgo.viam.com/api/provisioning/v1b\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'provisioning.v1.provisioning_pb2', _globals)
Expand Down Expand Up @@ -37,7 +37,9 @@
_globals['_PROVISIONINGINFO']._serialized_end = 996
_globals['_NETWORKINFO']._serialized_start = 999
_globals['_NETWORKINFO']._serialized_end = 1165
_globals['_CLOUDCONFIG']._serialized_start = 1167
_globals['_CLOUDCONFIG']._serialized_end = 1253
_globals['_PROVISIONINGSERVICE']._serialized_start = 1256
_globals['_PROVISIONINGSERVICE']._serialized_end = 1909
_globals['_CLOUDCONFIG']._serialized_start = 1168
_globals['_CLOUDCONFIG']._serialized_end = 1309
_globals['_APIKEY']._serialized_start = 1311
_globals['_APIKEY']._serialized_end = 1353
_globals['_PROVISIONINGSERVICE']._serialized_start = 1356
_globals['_PROVISIONINGSERVICE']._serialized_end = 2009
Loading
Loading