neurograph-core 1.202508201827__py3-none-any.whl → 1.202509071925__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. neurograph/v1/__init__.py +58 -0
  2. neurograph/v1/api/__init__.py +1 -0
  3. neurograph/v1/api/dagster_api.py +271 -2
  4. neurograph/v1/api/knowledge_api.py +2269 -0
  5. neurograph/v1/api/persona_api.py +263 -2
  6. neurograph/v1/models/__init__.py +28 -0
  7. neurograph/v1/models/client_client_info.py +99 -0
  8. neurograph/v1/models/client_client_metadata_response.py +14 -2
  9. neurograph/v1/models/client_client_url_upsert_request.py +7 -11
  10. neurograph/v1/models/client_client_url_upsert_response.py +5 -5
  11. neurograph/v1/models/client_organization_brand.py +107 -0
  12. neurograph/v1/models/client_organization_detail.py +115 -0
  13. neurograph/v1/models/client_workbench_config.py +99 -0
  14. neurograph/v1/models/dagster_dagster_info.py +95 -0
  15. neurograph/v1/models/dagster_dagster_log_get_response.py +97 -0
  16. neurograph/v1/models/db_client_url.py +5 -16
  17. neurograph/v1/models/knowledge_err_entity_row.py +89 -0
  18. neurograph/v1/models/knowledge_ingest_raw_row.py +97 -0
  19. neurograph/v1/models/knowledge_knowledge_entity.py +115 -0
  20. neurograph/v1/models/knowledge_knowledge_entity_create_request.py +97 -0
  21. neurograph/v1/models/knowledge_knowledge_entity_create_response.py +99 -0
  22. neurograph/v1/models/knowledge_knowledge_entity_extra.py +91 -0
  23. neurograph/v1/models/knowledge_knowledge_entity_get_many_response.py +103 -0
  24. neurograph/v1/models/knowledge_knowledge_entity_in_db.py +117 -0
  25. neurograph/v1/models/knowledge_knowledge_entity_relations.py +91 -0
  26. neurograph/v1/models/knowledge_knowledge_entity_schema.py +89 -0
  27. neurograph/v1/models/knowledge_knowledge_entity_schema_row.py +99 -0
  28. neurograph/v1/models/knowledge_knowledge_entity_schema_upsert_request.py +97 -0
  29. neurograph/v1/models/knowledge_knowledge_entity_schemas_response.py +97 -0
  30. neurograph/v1/models/knowledge_knowledge_entity_schemas_upsert_response.py +95 -0
  31. neurograph/v1/models/knowledge_knowledge_entity_type_row.py +97 -0
  32. neurograph/v1/models/knowledge_knowledge_entity_upsert_request.py +95 -0
  33. neurograph/v1/models/knowledge_knowledge_entity_upsert_row.py +93 -0
  34. neurograph/v1/models/knowledge_knowledge_ingest_raw_request.py +95 -0
  35. neurograph/v1/models/knowledge_knowledge_ingest_raw_response.py +101 -0
  36. neurograph/v1/models/knowledge_knowledge_kind_response.py +89 -0
  37. neurograph/v1/models/knowledge_knowledge_type_response.py +97 -0
  38. neurograph/v1/models/knowledge_query.py +95 -0
  39. {neurograph_core-1.202508201827.dist-info → neurograph_core-1.202509071925.dist-info}/METADATA +1 -1
  40. {neurograph_core-1.202508201827.dist-info → neurograph_core-1.202509071925.dist-info}/RECORD +42 -13
  41. {neurograph_core-1.202508201827.dist-info → neurograph_core-1.202509071925.dist-info}/WHEEL +0 -0
  42. {neurograph_core-1.202508201827.dist-info → neurograph_core-1.202509071925.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt
19
+ from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from neurograph.v1.models.personas_delete_many_persona_instances_request import PersonasDeleteManyPersonaInstancesRequest
@@ -2746,7 +2746,8 @@ class PersonaApi:
2746
2746
 
2747
2747
  # authentication setting
2748
2748
  _auth_settings: List[str] = [
2749
- 'TokenAuth'
2749
+ 'TokenAuth',
2750
+ 'ApiKeyAuth'
2750
2751
  ]
2751
2752
 
2752
2753
  return self.api_client.param_serialize(
@@ -3032,3 +3033,263 @@ class PersonaApi:
3032
3033
  )
3033
3034
 
3034
3035
 
3036
+
3037
+
3038
+ @validate_call
3039
+ def api_v1_persona_seed_seed_id_put(
3040
+ self,
3041
+ seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
3042
+ _request_timeout: Union[
3043
+ None,
3044
+ Annotated[StrictFloat, Field(gt=0)],
3045
+ Tuple[
3046
+ Annotated[StrictFloat, Field(gt=0)],
3047
+ Annotated[StrictFloat, Field(gt=0)]
3048
+ ]
3049
+ ] = None,
3050
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3051
+ _content_type: Optional[StrictStr] = None,
3052
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3053
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3054
+ ) -> None:
3055
+ """Disable a Persona Seed
3056
+
3057
+ A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
3058
+
3059
+ :param seed_id: Persona Seed Id (required)
3060
+ :type seed_id: str
3061
+ :param _request_timeout: timeout setting for this request. If one
3062
+ number provided, it will be total request
3063
+ timeout. It can also be a pair (tuple) of
3064
+ (connection, read) timeouts.
3065
+ :type _request_timeout: int, tuple(int, int), optional
3066
+ :param _request_auth: set to override the auth_settings for an a single
3067
+ request; this effectively ignores the
3068
+ authentication in the spec for a single request.
3069
+ :type _request_auth: dict, optional
3070
+ :param _content_type: force content-type for the request.
3071
+ :type _content_type: str, Optional
3072
+ :param _headers: set to override the headers for a single
3073
+ request; this effectively ignores the headers
3074
+ in the spec for a single request.
3075
+ :type _headers: dict, optional
3076
+ :param _host_index: set to override the host_index for a single
3077
+ request; this effectively ignores the host_index
3078
+ in the spec for a single request.
3079
+ :type _host_index: int, optional
3080
+ :return: Returns the result object.
3081
+ """ # noqa: E501
3082
+
3083
+ _param = self._api_v1_persona_seed_seed_id_put_serialize(
3084
+ seed_id=seed_id,
3085
+ _request_auth=_request_auth,
3086
+ _content_type=_content_type,
3087
+ _headers=_headers,
3088
+ _host_index=_host_index
3089
+ )
3090
+
3091
+ _response_types_map: Dict[str, Optional[str]] = {
3092
+ '200': None,
3093
+ '400': None,
3094
+ '503': None,
3095
+ }
3096
+ response_data = self.api_client.call_api(
3097
+ *_param,
3098
+ _request_timeout=_request_timeout
3099
+ )
3100
+ response_data.read()
3101
+ return self.api_client.response_deserialize(
3102
+ response_data=response_data,
3103
+ response_types_map=_response_types_map,
3104
+ ).data
3105
+
3106
+
3107
+ @validate_call
3108
+ def api_v1_persona_seed_seed_id_put_with_http_info(
3109
+ self,
3110
+ seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
3111
+ _request_timeout: Union[
3112
+ None,
3113
+ Annotated[StrictFloat, Field(gt=0)],
3114
+ Tuple[
3115
+ Annotated[StrictFloat, Field(gt=0)],
3116
+ Annotated[StrictFloat, Field(gt=0)]
3117
+ ]
3118
+ ] = None,
3119
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3120
+ _content_type: Optional[StrictStr] = None,
3121
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3122
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3123
+ ) -> ApiResponse[None]:
3124
+ """Disable a Persona Seed
3125
+
3126
+ A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
3127
+
3128
+ :param seed_id: Persona Seed Id (required)
3129
+ :type seed_id: str
3130
+ :param _request_timeout: timeout setting for this request. If one
3131
+ number provided, it will be total request
3132
+ timeout. It can also be a pair (tuple) of
3133
+ (connection, read) timeouts.
3134
+ :type _request_timeout: int, tuple(int, int), optional
3135
+ :param _request_auth: set to override the auth_settings for an a single
3136
+ request; this effectively ignores the
3137
+ authentication in the spec for a single request.
3138
+ :type _request_auth: dict, optional
3139
+ :param _content_type: force content-type for the request.
3140
+ :type _content_type: str, Optional
3141
+ :param _headers: set to override the headers for a single
3142
+ request; this effectively ignores the headers
3143
+ in the spec for a single request.
3144
+ :type _headers: dict, optional
3145
+ :param _host_index: set to override the host_index for a single
3146
+ request; this effectively ignores the host_index
3147
+ in the spec for a single request.
3148
+ :type _host_index: int, optional
3149
+ :return: Returns the result object.
3150
+ """ # noqa: E501
3151
+
3152
+ _param = self._api_v1_persona_seed_seed_id_put_serialize(
3153
+ seed_id=seed_id,
3154
+ _request_auth=_request_auth,
3155
+ _content_type=_content_type,
3156
+ _headers=_headers,
3157
+ _host_index=_host_index
3158
+ )
3159
+
3160
+ _response_types_map: Dict[str, Optional[str]] = {
3161
+ '200': None,
3162
+ '400': None,
3163
+ '503': None,
3164
+ }
3165
+ response_data = self.api_client.call_api(
3166
+ *_param,
3167
+ _request_timeout=_request_timeout
3168
+ )
3169
+ response_data.read()
3170
+ return self.api_client.response_deserialize(
3171
+ response_data=response_data,
3172
+ response_types_map=_response_types_map,
3173
+ )
3174
+
3175
+
3176
+ @validate_call
3177
+ def api_v1_persona_seed_seed_id_put_without_preload_content(
3178
+ self,
3179
+ seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
3180
+ _request_timeout: Union[
3181
+ None,
3182
+ Annotated[StrictFloat, Field(gt=0)],
3183
+ Tuple[
3184
+ Annotated[StrictFloat, Field(gt=0)],
3185
+ Annotated[StrictFloat, Field(gt=0)]
3186
+ ]
3187
+ ] = None,
3188
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3189
+ _content_type: Optional[StrictStr] = None,
3190
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3191
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3192
+ ) -> RESTResponseType:
3193
+ """Disable a Persona Seed
3194
+
3195
+ A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
3196
+
3197
+ :param seed_id: Persona Seed Id (required)
3198
+ :type seed_id: str
3199
+ :param _request_timeout: timeout setting for this request. If one
3200
+ number provided, it will be total request
3201
+ timeout. It can also be a pair (tuple) of
3202
+ (connection, read) timeouts.
3203
+ :type _request_timeout: int, tuple(int, int), optional
3204
+ :param _request_auth: set to override the auth_settings for an a single
3205
+ request; this effectively ignores the
3206
+ authentication in the spec for a single request.
3207
+ :type _request_auth: dict, optional
3208
+ :param _content_type: force content-type for the request.
3209
+ :type _content_type: str, Optional
3210
+ :param _headers: set to override the headers for a single
3211
+ request; this effectively ignores the headers
3212
+ in the spec for a single request.
3213
+ :type _headers: dict, optional
3214
+ :param _host_index: set to override the host_index for a single
3215
+ request; this effectively ignores the host_index
3216
+ in the spec for a single request.
3217
+ :type _host_index: int, optional
3218
+ :return: Returns the result object.
3219
+ """ # noqa: E501
3220
+
3221
+ _param = self._api_v1_persona_seed_seed_id_put_serialize(
3222
+ seed_id=seed_id,
3223
+ _request_auth=_request_auth,
3224
+ _content_type=_content_type,
3225
+ _headers=_headers,
3226
+ _host_index=_host_index
3227
+ )
3228
+
3229
+ _response_types_map: Dict[str, Optional[str]] = {
3230
+ '200': None,
3231
+ '400': None,
3232
+ '503': None,
3233
+ }
3234
+ response_data = self.api_client.call_api(
3235
+ *_param,
3236
+ _request_timeout=_request_timeout
3237
+ )
3238
+ return response_data.response
3239
+
3240
+
3241
+ def _api_v1_persona_seed_seed_id_put_serialize(
3242
+ self,
3243
+ seed_id,
3244
+ _request_auth,
3245
+ _content_type,
3246
+ _headers,
3247
+ _host_index,
3248
+ ) -> RequestSerialized:
3249
+
3250
+ _host = None
3251
+
3252
+ _collection_formats: Dict[str, str] = {
3253
+ }
3254
+
3255
+ _path_params: Dict[str, str] = {}
3256
+ _query_params: List[Tuple[str, str]] = []
3257
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3258
+ _form_params: List[Tuple[str, str]] = []
3259
+ _files: Dict[
3260
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3261
+ ] = {}
3262
+ _body_params: Optional[bytes] = None
3263
+
3264
+ # process the path parameters
3265
+ if seed_id is not None:
3266
+ _path_params['seed_id'] = seed_id
3267
+ # process the query parameters
3268
+ # process the header parameters
3269
+ # process the form parameters
3270
+ # process the body parameter
3271
+
3272
+
3273
+
3274
+
3275
+ # authentication setting
3276
+ _auth_settings: List[str] = [
3277
+ 'TokenAuth'
3278
+ ]
3279
+
3280
+ return self.api_client.param_serialize(
3281
+ method='PUT',
3282
+ resource_path='/api/v1/persona/seed/{seed_id}',
3283
+ path_params=_path_params,
3284
+ query_params=_query_params,
3285
+ header_params=_header_params,
3286
+ body=_body_params,
3287
+ post_params=_form_params,
3288
+ files=_files,
3289
+ auth_settings=_auth_settings,
3290
+ collection_formats=_collection_formats,
3291
+ _host=_host,
3292
+ _request_auth=_request_auth
3293
+ )
3294
+
3295
+
@@ -21,6 +21,7 @@ from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
21
21
  from neurograph.v1.models.client_client import ClientClient
22
22
  from neurograph.v1.models.client_client_get_detail_response import ClientClientGetDetailResponse
23
23
  from neurograph.v1.models.client_client_get_many_response import ClientClientGetManyResponse
24
+ from neurograph.v1.models.client_client_info import ClientClientInfo
24
25
  from neurograph.v1.models.client_client_metadata_request import ClientClientMetadataRequest
25
26
  from neurograph.v1.models.client_client_metadata_response import ClientClientMetadataResponse
26
27
  from neurograph.v1.models.client_client_personas_response import ClientClientPersonasResponse
@@ -32,15 +33,42 @@ from neurograph.v1.models.client_client_urls_response import ClientClientUrlsRes
32
33
  from neurograph.v1.models.client_delete_metadata_request import ClientDeleteMetadataRequest
33
34
  from neurograph.v1.models.client_kpi import ClientKpi
34
35
  from neurograph.v1.models.client_metadata import ClientMetadata
36
+ from neurograph.v1.models.client_organization_brand import ClientOrganizationBrand
37
+ from neurograph.v1.models.client_organization_detail import ClientOrganizationDetail
35
38
  from neurograph.v1.models.client_persona import ClientPersona
36
39
  from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
37
40
  from neurograph.v1.models.client_persona_insight import ClientPersonaInsight
38
41
  from neurograph.v1.models.client_persona_personality_trait import ClientPersonaPersonalityTrait
39
42
  from neurograph.v1.models.client_query import ClientQuery
43
+ from neurograph.v1.models.client_workbench_config import ClientWorkbenchConfig
44
+ from neurograph.v1.models.dagster_dagster_info import DagsterDagsterInfo
40
45
  from neurograph.v1.models.dagster_dagster_log_create_request import DagsterDagsterLogCreateRequest
41
46
  from neurograph.v1.models.dagster_dagster_log_create_response import DagsterDagsterLogCreateResponse
47
+ from neurograph.v1.models.dagster_dagster_log_get_response import DagsterDagsterLogGetResponse
42
48
  from neurograph.v1.models.db_client_url import DbClientUrl
43
49
  from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
50
+ from neurograph.v1.models.knowledge_err_entity_row import KnowledgeErrEntityRow
51
+ from neurograph.v1.models.knowledge_ingest_raw_row import KnowledgeIngestRawRow
52
+ from neurograph.v1.models.knowledge_knowledge_entity import KnowledgeKnowledgeEntity
53
+ from neurograph.v1.models.knowledge_knowledge_entity_create_request import KnowledgeKnowledgeEntityCreateRequest
54
+ from neurograph.v1.models.knowledge_knowledge_entity_create_response import KnowledgeKnowledgeEntityCreateResponse
55
+ from neurograph.v1.models.knowledge_knowledge_entity_extra import KnowledgeKnowledgeEntityExtra
56
+ from neurograph.v1.models.knowledge_knowledge_entity_get_many_response import KnowledgeKnowledgeEntityGetManyResponse
57
+ from neurograph.v1.models.knowledge_knowledge_entity_in_db import KnowledgeKnowledgeEntityInDb
58
+ from neurograph.v1.models.knowledge_knowledge_entity_relations import KnowledgeKnowledgeEntityRelations
59
+ from neurograph.v1.models.knowledge_knowledge_entity_schema import KnowledgeKnowledgeEntitySchema
60
+ from neurograph.v1.models.knowledge_knowledge_entity_schema_row import KnowledgeKnowledgeEntitySchemaRow
61
+ from neurograph.v1.models.knowledge_knowledge_entity_schema_upsert_request import KnowledgeKnowledgeEntitySchemaUpsertRequest
62
+ from neurograph.v1.models.knowledge_knowledge_entity_schemas_response import KnowledgeKnowledgeEntitySchemasResponse
63
+ from neurograph.v1.models.knowledge_knowledge_entity_schemas_upsert_response import KnowledgeKnowledgeEntitySchemasUpsertResponse
64
+ from neurograph.v1.models.knowledge_knowledge_entity_type_row import KnowledgeKnowledgeEntityTypeRow
65
+ from neurograph.v1.models.knowledge_knowledge_entity_upsert_request import KnowledgeKnowledgeEntityUpsertRequest
66
+ from neurograph.v1.models.knowledge_knowledge_entity_upsert_row import KnowledgeKnowledgeEntityUpsertRow
67
+ from neurograph.v1.models.knowledge_knowledge_ingest_raw_request import KnowledgeKnowledgeIngestRawRequest
68
+ from neurograph.v1.models.knowledge_knowledge_ingest_raw_response import KnowledgeKnowledgeIngestRawResponse
69
+ from neurograph.v1.models.knowledge_knowledge_kind_response import KnowledgeKnowledgeKindResponse
70
+ from neurograph.v1.models.knowledge_knowledge_type_response import KnowledgeKnowledgeTypeResponse
71
+ from neurograph.v1.models.knowledge_query import KnowledgeQuery
44
72
  from neurograph.v1.models.lookup_language import LookupLanguage
45
73
  from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLanguageResponse
46
74
  from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse
@@ -0,0 +1,99 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neurograph Core
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class ClientClientInfo(BaseModel):
26
+ """
27
+ ClientClientInfo
28
+ """ # noqa: E501
29
+ id: Optional[StrictStr] = None
30
+ is_active: Optional[StrictBool] = None
31
+ name: Optional[StrictStr] = None
32
+ org_id: Optional[StrictStr] = None
33
+ ts_created: Optional[StrictInt] = None
34
+ ts_updated: Optional[StrictInt] = None
35
+ uid: Optional[StrictStr] = None
36
+ __properties: ClassVar[List[str]] = ["id", "is_active", "name", "org_id", "ts_created", "ts_updated", "uid"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of ClientClientInfo from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ return _dict
78
+
79
+ @classmethod
80
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
+ """Create an instance of ClientClientInfo from a dict"""
82
+ if obj is None:
83
+ return None
84
+
85
+ if not isinstance(obj, dict):
86
+ return cls.model_validate(obj)
87
+
88
+ _obj = cls.model_validate({
89
+ "id": obj.get("id"),
90
+ "is_active": obj.get("is_active"),
91
+ "name": obj.get("name"),
92
+ "org_id": obj.get("org_id"),
93
+ "ts_created": obj.get("ts_created"),
94
+ "ts_updated": obj.get("ts_updated"),
95
+ "uid": obj.get("uid")
96
+ })
97
+ return _obj
98
+
99
+
@@ -19,7 +19,9 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
+ from neurograph.v1.models.client_client_info import ClientClientInfo
22
23
  from neurograph.v1.models.client_metadata import ClientMetadata
24
+ from neurograph.v1.models.client_organization_detail import ClientOrganizationDetail
23
25
  from typing import Optional, Set
24
26
  from typing_extensions import Self
25
27
 
@@ -27,9 +29,11 @@ class ClientClientMetadataResponse(BaseModel):
27
29
  """
28
30
  ClientClientMetadataResponse
29
31
  """ # noqa: E501
32
+ client: Optional[ClientClientInfo] = None
30
33
  error: Optional[StrictStr] = None
31
34
  metadata: Optional[List[ClientMetadata]] = None
32
- __properties: ClassVar[List[str]] = ["error", "metadata"]
35
+ organization: Optional[ClientOrganizationDetail] = None
36
+ __properties: ClassVar[List[str]] = ["client", "error", "metadata", "organization"]
33
37
 
34
38
  model_config = ConfigDict(
35
39
  populate_by_name=True,
@@ -70,6 +74,9 @@ class ClientClientMetadataResponse(BaseModel):
70
74
  exclude=excluded_fields,
71
75
  exclude_none=True,
72
76
  )
77
+ # override the default output from pydantic by calling `to_dict()` of client
78
+ if self.client:
79
+ _dict['client'] = self.client.to_dict()
73
80
  # override the default output from pydantic by calling `to_dict()` of each item in metadata (list)
74
81
  _items = []
75
82
  if self.metadata:
@@ -77,6 +84,9 @@ class ClientClientMetadataResponse(BaseModel):
77
84
  if _item_metadata:
78
85
  _items.append(_item_metadata.to_dict())
79
86
  _dict['metadata'] = _items
87
+ # override the default output from pydantic by calling `to_dict()` of organization
88
+ if self.organization:
89
+ _dict['organization'] = self.organization.to_dict()
80
90
  return _dict
81
91
 
82
92
  @classmethod
@@ -89,8 +99,10 @@ class ClientClientMetadataResponse(BaseModel):
89
99
  return cls.model_validate(obj)
90
100
 
91
101
  _obj = cls.model_validate({
102
+ "client": ClientClientInfo.from_dict(obj["client"]) if obj.get("client") is not None else None,
92
103
  "error": obj.get("error"),
93
- "metadata": [ClientMetadata.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None
104
+ "metadata": [ClientMetadata.from_dict(_item) for _item in obj["metadata"]] if obj.get("metadata") is not None else None,
105
+ "organization": ClientOrganizationDetail.from_dict(obj["organization"]) if obj.get("organization") is not None else None
94
106
  })
95
107
  return _obj
96
108
 
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -27,13 +27,11 @@ class ClientClientUrlUpsertRequest(BaseModel):
27
27
  ClientClientUrlUpsertRequest
28
28
  """ # noqa: E501
29
29
  client_id: Optional[StrictStr] = None
30
- environment: Optional[StrictStr] = None
31
- id: Optional[StrictStr] = None
32
- is_active: Optional[StrictBool] = None
33
- is_silent: Optional[StrictBool] = None
34
- pixel_version_id: Optional[StrictStr] = None
30
+ customer_environment: Optional[StrictStr] = None
31
+ id: Optional[StrictInt] = None
32
+ is_active: Optional[StrictBool] = True
35
33
  url: Optional[StrictStr] = None
36
- __properties: ClassVar[List[str]] = ["client_id", "environment", "id", "is_active", "is_silent", "pixel_version_id", "url"]
34
+ __properties: ClassVar[List[str]] = ["client_id", "customer_environment", "id", "is_active", "url"]
37
35
 
38
36
  model_config = ConfigDict(
39
37
  populate_by_name=True,
@@ -87,11 +85,9 @@ class ClientClientUrlUpsertRequest(BaseModel):
87
85
 
88
86
  _obj = cls.model_validate({
89
87
  "client_id": obj.get("client_id"),
90
- "environment": obj.get("environment"),
88
+ "customer_environment": obj.get("customer_environment"),
91
89
  "id": obj.get("id"),
92
- "is_active": obj.get("is_active"),
93
- "is_silent": obj.get("is_silent"),
94
- "pixel_version_id": obj.get("pixel_version_id"),
90
+ "is_active": obj.get("is_active") if obj.get("is_active") is not None else True,
95
91
  "url": obj.get("url")
96
92
  })
97
93
  return _obj
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
23
23
  from typing import Optional, Set
@@ -28,14 +28,14 @@ class ClientClientUrlUpsertResponse(BaseModel):
28
28
  ClientClientUrlUpsertResponse
29
29
  """ # noqa: E501
30
30
  client_id: Optional[StrictStr] = None
31
- environment: Optional[StrictStr] = None
31
+ customer_environment: Optional[StrictStr] = None
32
32
  error: Optional[StrictStr] = None
33
- id: Optional[StrictStr] = None
33
+ id: Optional[StrictInt] = None
34
34
  is_active: Optional[StrictBool] = None
35
35
  ts_created: Optional[PgtypeTimestamp] = None
36
36
  ts_updated: Optional[PgtypeTimestamp] = None
37
37
  url: Optional[StrictStr] = None
38
- __properties: ClassVar[List[str]] = ["client_id", "environment", "error", "id", "is_active", "ts_created", "ts_updated", "url"]
38
+ __properties: ClassVar[List[str]] = ["client_id", "customer_environment", "error", "id", "is_active", "ts_created", "ts_updated", "url"]
39
39
 
40
40
  model_config = ConfigDict(
41
41
  populate_by_name=True,
@@ -95,7 +95,7 @@ class ClientClientUrlUpsertResponse(BaseModel):
95
95
 
96
96
  _obj = cls.model_validate({
97
97
  "client_id": obj.get("client_id"),
98
- "environment": obj.get("environment"),
98
+ "customer_environment": obj.get("customer_environment"),
99
99
  "error": obj.get("error"),
100
100
  "id": obj.get("id"),
101
101
  "is_active": obj.get("is_active"),
@@ -0,0 +1,107 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Neurograph Core
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class ClientOrganizationBrand(BaseModel):
26
+ """
27
+ ClientOrganizationBrand
28
+ """ # noqa: E501
29
+ background_img_url: Optional[StrictStr] = None
30
+ color1: Optional[StrictStr] = None
31
+ color2: Optional[StrictStr] = None
32
+ color3: Optional[StrictStr] = None
33
+ color4: Optional[StrictStr] = None
34
+ color5: Optional[StrictStr] = None
35
+ id: Optional[StrictStr] = None
36
+ logo_img_url: Optional[StrictStr] = None
37
+ primary_color: Optional[StrictStr] = None
38
+ secondary_color: Optional[StrictStr] = None
39
+ tertiary_color: Optional[StrictStr] = None
40
+ __properties: ClassVar[List[str]] = ["background_img_url", "color1", "color2", "color3", "color4", "color5", "id", "logo_img_url", "primary_color", "secondary_color", "tertiary_color"]
41
+
42
+ model_config = ConfigDict(
43
+ populate_by_name=True,
44
+ validate_assignment=True,
45
+ protected_namespaces=(),
46
+ )
47
+
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.model_dump(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Returns the JSON representation of the model using alias"""
55
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
56
+ return json.dumps(self.to_dict())
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> Optional[Self]:
60
+ """Create an instance of ClientOrganizationBrand from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ """Return the dictionary representation of the model using alias.
65
+
66
+ This has the following differences from calling pydantic's
67
+ `self.model_dump(by_alias=True)`:
68
+
69
+ * `None` is only added to the output dict for nullable fields that
70
+ were set at model initialization. Other fields with value `None`
71
+ are ignored.
72
+ """
73
+ excluded_fields: Set[str] = set([
74
+ ])
75
+
76
+ _dict = self.model_dump(
77
+ by_alias=True,
78
+ exclude=excluded_fields,
79
+ exclude_none=True,
80
+ )
81
+ return _dict
82
+
83
+ @classmethod
84
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
+ """Create an instance of ClientOrganizationBrand from a dict"""
86
+ if obj is None:
87
+ return None
88
+
89
+ if not isinstance(obj, dict):
90
+ return cls.model_validate(obj)
91
+
92
+ _obj = cls.model_validate({
93
+ "background_img_url": obj.get("background_img_url"),
94
+ "color1": obj.get("color1"),
95
+ "color2": obj.get("color2"),
96
+ "color3": obj.get("color3"),
97
+ "color4": obj.get("color4"),
98
+ "color5": obj.get("color5"),
99
+ "id": obj.get("id"),
100
+ "logo_img_url": obj.get("logo_img_url"),
101
+ "primary_color": obj.get("primary_color"),
102
+ "secondary_color": obj.get("secondary_color"),
103
+ "tertiary_color": obj.get("tertiary_color")
104
+ })
105
+ return _obj
106
+
107
+