Repository navigation
chore(generation): regenerate SDK for upstream stable/8.10 spec drift - #481
Merged
Merged
Conversation
Regenerate the SDK from upstream camunda/camunda stable/8.10, which picked up one additive spec change since the last committed bundle: - 18c64ec13aa: PermissionTypeEnum gains ANSWER and ResourceTypeEnum gains PROBE. The new members also appear on the inlined authorization enums (permission types item and resource type of the id- and property-based requests, filter, search filter and result). No operations were added or removed.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the SDK authorization and specification updates.
No open issues 🎉
What changed in this PR
Updates the generated Python SDK for upstream stable/8.10 authorization changes. Existing enum members remain unchanged, and no operations are added.
Changes:
- Add
PROBEandANSWERacross shared and inline authorization enums and matching type stubs. - Refresh bundled specifications, resource-permission mappings, and spec hashes.
- Update the upstream authentication schema snapshot with anonymous-user information and nullable usernames.
| File | Description |
|---|---|
stubs/camunda_orchestration_sdk/models/resource_type_enum.pyi |
Add PROBE to the shared resource-type stub. |
stubs/camunda_orchestration_sdk/models/permission_type_enum.pyi |
Add ANSWER to the shared permission stub. |
stubs/camunda_orchestration_sdk/models/authorization_search_query_filter_resource_type.pyi |
Add PROBE to the search-filter stub. |
stubs/camunda_orchestration_sdk/models/authorization_result_resource_type.pyi |
Add PROBE to the authorization-result stub. |
stubs/camunda_orchestration_sdk/models/authorization_property_based_request_resource_type.pyi |
Add PROBE to the property-based request stub. |
stubs/camunda_orchestration_sdk/models/authorization_property_based_request_permission_types_item.pyi |
Add ANSWER to the property-based permission stub. |
stubs/camunda_orchestration_sdk/models/authorization_id_based_request_resource_type.pyi |
Add PROBE to the ID-based request stub. |
stubs/camunda_orchestration_sdk/models/authorization_id_based_request_permission_types_item.pyi |
Add ANSWER to the ID-based permission stub. |
stubs/camunda_orchestration_sdk/models/authorization_filter_resource_type.pyi |
Add PROBE to the authorization-filter stub. |
stubs/camunda_orchestration_sdk/_spec_hash.pyi |
Synchronize the spec-hash stub. |
generated/camunda_orchestration_sdk/models/resource_type_enum.py |
Add PROBE to the shared resource enum. |
generated/camunda_orchestration_sdk/models/permission_type_enum.py |
Add ANSWER to the shared permission enum. |
generated/camunda_orchestration_sdk/models/authorization_search_query_filter_resource_type.py |
Support PROBE in authorization searches. |
generated/camunda_orchestration_sdk/models/authorization_result_resource_type.py |
Support PROBE in authorization results. |
generated/camunda_orchestration_sdk/models/authorization_property_based_request_resource_type.py |
Support PROBE in property-based requests. |
generated/camunda_orchestration_sdk/models/authorization_property_based_request_permission_types_item.py |
Support ANSWER in property-based requests. |
generated/camunda_orchestration_sdk/models/authorization_id_based_request_resource_type.py |
Support PROBE in ID-based requests. |
generated/camunda_orchestration_sdk/models/authorization_id_based_request_permission_types_item.py |
Support ANSWER in ID-based requests. |
generated/camunda_orchestration_sdk/models/authorization_filter_resource_type.py |
Support PROBE in authorization filters. |
generated/camunda_orchestration_sdk/_spec_hash.py |
Update the generated SDK’s spec hash. |
generated/bundled_spec.yaml |
Propagate enum additions into expanded schemas. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/resource-permissions.json |
Map PROBE to ANSWER and CREATE. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/authorizations.yaml |
Add upstream authorization enum values. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/authentication.yaml |
Add isAnonymous, nullable usernames, and related documentation. |
external-spec/bundled/spec-metadata.json |
Update the bundled spec hash. |
external-spec/bundled/rest-api.bundle.json |
Include PROBE and ANSWER in bundled enums. |
Review effort: Balanced
…ymous isAnonymous was added to CamundaUserResult in 8.10.10 and the spec marks it required. Servers on 8.10.0-8.10.9 omit it, so pop_required made get_authentication raise MissingRequiredFieldError against them. Add hook 0460, which pops a fixed list of such fields with a default before hook 1260 makes the remaining pops strict. An absent isAnonymous decodes as False: those servers never answer an anonymous caller. Every entry must match, so a rename upstream fails generation.
Regenerated output for the preceding hook 0460 change.
Generating from an older SPEC_REF (for example stable/8.10 on main) aborted hook 0460, because that spec has no isWaitStatesEnabled and the hook required every entry to match. Entries are now keyed by schema and applied only when the bundled spec requires the field; a required one must still match exactly. The generated-model test also asserts the committed bundle still requires each entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream camunda
stable/8.10added thePROBEresource type and theANSWERpermission (18c64ec13aa).API change:
PROBEandANSWERare added to the resource-type and permission-type enums (component and inline variants). Existing members are unchanged, so this is additive for Python callers. No new operations.Verification:
make generate-only(no further drift),ruff check,ty check(0 errors) and acceptance tests (1009 passed).Related issues