connector-py 4.181.0__py3-none-any.whl → 4.183.0__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.
connector/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.181.0"
1
+ __version__ = "4.183.0"
connector/oai/errors.py CHANGED
@@ -200,6 +200,10 @@ class HTTPHandler(ExceptionHandler):
200
200
  response.error.error_code = ErrorCode.RATE_LIMIT
201
201
  case 502:
202
202
  response.error.error_code = ErrorCode.BAD_GATEWAY
203
+ case 503:
204
+ response.error.error_code = ErrorCode.BAD_GATEWAY
205
+ case 504:
206
+ response.error.error_code = ErrorCode.BAD_GATEWAY
203
207
  case _:
204
208
  response.error.error_code = ErrorCode.API_ERROR
205
209
 
@@ -789,7 +789,10 @@ class InfoModule(BaseIntegrationModule):
789
789
  "x-resource-types": [
790
790
  resource_type.model_dump() for resource_type in resource_types
791
791
  ],
792
- "x-categories": [category.value for category in app.description_data.categories],
792
+ "x-categories": {
793
+ "type": "enum",
794
+ "enum": [category.value for category in app.description_data.categories],
795
+ },
793
796
  "x-oauth-settings": {},
794
797
  "x-capabilities": [],
795
798
  "x-multi-credential": False,
@@ -6599,13 +6599,8 @@ components:
6599
6599
  - type_id: resource
6600
6600
  type_label: Resource
6601
6601
  x-categories:
6602
- type: array
6603
- items:
6604
- $ref: '#/components/schemas/AppCategory'
6605
- example:
6606
- - DEVELOPERS
6607
- - COLLABORATION
6608
- - IT_AND_SECURITY
6602
+ type: object
6603
+ additionalProperties: {}
6609
6604
  x-oauth-settings:
6610
6605
  type: object
6611
6606
  additionalProperties: {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: connector-py
3
- Version: 4.181.0
3
+ Version: 4.183.0
4
4
  Summary: An Abstract Tool to Perform Actions on Integrations.
5
5
  Author-email: teamlumos <security@lumos.com>
6
6
  License-Expression: Apache-2.0
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE.txt
18
- Requires-Dist: connector-sdk-types==0.36.0
18
+ Requires-Dist: connector-sdk-types==0.37.0
19
19
  Requires-Dist: gql[httpx]
20
20
  Requires-Dist: httpx>=0.27.0
21
21
  Requires-Dist: msgpack>=1
@@ -1,4 +1,4 @@
1
- connector/__about__.py,sha256=xLzagTPz6HRhUidqvSVmMPy8ATGLe1gDR7H3AaIl0JY,24
1
+ connector/__about__.py,sha256=ifYVilUeAfeoauH3E-7Wq00SLs9yLkOfkc4kWVLjCCg,24
2
2
  connector/__init__.py,sha256=QUNbfyRmjFwfO296tG-H_d8FFCqcNc3kAu1QfYGtP38,84
3
3
  connector/auth_helper.py,sha256=0HBFYwd0ixOL46blGvb1ot0a8ZOmNutU13Q95JGN04Q,637
4
4
  connector/ca_certs.py,sha256=h7l8FvUsGXAvQC73BA2x5HJccxC5ooIOOww0mTSEerw,603
@@ -202,7 +202,7 @@ connector/handlers/lumos_log_handler.py,sha256=KHy7KyZV0PisZqvOaX3V1bVDqNfaJi0yv
202
202
  connector/oai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
203
203
  connector/oai/base_clients.py,sha256=Wj15CPtYcWwtFe2tW_-apSvokgXGWqNXNnL7VVHTnPg,15039
204
204
  connector/oai/capability.py,sha256=01itvXellF2GyxEdSkdlXP6JOEhQsTF5TBiWORfEG94,33253
205
- connector/oai/errors.py,sha256=gZFUcUzTYkQ_KE3LxQHcRHm2vv-0VmkMQTxOu0R2O3w,9295
205
+ connector/oai/errors.py,sha256=i84p1Hn1JFl6cHzEkOMEu_JucD5pC9cT8TMTJd9x6ag,9471
206
206
  connector/oai/fingerprint.py,sha256=AmHpybwoVrhrrNosLxVfRl_cFiKhCuSG-8poqRfVs5c,103
207
207
  connector/oai/integration.py,sha256=QSdVCsX4_nCdhmmBohHsfNQSTvExLwD89sDxBxnOkQw,19729
208
208
  connector/oai/capabilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -212,7 +212,7 @@ connector/oai/capabilities/factory.py,sha256=omYnjTnsQxp-W_CqiMrmtOkVXFU5pOV_8XM
212
212
  connector/oai/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  connector/oai/modules/base_module.py,sha256=tk-agsp40oWTj6JWmYxp0U3imnI1-amteJXtsR0wYeE,1070
214
214
  connector/oai/modules/credentials_module.py,sha256=AtS8cXkVW3PgizrLZfOlXckZx6PcBKnRKb_PD5Z_wsI,11244
215
- connector/oai/modules/info_module.py,sha256=IAQf6dfgERwiVOFEgy4YTIMucID9UI7Enxyy-cAflrk,44434
215
+ connector/oai/modules/info_module.py,sha256=9mptfyEUJbsQM03YrFbC-XShDlZAvY4cacn18LqU1CA,44519
216
216
  connector/oai/modules/oauth_module.py,sha256=YRhJOJzw0MLszB0uFq88A64ZT6jmluEcrRAD-QgwpnU,17864
217
217
  connector/oai/modules/oauth_module_types.py,sha256=RvUahu4wYpJ_9EtCE1ZIQbHY2-Ok8zjIqPEyid8XoPw,398
218
218
  connector/observability/__init__.py,sha256=xfKNc2Ns42QIDeW5vRy2Y7tmQpUxh-21sxqbJjJCS5Y,61
@@ -257,7 +257,7 @@ connector/scaffold/templates/tests/test_write_capabilities/test_delete_account_c
257
257
  connector/scaffold/templates/tests/test_write_capabilities/test_unassign_entitlement_cases.py,sha256=rhHAssvwmgQQuY5AmtyhScAZeHLxWMpq1ugB_mN9laI,3136
258
258
  connector/serializers/__init__.py,sha256=TebqapwALjjzUbnpaN7RSs3YPZrIvCY-MPvX0jBkMUw,293
259
259
  connector/serializers/request.py,sha256=TebqapwALjjzUbnpaN7RSs3YPZrIvCY-MPvX0jBkMUw,293
260
- connector/spec/openapi.yaml,sha256=5z4fTu5rkmNhdyotkNmD4pm0aWjtkcfHtCpcpjin2iw,279480
260
+ connector/spec/openapi.yaml,sha256=lFCDjwZFPdIZmlb0yVX3FQLkr2m3pDpM8CGPUsKyems,279344
261
261
  connector/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
262
262
  connector/tests/coverage_check.py,sha256=CIq_RfUlu5MSIlxIyACf8qDFVpK92x19vp37vBL9BiI,318
263
263
  connector/tests/gather_cases.py,sha256=LLM0It8NPIOKt_ruoPc1xzJvAY1lZxzh8eTqFnuXSvc,4601
@@ -278,7 +278,7 @@ connector/utils/sync_to_async.py,sha256=sL7p_gJT5fQXbwXL1OIe93rlxWlnvmdK_espSNbQ
278
278
  connector/utils/test.py,sha256=nvGSsVCCnellamh8nwZK6jLDp1n_irw9NaDPTNpJ9E4,656
279
279
  connector/utils/test_case_insensitive_dict.py,sha256=VIUnWVKOh1hrXHk0kllMtaqh-9h6apahPHt9U7oBGp0,356
280
280
  connector/utils/validation_utils.py,sha256=ih-EFW-ei-fKil0U2n0y4GePuA-Jz76XryExFBppHLk,1352
281
- connector_py-4.181.0.dist-info/licenses/LICENSE.txt,sha256=5GN09YoDG6soQSs8dUL08aXcF-QA17TtDOoixKVPzsc,11346
281
+ connector_py-4.183.0.dist-info/licenses/LICENSE.txt,sha256=5GN09YoDG6soQSs8dUL08aXcF-QA17TtDOoixKVPzsc,11346
282
282
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  tests/test_cli.py,sha256=6sk1fmfXDTFbdVAKDCKRSo2hslrg_bywjo3rbYJFjPs,8937
284
284
  tests/test_compile.py,sha256=NkPUC7GGvO3dGAgIIz5o0z5Rr5qDeQLtH_IJBlE1wHE,5689
@@ -300,7 +300,7 @@ tests/oai/test_exception_handler.py,sha256=hM7zyGK7NPl1bNwbyn3e6FUtk4lTVgcn_XT69
300
300
  tests/oai/test_exception_handler_handled_cases.py,sha256=RZQruRkVl-E5v4TR1kooz6slTQgoDzbZDENvY-Rj0Nk,20570
301
301
  tests/oai/test_get_capability_annotations_cases.py,sha256=m5S6IfeLW00gI2XKSH45Zh6zbzIb7g5fV2HEhNymoy8,3499
302
302
  tests/oai/test_info_cases.py,sha256=MSs26_raGgKBIaLUkKBTfEMuBopzHQE8HU_w5UBAtLo,64660
303
- tests/oai/test_info_module.py,sha256=QV7zWeAzAlsVDYJq9Z-NHUqMX8vek73rBunyfzQp8go,94090
303
+ tests/oai/test_info_module.py,sha256=_CGk45gaNefgoQBXNJULwLMt9N38LMWh5gqlJtAJnkY,94124
304
304
  tests/oai/test_integration.py,sha256=jh4yrhInCAJoSva2xuANFBDb_6U_12mO5A7iEe9mXHQ,5372
305
305
  tests/oai/test_modules.py,sha256=09XCtLdeDu2hzawYBTPOoduTk0u9xiDGZGyL4ALkIJU,1514
306
306
  tests/oai/test_modules_cases.py,sha256=6V-yZO5dtiIPF5M5dFuJOdNMpQoaAwmDAPfmsCzVxxM,2156
@@ -325,8 +325,8 @@ tests/utils/test_pagination.py,sha256=_VCeSTmbcqzMSESNuM9ta3-zxDempIJGR_CkcKRjCO
325
325
  tests/utils/test_pagination_decode_cases.py,sha256=Ogtprql_vwTWkHV_JceemNtJQMKNekDWAa1yj09uPnw,221
326
326
  tests/utils/test_pagination_duality_cases.py,sha256=Z_mI5PNbeKyTzdxdabfVDvOrCcbCgH8EuulVmb4Dcco,928
327
327
  tests/utils/test_pagination_encode_cases.py,sha256=XsJ5PvlHT4stu3x6YF3-WADMk8ftfbDGOmbcof2_tiE,635
328
- connector_py-4.181.0.dist-info/METADATA,sha256=UNsIyc1vo-fk9z3cD2bqqNPxso2fLbcvbRQLsYxBi8s,18641
329
- connector_py-4.181.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
330
- connector_py-4.181.0.dist-info/entry_points.txt,sha256=D7nFwDmXoeHYpRVov7TrlbOtZqe9q1dOdkUY0GK0AEg,50
331
- connector_py-4.181.0.dist-info/top_level.txt,sha256=a1lmLxeM8B6LFAD0kkCE1ZAK3rJP9Uv0Jd1fHSskX-k,16
332
- connector_py-4.181.0.dist-info/RECORD,,
328
+ connector_py-4.183.0.dist-info/METADATA,sha256=C0D7ShRUAQ6KUBGjgwW25NjwgY4Pm9sMjQdIOPPt6ek,18641
329
+ connector_py-4.183.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
330
+ connector_py-4.183.0.dist-info/entry_points.txt,sha256=D7nFwDmXoeHYpRVov7TrlbOtZqe9q1dOdkUY0GK0AEg,50
331
+ connector_py-4.183.0.dist-info/top_level.txt,sha256=a1lmLxeM8B6LFAD0kkCE1ZAK3rJP9Uv0Jd1fHSskX-k,16
332
+ connector_py-4.183.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.1)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -85,8 +85,11 @@ async def test_app_info_capability_returns_app_info():
85
85
  assert oas["info"]["version"] == "0.1.0"
86
86
  assert oas["info"]["description"] == "Test description"
87
87
  assert oas["info"]["x-app-vendor-domain"] == "test.com"
88
- # x-categories is now a list of category values, not an enum object
89
- assert oas["info"]["x-categories"] == [AppCategory.DEVELOPERS.value]
88
+ # x-categories is a record with type and enum fields
89
+ assert oas["info"]["x-categories"] == {
90
+ "type": "enum",
91
+ "enum": [AppCategory.DEVELOPERS.value],
92
+ }
90
93
  # EntitlementType includes requirements field (None by default)
91
94
  entitlement_type = oas["info"]["x-entitlement-types"][0]
92
95
  assert entitlement_type["type_id"] == "test"