@platformatic/kafka 2.8.0 → 2.9.0-alpha.1
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.
- package/README.md +1 -0
- package/dist/apis/admin/alter-client-quotas-v0.d.ts +40 -0
- package/dist/apis/admin/alter-client-quotas-v0.js +60 -0
- package/dist/apis/admin/alter-client-quotas-v1.d.ts +6 -5
- package/dist/apis/admin/alter-client-quotas-v1.js +3 -1
- package/dist/apis/admin/alter-configs-v0.d.ts +7 -0
- package/dist/apis/admin/alter-configs-v0.js +10 -0
- package/dist/apis/admin/alter-configs-v1.d.ts +2 -0
- package/dist/apis/admin/alter-configs-v1.js +5 -0
- package/dist/apis/admin/alter-configs-v2.js +3 -1
- package/dist/apis/admin/alter-partition-reassignments-v0.d.ts +3 -2
- package/dist/apis/admin/alter-partition-reassignments-v0.js +4 -1
- package/dist/apis/admin/alter-partition-reassignments-v1.d.ts +6 -4
- package/dist/apis/admin/alter-partition-reassignments-v1.js +7 -3
- package/dist/apis/admin/alter-partition-v0.d.ts +40 -0
- package/dist/apis/admin/alter-partition-v0.js +81 -0
- package/dist/apis/admin/alter-partition-v1.d.ts +37 -0
- package/dist/apis/admin/alter-partition-v1.js +84 -0
- package/dist/apis/admin/alter-partition-v2.d.ts +36 -0
- package/dist/apis/admin/alter-partition-v2.js +83 -0
- package/dist/apis/admin/alter-partition-v3.d.ts +6 -35
- package/dist/apis/admin/alter-partition-v3.js +10 -8
- package/dist/apis/admin/alter-replica-log-dirs-v0.d.ts +23 -0
- package/dist/apis/admin/alter-replica-log-dirs-v0.js +29 -0
- package/dist/apis/admin/alter-replica-log-dirs-v1.d.ts +4 -0
- package/dist/apis/admin/alter-replica-log-dirs-v1.js +8 -0
- package/dist/apis/admin/alter-replica-log-dirs-v2.d.ts +1 -1
- package/dist/apis/admin/alter-replica-log-dirs-v2.js +1 -0
- package/dist/apis/admin/alter-user-scram-credentials-v0.js +1 -1
- package/dist/apis/admin/client-quotas.d.ts +2 -0
- package/dist/apis/admin/client-quotas.js +1 -0
- package/dist/apis/admin/consumer-group-describe-v0.d.ts +2 -1
- package/dist/apis/admin/consumer-group-describe-v0.js +51 -30
- package/dist/apis/admin/create-acls-v0.d.ts +16 -0
- package/dist/apis/admin/create-acls-v0.js +10 -0
- package/dist/apis/admin/create-acls-v1.d.ts +15 -0
- package/dist/apis/admin/create-acls-v1.js +10 -0
- package/dist/apis/admin/create-acls-v2.js +1 -0
- package/dist/apis/admin/create-acls-v3.js +1 -0
- package/dist/apis/admin/create-delegation-token-v0.d.ts +24 -0
- package/dist/apis/admin/create-delegation-token-v0.js +47 -0
- package/dist/apis/admin/create-delegation-token-v1.d.ts +4 -0
- package/dist/apis/admin/create-delegation-token-v1.js +8 -0
- package/dist/apis/admin/create-delegation-token-v2.d.ts +9 -0
- package/dist/apis/admin/create-delegation-token-v2.js +30 -0
- package/dist/apis/admin/create-delegation-token-v3.js +1 -0
- package/dist/apis/admin/create-partitions-v0.d.ts +2 -0
- package/dist/apis/admin/create-partitions-v0.js +5 -0
- package/dist/apis/admin/create-partitions-v1.d.ts +2 -2
- package/dist/apis/admin/create-partitions-v1.js +5 -5
- package/dist/apis/admin/create-partitions-v2.d.ts +2 -2
- package/dist/apis/admin/create-partitions-v2.js +1 -0
- package/dist/apis/admin/create-partitions-v3.js +1 -0
- package/dist/apis/admin/create-topics-v0.d.ts +42 -0
- package/dist/apis/admin/create-topics-v0.js +63 -0
- package/dist/apis/admin/create-topics-v1.d.ts +42 -0
- package/dist/apis/admin/create-topics-v1.js +65 -0
- package/dist/apis/admin/create-topics-v2.d.ts +42 -0
- package/dist/apis/admin/create-topics-v2.js +66 -0
- package/dist/apis/admin/create-topics-v3.d.ts +42 -0
- package/dist/apis/admin/create-topics-v3.js +66 -0
- package/dist/apis/admin/create-topics-v4.d.ts +42 -0
- package/dist/apis/admin/create-topics-v4.js +66 -0
- package/dist/apis/admin/create-topics-v5.d.ts +42 -0
- package/dist/apis/admin/create-topics-v5.js +88 -0
- package/dist/apis/admin/create-topics-v6.d.ts +42 -0
- package/dist/apis/admin/create-topics-v6.js +88 -0
- package/dist/apis/admin/create-topics-v7.d.ts +2 -1
- package/dist/apis/admin/create-topics-v7.js +19 -5
- package/dist/apis/admin/delete-acls-v0.d.ts +28 -0
- package/dist/apis/admin/delete-acls-v0.js +12 -0
- package/dist/apis/admin/delete-acls-v1.d.ts +27 -0
- package/dist/apis/admin/delete-acls-v1.js +11 -0
- package/dist/apis/admin/delete-acls-v2.js +5 -2
- package/dist/apis/admin/delete-acls-v3.js +1 -0
- package/dist/apis/admin/delete-groups-v0.d.ts +14 -0
- package/dist/apis/admin/delete-groups-v0.js +38 -0
- package/dist/apis/admin/delete-groups-v1.d.ts +14 -0
- package/dist/apis/admin/delete-groups-v1.js +38 -0
- package/dist/apis/admin/delete-groups-v2.js +1 -0
- package/dist/apis/admin/delete-records-v0.d.ts +27 -0
- package/dist/apis/admin/delete-records-v0.js +50 -0
- package/dist/apis/admin/delete-records-v1.d.ts +27 -0
- package/dist/apis/admin/delete-records-v1.js +50 -0
- package/dist/apis/admin/delete-records-v2.js +1 -0
- package/dist/apis/admin/delete-topics-v0.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v0.js +39 -0
- package/dist/apis/admin/delete-topics-v1.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v1.js +37 -0
- package/dist/apis/admin/delete-topics-v2.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v2.js +37 -0
- package/dist/apis/admin/delete-topics-v3.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v3.js +37 -0
- package/dist/apis/admin/delete-topics-v4.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v4.js +41 -0
- package/dist/apis/admin/delete-topics-v5.d.ts +19 -0
- package/dist/apis/admin/delete-topics-v5.js +45 -0
- package/dist/apis/admin/delete-topics-v6.d.ts +1 -1
- package/dist/apis/admin/delete-topics-v6.js +5 -1
- package/dist/apis/admin/describe-acls-v0.d.ts +21 -0
- package/dist/apis/admin/describe-acls-v0.js +19 -0
- package/dist/apis/admin/describe-acls-v1.d.ts +21 -0
- package/dist/apis/admin/describe-acls-v1.js +18 -0
- package/dist/apis/admin/describe-acls-v2.js +1 -0
- package/dist/apis/admin/describe-acls-v3.js +1 -0
- package/dist/apis/admin/describe-client-quotas-v0.d.ts +8 -7
- package/dist/apis/admin/describe-client-quotas-v0.js +28 -25
- package/dist/apis/admin/describe-client-quotas-v1.d.ts +9 -0
- package/dist/apis/admin/describe-client-quotas-v1.js +34 -0
- package/dist/apis/admin/describe-cluster-v0.d.ts +4 -3
- package/dist/apis/admin/describe-cluster-v0.js +3 -1
- package/dist/apis/admin/describe-cluster-v1.d.ts +4 -3
- package/dist/apis/admin/describe-cluster-v1.js +1 -0
- package/dist/apis/admin/describe-configs-v0.d.ts +41 -0
- package/dist/apis/admin/describe-configs-v0.js +72 -0
- package/dist/apis/admin/describe-configs-v1.d.ts +39 -0
- package/dist/apis/admin/describe-configs-v1.js +81 -0
- package/dist/apis/admin/describe-configs-v2.d.ts +9 -8
- package/dist/apis/admin/describe-configs-v2.js +10 -14
- package/dist/apis/admin/describe-configs-v3.d.ts +9 -8
- package/dist/apis/admin/describe-configs-v3.js +7 -7
- package/dist/apis/admin/describe-configs-v4.d.ts +2 -2
- package/dist/apis/admin/describe-configs-v4.js +14 -7
- package/dist/apis/admin/describe-delegation-token-v0.d.ts +31 -0
- package/dist/apis/admin/describe-delegation-token-v0.js +51 -0
- package/dist/apis/admin/describe-delegation-token-v1.d.ts +4 -0
- package/dist/apis/admin/describe-delegation-token-v1.js +8 -0
- package/dist/apis/admin/describe-delegation-token-v2.d.ts +8 -0
- package/dist/apis/admin/describe-delegation-token-v2.js +32 -0
- package/dist/apis/admin/describe-delegation-token-v3.d.ts +4 -27
- package/dist/apis/admin/describe-delegation-token-v3.js +1 -0
- package/dist/apis/admin/describe-groups-v0.d.ts +28 -0
- package/dist/apis/admin/describe-groups-v0.js +60 -0
- package/dist/apis/admin/describe-groups-v1.d.ts +28 -0
- package/dist/apis/admin/describe-groups-v1.js +62 -0
- package/dist/apis/admin/describe-groups-v2.d.ts +28 -0
- package/dist/apis/admin/describe-groups-v2.js +62 -0
- package/dist/apis/admin/describe-groups-v3.d.ts +28 -0
- package/dist/apis/admin/describe-groups-v3.js +64 -0
- package/dist/apis/admin/describe-groups-v4.d.ts +28 -0
- package/dist/apis/admin/describe-groups-v4.js +64 -0
- package/dist/apis/admin/describe-groups-v5.js +1 -0
- package/dist/apis/admin/describe-log-dirs-v0.d.ts +30 -0
- package/dist/apis/admin/describe-log-dirs-v0.js +39 -0
- package/dist/apis/admin/describe-log-dirs-v1.d.ts +4 -0
- package/dist/apis/admin/describe-log-dirs-v1.js +8 -0
- package/dist/apis/admin/describe-log-dirs-v2.d.ts +3 -2
- package/dist/apis/admin/describe-log-dirs-v2.js +9 -5
- package/dist/apis/admin/describe-log-dirs-v3.d.ts +3 -2
- package/dist/apis/admin/describe-log-dirs-v3.js +3 -2
- package/dist/apis/admin/describe-log-dirs-v4.d.ts +3 -2
- package/dist/apis/admin/describe-log-dirs-v4.js +1 -0
- package/dist/apis/admin/describe-producers-v0.js +1 -0
- package/dist/apis/admin/describe-quorum-v0.d.ts +13 -0
- package/dist/apis/admin/describe-quorum-v0.js +85 -0
- package/dist/apis/admin/describe-quorum-v1.d.ts +13 -0
- package/dist/apis/admin/describe-quorum-v1.js +84 -0
- package/dist/apis/admin/describe-quorum-v2.js +1 -0
- package/dist/apis/admin/describe-topic-partitions-v0.d.ts +3 -3
- package/dist/apis/admin/describe-topic-partitions-v0.js +5 -2
- package/dist/apis/admin/describe-transactions-v0.js +1 -0
- package/dist/apis/admin/describe-user-scram-credentials-v0.d.ts +4 -3
- package/dist/apis/admin/describe-user-scram-credentials-v0.js +1 -0
- package/dist/apis/admin/envelope-v0.js +1 -0
- package/dist/apis/admin/expire-delegation-token-v0.d.ts +11 -0
- package/dist/apis/admin/expire-delegation-token-v0.js +29 -0
- package/dist/apis/admin/expire-delegation-token-v1.d.ts +4 -0
- package/dist/apis/admin/expire-delegation-token-v1.js +8 -0
- package/dist/apis/admin/expire-delegation-token-v2.js +1 -0
- package/dist/apis/admin/incremental-alter-configs-v0.d.ts +26 -0
- package/dist/apis/admin/incremental-alter-configs-v0.js +10 -0
- package/dist/apis/admin/incremental-alter-configs-v1.js +1 -0
- package/dist/apis/admin/index.d.ts +60 -0
- package/dist/apis/admin/index.js +60 -0
- package/dist/apis/admin/list-groups-v0.d.ts +18 -0
- package/dist/apis/admin/list-groups-v0.js +30 -0
- package/dist/apis/admin/list-groups-v1.d.ts +18 -0
- package/dist/apis/admin/list-groups-v1.js +37 -0
- package/dist/apis/admin/list-groups-v2.d.ts +18 -0
- package/dist/apis/admin/list-groups-v2.js +37 -0
- package/dist/apis/admin/list-groups-v3.d.ts +18 -0
- package/dist/apis/admin/list-groups-v3.js +38 -0
- package/dist/apis/admin/list-groups-v4.d.ts +4 -3
- package/dist/apis/admin/list-groups-v4.js +15 -4
- package/dist/apis/admin/list-groups-v5.d.ts +3 -3
- package/dist/apis/admin/list-groups-v5.js +25 -3
- package/dist/apis/admin/list-partition-reassignments-v0.d.ts +3 -3
- package/dist/apis/admin/list-partition-reassignments-v0.js +1 -0
- package/dist/apis/admin/list-transactions-v0.d.ts +5 -3
- package/dist/apis/admin/list-transactions-v0.js +23 -1
- package/dist/apis/admin/list-transactions-v1.d.ts +5 -3
- package/dist/apis/admin/list-transactions-v1.js +15 -1
- package/dist/apis/admin/list-transactions-v2.d.ts +5 -4
- package/dist/apis/admin/list-transactions-v2.js +17 -5
- package/dist/apis/admin/renew-delegation-token-v0.d.ts +11 -0
- package/dist/apis/admin/renew-delegation-token-v0.js +29 -0
- package/dist/apis/admin/renew-delegation-token-v1.d.ts +4 -0
- package/dist/apis/admin/renew-delegation-token-v1.js +8 -0
- package/dist/apis/admin/renew-delegation-token-v2.js +1 -0
- package/dist/apis/admin/unregister-broker-v0.js +1 -0
- package/dist/apis/admin/update-features-v0.d.ts +24 -0
- package/dist/apis/admin/update-features-v0.js +59 -0
- package/dist/apis/admin/update-features-v1.d.ts +2 -1
- package/dist/apis/admin/update-features-v1.js +1 -0
- package/dist/apis/consumer/consumer-group-heartbeat-v0.d.ts +2 -2
- package/dist/apis/consumer/consumer-group-heartbeat-v0.js +17 -10
- package/dist/apis/consumer/consumer-group-heartbeat-v1.d.ts +2 -2
- package/dist/apis/consumer/consumer-group-heartbeat-v1.js +17 -10
- package/dist/apis/consumer/fetch-v10.d.ts +51 -0
- package/dist/apis/consumer/fetch-v10.js +122 -0
- package/dist/apis/consumer/fetch-v11.d.ts +51 -0
- package/dist/apis/consumer/fetch-v11.js +125 -0
- package/dist/apis/consumer/fetch-v12.d.ts +20 -4
- package/dist/apis/consumer/fetch-v12.js +29 -12
- package/dist/apis/consumer/fetch-v13.d.ts +20 -4
- package/dist/apis/consumer/fetch-v13.js +25 -7
- package/dist/apis/consumer/fetch-v14.d.ts +20 -4
- package/dist/apis/consumer/fetch-v14.js +25 -7
- package/dist/apis/consumer/fetch-v15.d.ts +20 -4
- package/dist/apis/consumer/fetch-v15.js +25 -7
- package/dist/apis/consumer/fetch-v16.d.ts +27 -4
- package/dist/apis/consumer/fetch-v16.js +36 -8
- package/dist/apis/consumer/fetch-v17.d.ts +28 -4
- package/dist/apis/consumer/fetch-v17.js +43 -9
- package/dist/apis/consumer/fetch-v4.d.ts +51 -0
- package/dist/apis/consumer/fetch-v4.js +87 -0
- package/dist/apis/consumer/fetch-v5.d.ts +51 -0
- package/dist/apis/consumer/fetch-v5.js +89 -0
- package/dist/apis/consumer/fetch-v6.d.ts +51 -0
- package/dist/apis/consumer/fetch-v6.js +99 -0
- package/dist/apis/consumer/fetch-v7.d.ts +51 -0
- package/dist/apis/consumer/fetch-v7.js +117 -0
- package/dist/apis/consumer/fetch-v8.d.ts +51 -0
- package/dist/apis/consumer/fetch-v8.js +117 -0
- package/dist/apis/consumer/fetch-v9.d.ts +51 -0
- package/dist/apis/consumer/fetch-v9.js +122 -0
- package/dist/apis/consumer/heartbeat-v0.d.ts +11 -0
- package/dist/apis/consumer/heartbeat-v0.js +24 -0
- package/dist/apis/consumer/heartbeat-v1.d.ts +11 -0
- package/dist/apis/consumer/heartbeat-v1.js +31 -0
- package/dist/apis/consumer/heartbeat-v2.d.ts +11 -0
- package/dist/apis/consumer/heartbeat-v2.js +31 -0
- package/dist/apis/consumer/heartbeat-v3.d.ts +11 -0
- package/dist/apis/consumer/heartbeat-v3.js +33 -0
- package/dist/apis/consumer/heartbeat-v4.js +1 -0
- package/dist/apis/consumer/index.d.ts +51 -0
- package/dist/apis/consumer/index.js +51 -0
- package/dist/apis/consumer/join-group-v0.d.ts +27 -0
- package/dist/apis/consumer/join-group-v0.js +51 -0
- package/dist/apis/consumer/join-group-v1.d.ts +8 -0
- package/dist/apis/consumer/join-group-v1.js +43 -0
- package/dist/apis/consumer/join-group-v2.d.ts +27 -0
- package/dist/apis/consumer/join-group-v2.js +60 -0
- package/dist/apis/consumer/join-group-v3.d.ts +27 -0
- package/dist/apis/consumer/join-group-v3.js +60 -0
- package/dist/apis/consumer/join-group-v4.d.ts +27 -0
- package/dist/apis/consumer/join-group-v4.js +60 -0
- package/dist/apis/consumer/join-group-v5.d.ts +27 -0
- package/dist/apis/consumer/join-group-v5.js +63 -0
- package/dist/apis/consumer/join-group-v6.d.ts +2 -2
- package/dist/apis/consumer/join-group-v6.js +10 -7
- package/dist/apis/consumer/join-group-v7.d.ts +2 -2
- package/dist/apis/consumer/join-group-v7.js +5 -3
- package/dist/apis/consumer/join-group-v8.d.ts +2 -2
- package/dist/apis/consumer/join-group-v8.js +5 -3
- package/dist/apis/consumer/join-group-v9.d.ts +2 -2
- package/dist/apis/consumer/join-group-v9.js +5 -3
- package/dist/apis/consumer/leave-group-v0.d.ts +22 -0
- package/dist/apis/consumer/leave-group-v0.js +23 -0
- package/dist/apis/consumer/leave-group-v1.d.ts +22 -0
- package/dist/apis/consumer/leave-group-v1.js +30 -0
- package/dist/apis/consumer/leave-group-v2.d.ts +22 -0
- package/dist/apis/consumer/leave-group-v2.js +30 -0
- package/dist/apis/consumer/leave-group-v3.d.ts +22 -0
- package/dist/apis/consumer/leave-group-v3.js +54 -0
- package/dist/apis/consumer/leave-group-v4.d.ts +1 -1
- package/dist/apis/consumer/leave-group-v4.js +4 -2
- package/dist/apis/consumer/leave-group-v5.d.ts +1 -1
- package/dist/apis/consumer/leave-group-v5.js +4 -2
- package/dist/apis/consumer/list-offsets-v0.d.ts +30 -0
- package/dist/apis/consumer/list-offsets-v0.js +50 -0
- package/dist/apis/consumer/list-offsets-v1.d.ts +12 -0
- package/dist/apis/consumer/list-offsets-v1.js +52 -0
- package/dist/apis/consumer/list-offsets-v2.d.ts +30 -0
- package/dist/apis/consumer/list-offsets-v2.js +64 -0
- package/dist/apis/consumer/list-offsets-v3.d.ts +30 -0
- package/dist/apis/consumer/list-offsets-v3.js +64 -0
- package/dist/apis/consumer/list-offsets-v4.d.ts +30 -0
- package/dist/apis/consumer/list-offsets-v4.js +67 -0
- package/dist/apis/consumer/list-offsets-v6.js +6 -3
- package/dist/apis/consumer/list-offsets-v7.js +6 -3
- package/dist/apis/consumer/list-offsets-v8.js +6 -3
- package/dist/apis/consumer/list-offsets-v9.js +6 -3
- package/dist/apis/consumer/offset-commit-v0.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v0.js +52 -0
- package/dist/apis/consumer/offset-commit-v1.d.ts +7 -0
- package/dist/apis/consumer/offset-commit-v1.js +30 -0
- package/dist/apis/consumer/offset-commit-v2.d.ts +8 -0
- package/dist/apis/consumer/offset-commit-v2.js +31 -0
- package/dist/apis/consumer/offset-commit-v3.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v3.js +58 -0
- package/dist/apis/consumer/offset-commit-v4.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v4.js +58 -0
- package/dist/apis/consumer/offset-commit-v5.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v5.js +56 -0
- package/dist/apis/consumer/offset-commit-v6.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v6.js +60 -0
- package/dist/apis/consumer/offset-commit-v7.d.ts +29 -0
- package/dist/apis/consumer/offset-commit-v7.js +62 -0
- package/dist/apis/consumer/offset-commit-v8.d.ts +2 -2
- package/dist/apis/consumer/offset-commit-v8.js +6 -3
- package/dist/apis/consumer/offset-commit-v9.d.ts +2 -2
- package/dist/apis/consumer/offset-commit-v9.js +6 -3
- package/dist/apis/consumer/offset-fetch-v0.d.ts +40 -0
- package/dist/apis/consumer/offset-fetch-v0.js +62 -0
- package/dist/apis/consumer/offset-fetch-v1.d.ts +6 -0
- package/dist/apis/consumer/offset-fetch-v1.js +41 -0
- package/dist/apis/consumer/offset-fetch-v2.d.ts +7 -0
- package/dist/apis/consumer/offset-fetch-v2.js +48 -0
- package/dist/apis/consumer/offset-fetch-v3.d.ts +39 -0
- package/dist/apis/consumer/offset-fetch-v3.js +64 -0
- package/dist/apis/consumer/offset-fetch-v4.d.ts +39 -0
- package/dist/apis/consumer/offset-fetch-v4.js +64 -0
- package/dist/apis/consumer/offset-fetch-v5.d.ts +39 -0
- package/dist/apis/consumer/offset-fetch-v5.js +65 -0
- package/dist/apis/consumer/offset-fetch-v6.d.ts +39 -0
- package/dist/apis/consumer/offset-fetch-v6.js +68 -0
- package/dist/apis/consumer/offset-fetch-v7.d.ts +39 -0
- package/dist/apis/consumer/offset-fetch-v7.js +70 -0
- package/dist/apis/consumer/offset-fetch-v8.js +5 -2
- package/dist/apis/consumer/offset-fetch-v9.js +5 -2
- package/dist/apis/consumer/offset-for-leader-epoch-v0.d.ts +29 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v0.js +48 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v1.d.ts +29 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v1.js +54 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v2.d.ts +29 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v2.js +58 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v3.d.ts +29 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v3.js +59 -0
- package/dist/apis/consumer/offset-for-leader-epoch-v4.d.ts +1 -1
- package/dist/apis/consumer/offset-for-leader-epoch-v4.js +11 -8
- package/dist/apis/consumer/sync-group-v0.d.ts +18 -0
- package/dist/apis/consumer/sync-group-v0.js +38 -0
- package/dist/apis/consumer/sync-group-v1.d.ts +18 -0
- package/dist/apis/consumer/sync-group-v1.js +39 -0
- package/dist/apis/consumer/sync-group-v2.d.ts +18 -0
- package/dist/apis/consumer/sync-group-v2.js +39 -0
- package/dist/apis/consumer/sync-group-v3.d.ts +18 -0
- package/dist/apis/consumer/sync-group-v3.js +41 -0
- package/dist/apis/consumer/sync-group-v4.js +1 -0
- package/dist/apis/consumer/sync-group-v5.js +1 -0
- package/dist/apis/enumerations.d.ts +20 -5
- package/dist/apis/enumerations.js +57 -5
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/apis/metadata/api-versions-v0.d.ts +17 -0
- package/dist/apis/metadata/api-versions-v0.js +24 -0
- package/dist/apis/metadata/api-versions-v1.d.ts +17 -0
- package/dist/apis/metadata/api-versions-v1.js +39 -0
- package/dist/apis/metadata/api-versions-v2.d.ts +17 -0
- package/dist/apis/metadata/api-versions-v2.js +39 -0
- package/dist/apis/metadata/api-versions-v3.d.ts +16 -2
- package/dist/apis/metadata/api-versions-v3.js +35 -3
- package/dist/apis/metadata/api-versions-v4.d.ts +16 -2
- package/dist/apis/metadata/api-versions-v4.js +35 -3
- package/dist/apis/metadata/find-coordinator-v0.d.ts +18 -0
- package/dist/apis/metadata/find-coordinator-v0.js +24 -0
- package/dist/apis/metadata/find-coordinator-v1.d.ts +18 -0
- package/dist/apis/metadata/find-coordinator-v1.js +41 -0
- package/dist/apis/metadata/find-coordinator-v2.d.ts +18 -0
- package/dist/apis/metadata/find-coordinator-v2.js +41 -0
- package/dist/apis/metadata/find-coordinator-v3.d.ts +18 -0
- package/dist/apis/metadata/find-coordinator-v3.js +44 -0
- package/dist/apis/metadata/find-coordinator-v4.js +3 -1
- package/dist/apis/metadata/find-coordinator-v5.js +3 -1
- package/dist/apis/metadata/find-coordinator-v6.js +3 -1
- package/dist/apis/metadata/index.d.ts +16 -0
- package/dist/apis/metadata/index.js +16 -0
- package/dist/apis/metadata/metadata-v0.d.ts +38 -0
- package/dist/apis/metadata/metadata-v0.js +47 -0
- package/dist/apis/metadata/metadata-v1.d.ts +38 -0
- package/dist/apis/metadata/metadata-v1.js +52 -0
- package/dist/apis/metadata/metadata-v10.d.ts +4 -2
- package/dist/apis/metadata/metadata-v10.js +29 -16
- package/dist/apis/metadata/metadata-v11.d.ts +3 -2
- package/dist/apis/metadata/metadata-v11.js +23 -15
- package/dist/apis/metadata/metadata-v12.d.ts +9 -2
- package/dist/apis/metadata/metadata-v12.js +21 -9
- package/dist/apis/metadata/metadata-v2.d.ts +38 -0
- package/dist/apis/metadata/metadata-v2.js +52 -0
- package/dist/apis/metadata/metadata-v3.d.ts +38 -0
- package/dist/apis/metadata/metadata-v3.js +52 -0
- package/dist/apis/metadata/metadata-v4.d.ts +38 -0
- package/dist/apis/metadata/metadata-v4.js +54 -0
- package/dist/apis/metadata/metadata-v5.d.ts +38 -0
- package/dist/apis/metadata/metadata-v5.js +85 -0
- package/dist/apis/metadata/metadata-v6.d.ts +38 -0
- package/dist/apis/metadata/metadata-v6.js +85 -0
- package/dist/apis/metadata/metadata-v7.d.ts +38 -0
- package/dist/apis/metadata/metadata-v7.js +86 -0
- package/dist/apis/metadata/metadata-v8.d.ts +39 -0
- package/dist/apis/metadata/metadata-v8.js +94 -0
- package/dist/apis/metadata/metadata-v9.d.ts +5 -3
- package/dist/apis/metadata/metadata-v9.js +28 -21
- package/dist/apis/producer/add-offsets-to-txn-v0.d.ts +10 -0
- package/dist/apis/producer/add-offsets-to-txn-v0.js +30 -0
- package/dist/apis/producer/add-offsets-to-txn-v3.js +1 -0
- package/dist/apis/producer/add-offsets-to-txn-v4.js +1 -0
- package/dist/apis/producer/add-partitions-to-txn-v0.d.ts +34 -0
- package/dist/apis/producer/add-partitions-to-txn-v0.js +62 -0
- package/dist/apis/producer/add-partitions-to-txn-v1.d.ts +5 -0
- package/dist/apis/producer/add-partitions-to-txn-v1.js +9 -0
- package/dist/apis/producer/add-partitions-to-txn-v2.d.ts +5 -0
- package/dist/apis/producer/add-partitions-to-txn-v2.js +9 -0
- package/dist/apis/producer/add-partitions-to-txn-v3.js +13 -8
- package/dist/apis/producer/add-partitions-to-txn-v4.js +11 -5
- package/dist/apis/producer/add-partitions-to-txn-v5.js +11 -5
- package/dist/apis/producer/end-txn-v0.d.ts +10 -0
- package/dist/apis/producer/end-txn-v0.js +30 -0
- package/dist/apis/producer/end-txn-v1.d.ts +5 -0
- package/dist/apis/producer/end-txn-v1.js +9 -0
- package/dist/apis/producer/end-txn-v2.d.ts +5 -0
- package/dist/apis/producer/end-txn-v2.js +9 -0
- package/dist/apis/producer/end-txn-v3.js +1 -0
- package/dist/apis/producer/end-txn-v4.js +1 -0
- package/dist/apis/producer/index.d.ts +17 -0
- package/dist/apis/producer/index.js +17 -0
- package/dist/apis/producer/init-producer-id-v0.d.ts +13 -0
- package/dist/apis/producer/init-producer-id-v0.js +31 -0
- package/dist/apis/producer/init-producer-id-v1.d.ts +5 -0
- package/dist/apis/producer/init-producer-id-v1.js +9 -0
- package/dist/apis/producer/init-producer-id-v2.d.ts +13 -0
- package/dist/apis/producer/init-producer-id-v2.js +24 -0
- package/dist/apis/producer/init-producer-id-v3.d.ts +2 -2
- package/dist/apis/producer/init-producer-id-v3.js +9 -1
- package/dist/apis/producer/init-producer-id-v4.d.ts +2 -2
- package/dist/apis/producer/init-producer-id-v4.js +9 -1
- package/dist/apis/producer/init-producer-id-v5.d.ts +2 -2
- package/dist/apis/producer/init-producer-id-v5.js +9 -1
- package/dist/apis/producer/produce-v10.d.ts +12 -0
- package/dist/apis/producer/produce-v10.js +42 -5
- package/dist/apis/producer/produce-v11.d.ts +12 -0
- package/dist/apis/producer/produce-v11.js +42 -5
- package/dist/apis/producer/produce-v3.d.ts +29 -0
- package/dist/apis/producer/produce-v3.js +88 -0
- package/dist/apis/producer/produce-v4.d.ts +29 -0
- package/dist/apis/producer/produce-v4.js +88 -0
- package/dist/apis/producer/produce-v5.d.ts +29 -0
- package/dist/apis/producer/produce-v5.js +88 -0
- package/dist/apis/producer/produce-v6.d.ts +29 -0
- package/dist/apis/producer/produce-v6.js +88 -0
- package/dist/apis/producer/produce-v7.js +1 -1
- package/dist/apis/producer/produce-v9.js +7 -3
- package/dist/apis/producer/txn-offset-commit-v0.d.ts +29 -0
- package/dist/apis/producer/txn-offset-commit-v0.js +60 -0
- package/dist/apis/producer/txn-offset-commit-v1.d.ts +29 -0
- package/dist/apis/producer/txn-offset-commit-v1.js +60 -0
- package/dist/apis/producer/txn-offset-commit-v2.d.ts +29 -0
- package/dist/apis/producer/txn-offset-commit-v2.js +62 -0
- package/dist/apis/producer/txn-offset-commit-v3.js +7 -3
- package/dist/apis/producer/txn-offset-commit-v4.js +7 -3
- package/dist/apis/security/index.d.ts +3 -0
- package/dist/apis/security/index.js +3 -0
- package/dist/apis/security/sasl-authenticate-v0.d.ts +15 -0
- package/dist/apis/security/sasl-authenticate-v0.js +30 -0
- package/dist/apis/security/sasl-authenticate-v1.d.ts +15 -0
- package/dist/apis/security/sasl-authenticate-v1.js +30 -0
- package/dist/apis/security/sasl-authenticate-v2.js +1 -0
- package/dist/apis/security/sasl-handshake-v0.d.ts +10 -0
- package/dist/apis/security/sasl-handshake-v0.js +28 -0
- package/dist/apis/tagged-fields.d.ts +7 -0
- package/dist/apis/tagged-fields.js +27 -0
- package/dist/apis/telemetry/compression-types.d.ts +8 -0
- package/dist/apis/telemetry/compression-types.js +7 -0
- package/dist/apis/telemetry/get-telemetry-subscriptions-v0.d.ts +2 -1
- package/dist/apis/telemetry/get-telemetry-subscriptions-v0.js +1 -0
- package/dist/apis/telemetry/index.d.ts +3 -0
- package/dist/apis/telemetry/index.js +3 -0
- package/dist/apis/telemetry/list-client-metrics-resources-v0.d.ts +6 -4
- package/dist/apis/telemetry/list-client-metrics-resources-v0.js +13 -8
- package/dist/apis/telemetry/list-config-resources-v1.d.ts +16 -0
- package/dist/apis/telemetry/list-config-resources-v1.js +38 -0
- package/dist/apis/telemetry/push-telemetry-v0.d.ts +3 -2
- package/dist/apis/telemetry/push-telemetry-v0.js +1 -0
- package/dist/clients/admin/admin.js +75 -12
- package/dist/clients/admin/options.d.ts +1 -1
- package/dist/clients/admin/options.js +3 -3
- package/dist/clients/admin/types.d.ts +1 -1
- package/dist/clients/base/base.d.ts +1 -1
- package/dist/clients/base/base.js +19 -4
- package/dist/clients/consumer/consumer.js +49 -4
- package/dist/clients/producer/producer.js +6 -1
- package/dist/network/connection.js +65 -19
- package/dist/protocol/definitions.js +1 -1
- package/dist/protocol/reader.js +1 -1
- package/dist/protocol/writer.js +17 -4
- package/dist/typescript-4/dist/apis/admin/alter-client-quotas-v0.d.ts +40 -0
- package/dist/typescript-4/dist/apis/admin/alter-client-quotas-v1.d.ts +6 -5
- package/dist/typescript-4/dist/apis/admin/alter-configs-v0.d.ts +7 -0
- package/dist/typescript-4/dist/apis/admin/alter-configs-v1.d.ts +2 -0
- package/dist/typescript-4/dist/apis/admin/alter-partition-reassignments-v0.d.ts +3 -2
- package/dist/typescript-4/dist/apis/admin/alter-partition-reassignments-v1.d.ts +6 -4
- package/dist/typescript-4/dist/apis/admin/alter-partition-v0.d.ts +40 -0
- package/dist/typescript-4/dist/apis/admin/alter-partition-v1.d.ts +37 -0
- package/dist/typescript-4/dist/apis/admin/alter-partition-v2.d.ts +36 -0
- package/dist/typescript-4/dist/apis/admin/alter-partition-v3.d.ts +6 -35
- package/dist/typescript-4/dist/apis/admin/alter-replica-log-dirs-v0.d.ts +23 -0
- package/dist/typescript-4/dist/apis/admin/alter-replica-log-dirs-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/alter-replica-log-dirs-v2.d.ts +1 -1
- package/dist/typescript-4/dist/apis/admin/client-quotas.d.ts +2 -0
- package/dist/typescript-4/dist/apis/admin/consumer-group-describe-v0.d.ts +2 -1
- package/dist/typescript-4/dist/apis/admin/create-acls-v0.d.ts +16 -0
- package/dist/typescript-4/dist/apis/admin/create-acls-v1.d.ts +15 -0
- package/dist/typescript-4/dist/apis/admin/create-delegation-token-v0.d.ts +24 -0
- package/dist/typescript-4/dist/apis/admin/create-delegation-token-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/create-delegation-token-v2.d.ts +9 -0
- package/dist/typescript-4/dist/apis/admin/create-partitions-v0.d.ts +2 -0
- package/dist/typescript-4/dist/apis/admin/create-partitions-v1.d.ts +2 -2
- package/dist/typescript-4/dist/apis/admin/create-partitions-v2.d.ts +2 -2
- package/dist/typescript-4/dist/apis/admin/create-topics-v0.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v1.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v2.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v3.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v4.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v5.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v6.d.ts +42 -0
- package/dist/typescript-4/dist/apis/admin/create-topics-v7.d.ts +2 -1
- package/dist/typescript-4/dist/apis/admin/delete-acls-v0.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/delete-acls-v1.d.ts +27 -0
- package/dist/typescript-4/dist/apis/admin/delete-groups-v0.d.ts +14 -0
- package/dist/typescript-4/dist/apis/admin/delete-groups-v1.d.ts +14 -0
- package/dist/typescript-4/dist/apis/admin/delete-records-v0.d.ts +27 -0
- package/dist/typescript-4/dist/apis/admin/delete-records-v1.d.ts +27 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v0.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v1.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v2.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v3.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v4.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v5.d.ts +19 -0
- package/dist/typescript-4/dist/apis/admin/delete-topics-v6.d.ts +1 -1
- package/dist/typescript-4/dist/apis/admin/describe-acls-v0.d.ts +21 -0
- package/dist/typescript-4/dist/apis/admin/describe-acls-v1.d.ts +21 -0
- package/dist/typescript-4/dist/apis/admin/describe-client-quotas-v0.d.ts +8 -7
- package/dist/typescript-4/dist/apis/admin/describe-client-quotas-v1.d.ts +9 -0
- package/dist/typescript-4/dist/apis/admin/describe-cluster-v0.d.ts +4 -3
- package/dist/typescript-4/dist/apis/admin/describe-cluster-v1.d.ts +4 -3
- package/dist/typescript-4/dist/apis/admin/describe-configs-v0.d.ts +41 -0
- package/dist/typescript-4/dist/apis/admin/describe-configs-v1.d.ts +39 -0
- package/dist/typescript-4/dist/apis/admin/describe-configs-v2.d.ts +9 -8
- package/dist/typescript-4/dist/apis/admin/describe-configs-v3.d.ts +9 -8
- package/dist/typescript-4/dist/apis/admin/describe-configs-v4.d.ts +2 -2
- package/dist/typescript-4/dist/apis/admin/describe-delegation-token-v0.d.ts +31 -0
- package/dist/typescript-4/dist/apis/admin/describe-delegation-token-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/describe-delegation-token-v2.d.ts +8 -0
- package/dist/typescript-4/dist/apis/admin/describe-delegation-token-v3.d.ts +4 -27
- package/dist/typescript-4/dist/apis/admin/describe-groups-v0.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/describe-groups-v1.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/describe-groups-v2.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/describe-groups-v3.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/describe-groups-v4.d.ts +28 -0
- package/dist/typescript-4/dist/apis/admin/describe-log-dirs-v0.d.ts +30 -0
- package/dist/typescript-4/dist/apis/admin/describe-log-dirs-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/describe-log-dirs-v2.d.ts +3 -2
- package/dist/typescript-4/dist/apis/admin/describe-log-dirs-v3.d.ts +3 -2
- package/dist/typescript-4/dist/apis/admin/describe-log-dirs-v4.d.ts +3 -2
- package/dist/typescript-4/dist/apis/admin/describe-quorum-v0.d.ts +13 -0
- package/dist/typescript-4/dist/apis/admin/describe-quorum-v1.d.ts +13 -0
- package/dist/typescript-4/dist/apis/admin/describe-topic-partitions-v0.d.ts +3 -3
- package/dist/typescript-4/dist/apis/admin/describe-user-scram-credentials-v0.d.ts +4 -3
- package/dist/typescript-4/dist/apis/admin/expire-delegation-token-v0.d.ts +11 -0
- package/dist/typescript-4/dist/apis/admin/expire-delegation-token-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/incremental-alter-configs-v0.d.ts +26 -0
- package/dist/typescript-4/dist/apis/admin/index.d.ts +60 -0
- package/dist/typescript-4/dist/apis/admin/list-groups-v0.d.ts +18 -0
- package/dist/typescript-4/dist/apis/admin/list-groups-v1.d.ts +18 -0
- package/dist/typescript-4/dist/apis/admin/list-groups-v2.d.ts +18 -0
- package/dist/typescript-4/dist/apis/admin/list-groups-v3.d.ts +18 -0
- package/dist/typescript-4/dist/apis/admin/list-groups-v4.d.ts +4 -3
- package/dist/typescript-4/dist/apis/admin/list-groups-v5.d.ts +3 -3
- package/dist/typescript-4/dist/apis/admin/list-partition-reassignments-v0.d.ts +3 -3
- package/dist/typescript-4/dist/apis/admin/list-transactions-v0.d.ts +5 -3
- package/dist/typescript-4/dist/apis/admin/list-transactions-v1.d.ts +5 -3
- package/dist/typescript-4/dist/apis/admin/list-transactions-v2.d.ts +5 -4
- package/dist/typescript-4/dist/apis/admin/renew-delegation-token-v0.d.ts +11 -0
- package/dist/typescript-4/dist/apis/admin/renew-delegation-token-v1.d.ts +4 -0
- package/dist/typescript-4/dist/apis/admin/update-features-v0.d.ts +24 -0
- package/dist/typescript-4/dist/apis/admin/update-features-v1.d.ts +2 -1
- package/dist/typescript-4/dist/apis/consumer/consumer-group-heartbeat-v0.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/consumer-group-heartbeat-v1.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/fetch-v10.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v11.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v12.d.ts +20 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v13.d.ts +20 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v14.d.ts +20 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v15.d.ts +20 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v16.d.ts +27 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v17.d.ts +28 -4
- package/dist/typescript-4/dist/apis/consumer/fetch-v4.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v5.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v6.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v7.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v8.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/fetch-v9.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/heartbeat-v0.d.ts +11 -0
- package/dist/typescript-4/dist/apis/consumer/heartbeat-v1.d.ts +11 -0
- package/dist/typescript-4/dist/apis/consumer/heartbeat-v2.d.ts +11 -0
- package/dist/typescript-4/dist/apis/consumer/heartbeat-v3.d.ts +11 -0
- package/dist/typescript-4/dist/apis/consumer/index.d.ts +51 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v0.d.ts +27 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v1.d.ts +8 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v2.d.ts +27 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v3.d.ts +27 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v4.d.ts +27 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v5.d.ts +27 -0
- package/dist/typescript-4/dist/apis/consumer/join-group-v6.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/join-group-v7.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/join-group-v8.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/join-group-v9.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/leave-group-v0.d.ts +22 -0
- package/dist/typescript-4/dist/apis/consumer/leave-group-v1.d.ts +22 -0
- package/dist/typescript-4/dist/apis/consumer/leave-group-v2.d.ts +22 -0
- package/dist/typescript-4/dist/apis/consumer/leave-group-v3.d.ts +22 -0
- package/dist/typescript-4/dist/apis/consumer/leave-group-v4.d.ts +1 -1
- package/dist/typescript-4/dist/apis/consumer/leave-group-v5.d.ts +1 -1
- package/dist/typescript-4/dist/apis/consumer/list-offsets-v0.d.ts +30 -0
- package/dist/typescript-4/dist/apis/consumer/list-offsets-v1.d.ts +12 -0
- package/dist/typescript-4/dist/apis/consumer/list-offsets-v2.d.ts +30 -0
- package/dist/typescript-4/dist/apis/consumer/list-offsets-v3.d.ts +30 -0
- package/dist/typescript-4/dist/apis/consumer/list-offsets-v4.d.ts +30 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v0.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v1.d.ts +7 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v2.d.ts +8 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v3.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v4.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v5.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v6.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v7.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v8.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/offset-commit-v9.d.ts +2 -2
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v0.d.ts +40 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v1.d.ts +6 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v2.d.ts +7 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v3.d.ts +39 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v4.d.ts +39 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v5.d.ts +39 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v6.d.ts +39 -0
- package/dist/typescript-4/dist/apis/consumer/offset-fetch-v7.d.ts +39 -0
- package/dist/typescript-4/dist/apis/consumer/offset-for-leader-epoch-v0.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-for-leader-epoch-v1.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-for-leader-epoch-v2.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-for-leader-epoch-v3.d.ts +29 -0
- package/dist/typescript-4/dist/apis/consumer/offset-for-leader-epoch-v4.d.ts +1 -1
- package/dist/typescript-4/dist/apis/consumer/sync-group-v0.d.ts +18 -0
- package/dist/typescript-4/dist/apis/consumer/sync-group-v1.d.ts +18 -0
- package/dist/typescript-4/dist/apis/consumer/sync-group-v2.d.ts +18 -0
- package/dist/typescript-4/dist/apis/consumer/sync-group-v3.d.ts +18 -0
- package/dist/typescript-4/dist/apis/enumerations.d.ts +20 -5
- package/dist/typescript-4/dist/apis/index.d.ts +1 -0
- package/dist/typescript-4/dist/apis/metadata/api-versions-v0.d.ts +17 -0
- package/dist/typescript-4/dist/apis/metadata/api-versions-v1.d.ts +17 -0
- package/dist/typescript-4/dist/apis/metadata/api-versions-v2.d.ts +17 -0
- package/dist/typescript-4/dist/apis/metadata/api-versions-v3.d.ts +16 -2
- package/dist/typescript-4/dist/apis/metadata/api-versions-v4.d.ts +16 -2
- package/dist/typescript-4/dist/apis/metadata/find-coordinator-v0.d.ts +18 -0
- package/dist/typescript-4/dist/apis/metadata/find-coordinator-v1.d.ts +18 -0
- package/dist/typescript-4/dist/apis/metadata/find-coordinator-v2.d.ts +18 -0
- package/dist/typescript-4/dist/apis/metadata/find-coordinator-v3.d.ts +18 -0
- package/dist/typescript-4/dist/apis/metadata/index.d.ts +16 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v0.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v1.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v10.d.ts +4 -2
- package/dist/typescript-4/dist/apis/metadata/metadata-v11.d.ts +3 -2
- package/dist/typescript-4/dist/apis/metadata/metadata-v12.d.ts +9 -2
- package/dist/typescript-4/dist/apis/metadata/metadata-v2.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v3.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v4.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v5.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v6.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v7.d.ts +38 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v8.d.ts +39 -0
- package/dist/typescript-4/dist/apis/metadata/metadata-v9.d.ts +5 -3
- package/dist/typescript-4/dist/apis/producer/add-offsets-to-txn-v0.d.ts +10 -0
- package/dist/typescript-4/dist/apis/producer/add-partitions-to-txn-v0.d.ts +34 -0
- package/dist/typescript-4/dist/apis/producer/add-partitions-to-txn-v1.d.ts +5 -0
- package/dist/typescript-4/dist/apis/producer/add-partitions-to-txn-v2.d.ts +5 -0
- package/dist/typescript-4/dist/apis/producer/end-txn-v0.d.ts +10 -0
- package/dist/typescript-4/dist/apis/producer/end-txn-v1.d.ts +5 -0
- package/dist/typescript-4/dist/apis/producer/end-txn-v2.d.ts +5 -0
- package/dist/typescript-4/dist/apis/producer/index.d.ts +17 -0
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v0.d.ts +13 -0
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v1.d.ts +5 -0
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v2.d.ts +13 -0
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v3.d.ts +2 -2
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v4.d.ts +2 -2
- package/dist/typescript-4/dist/apis/producer/init-producer-id-v5.d.ts +2 -2
- package/dist/typescript-4/dist/apis/producer/produce-v10.d.ts +12 -0
- package/dist/typescript-4/dist/apis/producer/produce-v11.d.ts +12 -0
- package/dist/typescript-4/dist/apis/producer/produce-v3.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/produce-v4.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/produce-v5.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/produce-v6.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/txn-offset-commit-v0.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/txn-offset-commit-v1.d.ts +29 -0
- package/dist/typescript-4/dist/apis/producer/txn-offset-commit-v2.d.ts +29 -0
- package/dist/typescript-4/dist/apis/security/index.d.ts +3 -0
- package/dist/typescript-4/dist/apis/security/sasl-authenticate-v0.d.ts +15 -0
- package/dist/typescript-4/dist/apis/security/sasl-authenticate-v1.d.ts +15 -0
- package/dist/typescript-4/dist/apis/security/sasl-handshake-v0.d.ts +10 -0
- package/dist/typescript-4/dist/apis/tagged-fields.d.ts +7 -0
- package/dist/typescript-4/dist/apis/telemetry/compression-types.d.ts +8 -0
- package/dist/typescript-4/dist/apis/telemetry/get-telemetry-subscriptions-v0.d.ts +2 -1
- package/dist/typescript-4/dist/apis/telemetry/index.d.ts +3 -0
- package/dist/typescript-4/dist/apis/telemetry/list-client-metrics-resources-v0.d.ts +6 -4
- package/dist/typescript-4/dist/apis/telemetry/list-config-resources-v1.d.ts +16 -0
- package/dist/typescript-4/dist/apis/telemetry/push-telemetry-v0.d.ts +3 -2
- package/dist/typescript-4/dist/clients/admin/options.d.ts +1 -1
- package/dist/typescript-4/dist/clients/admin/types.d.ts +1 -1
- package/dist/typescript-4/dist/clients/base/base.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPromisifiedCallback, kCallbackPromise, runConcurrentCallbacks } from "../../apis/callbacks.js";
|
|
2
|
-
import { ConfigResourceTypes, FetchIsolationLevels, FindCoordinatorKeyTypes } from "../../apis/enumerations.js";
|
|
2
|
+
import { ConfigResourceTypes, FetchIsolationLevels, FindCoordinatorKeyTypes, legacyConsumerGroupStates } from "../../apis/enumerations.js";
|
|
3
3
|
import { adminAclsChannel, adminClientQuotasChannel, adminConfigsChannel, adminConsumerGroupOffsetsChannel, adminGroupsChannel, adminLogDirsChannel, adminOffsetsChannel, adminTopicsChannel, createDiagnosticContext } from "../../diagnostic.js";
|
|
4
4
|
import { MultipleErrors, UserError } from "../../errors.js";
|
|
5
5
|
import { Reader } from "../../protocol/reader.js";
|
|
@@ -464,9 +464,10 @@ export class Admin extends Base {
|
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
466
|
const created = [];
|
|
467
|
-
|
|
467
|
+
const topics = response.topics;
|
|
468
|
+
for (const { name, topicId: id = '', numPartitions: partitions = -1, replicationFactor: replicas = -1, configs: topicConfigs } of topics) {
|
|
468
469
|
const configuration = {};
|
|
469
|
-
for (const { name, value } of
|
|
470
|
+
for (const { name, value } of topicConfigs ?? []) {
|
|
470
471
|
configuration[name] = value;
|
|
471
472
|
}
|
|
472
473
|
created.push({ id, name, partitions, replicas, configuration });
|
|
@@ -554,8 +555,11 @@ export class Admin extends Base {
|
|
|
554
555
|
retryCallback(error);
|
|
555
556
|
return;
|
|
556
557
|
}
|
|
558
|
+
// Brokers filter on the values they put on the wire, so the legacy Java enum
|
|
559
|
+
// constant names have to be translated or they would silently match nothing.
|
|
560
|
+
const states = (options.states ?? []).map(state => legacyConsumerGroupStates[state] ?? state);
|
|
557
561
|
/* c8 ignore next 5 */
|
|
558
|
-
api(connection,
|
|
562
|
+
api(connection, states, options.types, retryCallback);
|
|
559
563
|
});
|
|
560
564
|
}, concurrentCallback, 0);
|
|
561
565
|
});
|
|
@@ -569,8 +573,10 @@ export class Admin extends Base {
|
|
|
569
573
|
for (const raw of result.groups) {
|
|
570
574
|
groups.set(raw.groupId, {
|
|
571
575
|
id: raw.groupId,
|
|
572
|
-
|
|
573
|
-
|
|
576
|
+
// ListGroups only carries group_state from v4, so below that the codec has nothing
|
|
577
|
+
// to report. 'Unknown' is the value Kafka itself uses for exactly this case.
|
|
578
|
+
state: (raw.groupState || 'Unknown'),
|
|
579
|
+
groupType: raw.groupType || undefined,
|
|
574
580
|
protocolType: raw.protocolType
|
|
575
581
|
});
|
|
576
582
|
}
|
|
@@ -623,7 +629,7 @@ export class Admin extends Base {
|
|
|
623
629
|
for (const raw of result.groups) {
|
|
624
630
|
const group = {
|
|
625
631
|
id: raw.groupId,
|
|
626
|
-
state: raw.groupState
|
|
632
|
+
state: raw.groupState,
|
|
627
633
|
protocolType: raw.protocolType,
|
|
628
634
|
protocol: raw.protocolData,
|
|
629
635
|
members: new Map(),
|
|
@@ -756,7 +762,13 @@ export class Admin extends Base {
|
|
|
756
762
|
groupInstanceId: null,
|
|
757
763
|
reason: typeof member === 'string' ? 'Not specified' : member.reason
|
|
758
764
|
}));
|
|
759
|
-
api
|
|
765
|
+
if (api.version >= 3) {
|
|
766
|
+
api(connection, options.groupId, members, retryCallback);
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
runConcurrentCallbacks('Removing members from consumer group failed.', members, (member, concurrentCallback) => {
|
|
770
|
+
api(connection, options.groupId, [member], concurrentCallback);
|
|
771
|
+
}, error => retryCallback(error));
|
|
760
772
|
});
|
|
761
773
|
});
|
|
762
774
|
});
|
|
@@ -780,7 +792,28 @@ export class Admin extends Base {
|
|
|
780
792
|
retryCallback(error);
|
|
781
793
|
return;
|
|
782
794
|
}
|
|
783
|
-
api
|
|
795
|
+
if (api.version >= 4) {
|
|
796
|
+
api(connection, options.keyType, options.keys, retryCallback);
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
runConcurrentCallbacks('Finding coordinator failed.', options.keys, (key, concurrentCallback) => {
|
|
800
|
+
api(connection, options.keyType, [key], (error, response) => {
|
|
801
|
+
if (response) {
|
|
802
|
+
response.coordinators[0].key = key;
|
|
803
|
+
}
|
|
804
|
+
concurrentCallback(error, response);
|
|
805
|
+
});
|
|
806
|
+
}, (error, responses) => {
|
|
807
|
+
if (error) {
|
|
808
|
+
retryCallback(error);
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
retryCallback(null, {
|
|
812
|
+
// The caller controls how many keys are looked up, so reduce rather than spread.
|
|
813
|
+
throttleTimeMs: responses.reduce((max, response) => Math.max(max, response.throttleTimeMs), 0),
|
|
814
|
+
coordinators: responses.flatMap(response => response.coordinators)
|
|
815
|
+
});
|
|
816
|
+
});
|
|
784
817
|
});
|
|
785
818
|
});
|
|
786
819
|
}, (error, response) => {
|
|
@@ -816,7 +849,7 @@ export class Admin extends Base {
|
|
|
816
849
|
callback(new MultipleErrors('Describing client quotas failed.', [error]));
|
|
817
850
|
return;
|
|
818
851
|
}
|
|
819
|
-
callback(null, response.entries);
|
|
852
|
+
callback(null, response.entries ?? []);
|
|
820
853
|
}, 0);
|
|
821
854
|
}
|
|
822
855
|
#alterClientQuotas(options, callback) {
|
|
@@ -930,8 +963,38 @@ export class Admin extends Base {
|
|
|
930
963
|
retryCallback(error);
|
|
931
964
|
return;
|
|
932
965
|
}
|
|
933
|
-
|
|
934
|
-
|
|
966
|
+
if (api.version >= 8) {
|
|
967
|
+
api(connection, groupRequests, options.requireStable ?? false, retryCallback);
|
|
968
|
+
return;
|
|
969
|
+
}
|
|
970
|
+
runConcurrentCallbacks('Listing consumer group offsets failed.', groupRequests, (groupRequest, groupCallback) => {
|
|
971
|
+
api(connection, [groupRequest], options.requireStable ?? false, (error, response) => {
|
|
972
|
+
if (error) {
|
|
973
|
+
groupCallback(error);
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
const legacyResponse = response;
|
|
977
|
+
groupCallback(null, {
|
|
978
|
+
throttleTimeMs: legacyResponse.throttleTimeMs,
|
|
979
|
+
groups: [
|
|
980
|
+
{
|
|
981
|
+
groupId: groupRequest.groupId,
|
|
982
|
+
topics: legacyResponse.topics,
|
|
983
|
+
errorCode: legacyResponse.errorCode
|
|
984
|
+
}
|
|
985
|
+
]
|
|
986
|
+
});
|
|
987
|
+
});
|
|
988
|
+
}, (error, responses) => {
|
|
989
|
+
if (error) {
|
|
990
|
+
retryCallback(error);
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
retryCallback(null, {
|
|
994
|
+
throttleTimeMs: responses.reduce((max, response) => Math.max(max, response.throttleTimeMs), 0),
|
|
995
|
+
groups: responses.flatMap(response => response.groups)
|
|
996
|
+
});
|
|
997
|
+
});
|
|
935
998
|
});
|
|
936
999
|
});
|
|
937
1000
|
}, concurrentCallback, 0);
|
|
@@ -129,7 +129,7 @@ export declare const listGroupsOptionsSchema: {
|
|
|
129
129
|
items: {
|
|
130
130
|
type: string;
|
|
131
131
|
enumeration: {
|
|
132
|
-
allowed:
|
|
132
|
+
allowed: ("Unknown" | "PreparingRebalance" | "CompletingRebalance" | "Stable" | "Dead" | "Empty" | "Assigning" | "Reconciling" | "NotReady" | "PREPARING_REBALANCE" | "COMPLETING_REBALANCE" | "STABLE" | "DEAD" | "EMPTY")[];
|
|
133
133
|
errorMessage: string;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { allowedAclOperations, allowedAclPermissionTypes, allowedClientQuotaMatchTypes, allowedFetchIsolationLevels, allowedFindCoordinatorKeyTypes, allowedIncrementalAlterConfigOperationTypes, allowedResourcePatternTypes, allowedResourceTypes, ConsumerGroupStates, IncrementalAlterConfigOperationTypes } from "../../apis/enumerations.js";
|
|
1
|
+
import { allowedAclOperations, allowedAclPermissionTypes, allowedClientQuotaMatchTypes, allowedFetchIsolationLevels, allowedFindCoordinatorKeyTypes, allowedIncrementalAlterConfigOperationTypes, allowedResourcePatternTypes, allowedResourceTypes, ConsumerGroupStates, KafkaConsumerGroupStates, IncrementalAlterConfigOperationTypes } from "../../apis/enumerations.js";
|
|
2
2
|
import { ajv, listErrorMessage } from "../../utils.js";
|
|
3
3
|
import { idProperty } from "../base/options.js";
|
|
4
4
|
export const groupsProperties = {
|
|
@@ -86,8 +86,8 @@ export const listGroupsOptionsSchema = {
|
|
|
86
86
|
items: {
|
|
87
87
|
type: 'string',
|
|
88
88
|
enumeration: {
|
|
89
|
-
allowed: ConsumerGroupStates,
|
|
90
|
-
errorMessage: listErrorMessage(ConsumerGroupStates)
|
|
89
|
+
allowed: [...ConsumerGroupStates, ...KafkaConsumerGroupStates],
|
|
90
|
+
errorMessage: listErrorMessage([...ConsumerGroupStates, ...KafkaConsumerGroupStates])
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
minItems: 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ValidateFunction } from 'ajv';
|
|
2
2
|
import { type CallbackWithPromise } from '../../apis/callbacks.ts';
|
|
3
3
|
import { type API, type Callback } from '../../apis/definitions.ts';
|
|
4
|
-
import { type ApiVersionsResponseApi } from '../../apis/metadata/api-versions-
|
|
4
|
+
import { type ApiVersionsResponseApi } from '../../apis/metadata/api-versions-v1.ts';
|
|
5
5
|
import { type ClientType } from '../../diagnostic.ts';
|
|
6
6
|
import { TypedEventEmitter, type TypedEvents } from '../../events.ts';
|
|
7
7
|
import { ConnectionPool, type ConnectionPoolEventPayload } from '../../network/connection-pool.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPromisifiedCallback, kCallbackPromise, runConcurrentCallbacks } from "../../apis/callbacks.js";
|
|
2
2
|
import * as apis from "../../apis/index.js";
|
|
3
|
-
import { api as
|
|
3
|
+
import { api as apiVersionsV1 } from "../../apis/metadata/api-versions-v1.js";
|
|
4
4
|
import { baseApisChannel, baseMetadataChannel, createDiagnosticContext, notifyCreation } from "../../diagnostic.js";
|
|
5
5
|
import { MultipleErrors, NetworkError, UnsupportedApiError, UserError } from "../../errors.js";
|
|
6
6
|
import { TypedEventEmitter } from "../../events.js";
|
|
@@ -212,8 +212,14 @@ export class Base extends TypedEventEmitter {
|
|
|
212
212
|
retryCallback(error);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
// We use
|
|
216
|
-
|
|
215
|
+
// We use V1 because it is supported by Kafka 1.1.0+.
|
|
216
|
+
//
|
|
217
|
+
// The tradeoff is that clientSoftwareName and clientSoftwareVersion only exist from
|
|
218
|
+
// V3, so brokers cannot attribute client metrics to this package (KIP-511) and the
|
|
219
|
+
// two arguments below are accepted and discarded by the V1 codec. Removing the
|
|
220
|
+
// tradeoff requires negotiating down from V3 on UNSUPPORTED_VERSION rather than
|
|
221
|
+
// pinning a version: see https://github.com/platformatic/kafka/issues/343.
|
|
222
|
+
apiVersionsV1(connection, clientSoftwareName, clientSoftwareVersion, retryCallback);
|
|
217
223
|
}, attempt);
|
|
218
224
|
}, (error, metadata) => {
|
|
219
225
|
if (error) {
|
|
@@ -425,7 +431,16 @@ export class Base extends TypedEventEmitter {
|
|
|
425
431
|
// (e.g. MSK) authorize every topic operation and emit a CloudTrail
|
|
426
432
|
// AccessDenied per denied op (CreateTopic/DeleteTopic/...) — pure
|
|
427
433
|
// audit-log noise for permissions the client never exercises.
|
|
428
|
-
api(connection, topicsToFetch, autocreateTopics, false,
|
|
434
|
+
api(connection, topicsToFetch, autocreateTopics, false, (error, response) => {
|
|
435
|
+
// Metadata v0-v8 do not carry topic UUIDs. Topic names are stable
|
|
436
|
+
// surrogates for the consumer paths that use internal topic IDs.
|
|
437
|
+
if (!error && api.version <= 8) {
|
|
438
|
+
for (const topic of response.topics) {
|
|
439
|
+
topic.topicId = topic.name;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
retryCallback(error, response);
|
|
443
|
+
});
|
|
429
444
|
});
|
|
430
445
|
}, attempt);
|
|
431
446
|
}, (error, metadata) => {
|
|
@@ -577,7 +577,36 @@ export class Consumer extends Base {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
+
// Fetch v12 identifies topics by name, while later versions use UUIDs.
|
|
581
|
+
const useTopicNames = api.version <= 12;
|
|
582
|
+
let topicIdsByName;
|
|
583
|
+
if (useTopicNames) {
|
|
584
|
+
// Built here rather than in the response callback so that the fetch loop allocates
|
|
585
|
+
// it once per request instead of once per request and once per response.
|
|
586
|
+
topicIdsByName = new Map();
|
|
587
|
+
for (const [id, name] of topicIds) {
|
|
588
|
+
topicIdsByName.set(name, id);
|
|
589
|
+
}
|
|
590
|
+
requestTopics = requestTopics.map(topic => ({
|
|
591
|
+
...topic,
|
|
592
|
+
topicId: topicIds.get(topic.topicId) ?? topic.topicId
|
|
593
|
+
}));
|
|
594
|
+
for (const forgotten of forgottenTopicsData) {
|
|
595
|
+
const topicId = forgotten.topicId ?? forgotten.topic;
|
|
596
|
+
forgotten.topicId = topicIds.get(topicId) ?? topicId;
|
|
597
|
+
delete forgotten.topic;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
580
600
|
api(connection, options.maxWaitTime ?? this[kOptions].maxWaitTime, options.minBytes ?? this[kOptions].minBytes, options.maxBytes ?? this[kOptions].maxBytes, isolationLevel, sessionId, sessionEpoch, requestTopics, forgottenTopicsData, this.#clientRack, (error, result) => {
|
|
601
|
+
const response = result ?? error?.response;
|
|
602
|
+
if (response && !response.nodeEndpoints) {
|
|
603
|
+
response.nodeEndpoints = [];
|
|
604
|
+
}
|
|
605
|
+
if (useTopicNames && response) {
|
|
606
|
+
for (const topic of response.responses) {
|
|
607
|
+
topic.topicId = topicIdsByName.get(topic.topicId) ?? topic.topicId;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
581
610
|
if (error) {
|
|
582
611
|
this.#clearPreferredReadReplicas(options.topics, topicIds);
|
|
583
612
|
const genericError = error;
|
|
@@ -785,7 +814,17 @@ export class Consumer extends Base {
|
|
|
785
814
|
memberEpoch: this.#useConsumerGroupProtocol ? this.#memberEpoch : -1,
|
|
786
815
|
topics
|
|
787
816
|
}
|
|
788
|
-
], false,
|
|
817
|
+
], false, (error, response) => {
|
|
818
|
+
if (error || api.version >= 8) {
|
|
819
|
+
groupCallback(error, response);
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
const legacyResponse = response;
|
|
823
|
+
groupCallback(null, {
|
|
824
|
+
throttleTimeMs: legacyResponse.throttleTimeMs,
|
|
825
|
+
groups: [{ groupId: this.groupId, topics: legacyResponse.topics, errorCode: legacyResponse.errorCode }]
|
|
826
|
+
});
|
|
827
|
+
});
|
|
789
828
|
});
|
|
790
829
|
}, (error, response) => {
|
|
791
830
|
if (error) {
|
|
@@ -1134,7 +1173,12 @@ export class Consumer extends Base {
|
|
|
1134
1173
|
retryCallback(error);
|
|
1135
1174
|
return;
|
|
1136
1175
|
}
|
|
1137
|
-
api(connection, FindCoordinatorKeyTypes.GROUP, [this.groupId],
|
|
1176
|
+
api(connection, FindCoordinatorKeyTypes.GROUP, [this.groupId], (error, response) => {
|
|
1177
|
+
if (response && api.version < 4) {
|
|
1178
|
+
response.coordinators[0].key = this.groupId;
|
|
1179
|
+
}
|
|
1180
|
+
retryCallback(error, response);
|
|
1181
|
+
});
|
|
1138
1182
|
});
|
|
1139
1183
|
});
|
|
1140
1184
|
}, (error, response) => {
|
|
@@ -1515,12 +1559,13 @@ export class Consumer extends Base {
|
|
|
1515
1559
|
if (!partition.records) {
|
|
1516
1560
|
continue;
|
|
1517
1561
|
}
|
|
1518
|
-
|
|
1562
|
+
const abortedTransactions = partition.abortedTransactions ?? [];
|
|
1563
|
+
if (abortedTransactions.length) {
|
|
1519
1564
|
const abortedRanges = new Map();
|
|
1520
1565
|
// Find first offsets
|
|
1521
1566
|
// For last offsets we set -1n as special value. It allows us to detect open ranges, whichs means
|
|
1522
1567
|
// that Kafka has not sent the control marker. In that case we ignore the range for safety.
|
|
1523
|
-
for (const aborted of
|
|
1568
|
+
for (const aborted of abortedTransactions) {
|
|
1524
1569
|
abortedRanges.set(aborted.producerId, [aborted.firstOffset, -1n]);
|
|
1525
1570
|
}
|
|
1526
1571
|
// Now find last offsets
|
|
@@ -353,7 +353,12 @@ export class Producer extends Base {
|
|
|
353
353
|
retryCallback(error);
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
|
-
api(connection, FindCoordinatorKeyTypes.TRANSACTION, [transactionalId],
|
|
356
|
+
api(connection, FindCoordinatorKeyTypes.TRANSACTION, [transactionalId], (error, response) => {
|
|
357
|
+
if (response && api.version < 4) {
|
|
358
|
+
response.coordinators[0].key = transactionalId;
|
|
359
|
+
}
|
|
360
|
+
retryCallback(error, response);
|
|
361
|
+
});
|
|
357
362
|
});
|
|
358
363
|
}, attempt);
|
|
359
364
|
}, (error, response) => {
|
|
@@ -4,7 +4,8 @@ import { createConnection } from 'node:net';
|
|
|
4
4
|
import { connect as createTLSConnection } from 'node:tls';
|
|
5
5
|
import { createPromisifiedCallback, kCallbackPromise } from "../apis/callbacks.js";
|
|
6
6
|
import { allowedSASLMechanisms, SASLMechanisms } from "../apis/enumerations.js";
|
|
7
|
-
import {
|
|
7
|
+
import { clientSoftwareName, clientSoftwareVersion } from "../clients/base/options.js";
|
|
8
|
+
import { apiVersionsV1, saslAuthenticateV0, saslAuthenticateV1, saslAuthenticateV2, saslHandshakeV1 } from "../apis/index.js";
|
|
8
9
|
import { connectionsApiChannel, connectionsConnectsChannel, createDiagnosticContext, notifyCreation } from "../diagnostic.js";
|
|
9
10
|
import { AuthenticationError, NetworkError, TimeoutError, UnexpectedCorrelationIdError, UserError } from "../errors.js";
|
|
10
11
|
import { TypedEventEmitter } from "../events.js";
|
|
@@ -52,6 +53,8 @@ export class Connection extends TypedEventEmitter {
|
|
|
52
53
|
#socketMustBeDrained;
|
|
53
54
|
#detectMissingTLS;
|
|
54
55
|
#reauthenticationTimeout;
|
|
56
|
+
// Negotiated once per connection: reauthentication runs the same path again.
|
|
57
|
+
#saslAuthenticateApi;
|
|
55
58
|
constructor(clientId, options = {}) {
|
|
56
59
|
super();
|
|
57
60
|
this.setMaxListeners(0);
|
|
@@ -340,28 +343,71 @@ export class Connection extends TypedEventEmitter {
|
|
|
340
343
|
this.#onConnectionError(host, port, diagnosticContext, new UserError(`SASL mechanism ${mechanism} not supported.`));
|
|
341
344
|
return;
|
|
342
345
|
}
|
|
343
|
-
|
|
346
|
+
this.#negotiateSaslAuthenticate(saslAuthenticate => {
|
|
347
|
+
saslHandshakeV1.api(this, mechanism, (error, response) => {
|
|
348
|
+
if (error) {
|
|
349
|
+
this.#onConnectionError(host, port, diagnosticContext, new AuthenticationError('Cannot find a suitable SASL mechanism.', { cause: error }));
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
this.emit('sasl:handshake', response.mechanisms);
|
|
353
|
+
const callback = this.#onSaslAuthenticate.bind(this, host, port, diagnosticContext);
|
|
354
|
+
if (authenticate) {
|
|
355
|
+
authenticate(mechanism, this, saslAuthenticate, username, password, token, callback);
|
|
356
|
+
}
|
|
357
|
+
else if (mechanism === SASLMechanisms.PLAIN) {
|
|
358
|
+
saslPlain.authenticate(saslAuthenticate, this, username, password, callback);
|
|
359
|
+
}
|
|
360
|
+
else if (mechanism === SASLMechanisms.OAUTHBEARER) {
|
|
361
|
+
saslOAuthBearer.authenticate(saslAuthenticate, this, token, oauthBearerExtensions, callback);
|
|
362
|
+
}
|
|
363
|
+
else if (mechanism === SASLMechanisms.GSSAPI) {
|
|
364
|
+
callback(new UserError('No custom SASL/GSSAPI authenticator provided.'));
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
saslScramSha.authenticate(saslAuthenticate, this, mechanism.substring(6), username, password, defaultCrypto, callback);
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Chooses the SaslAuthenticate version to authenticate with.
|
|
374
|
+
*
|
|
375
|
+
* The version cannot be assumed: v1 arrived in Apache Kafka 2.0 and v2 in 2.4, so pinning the
|
|
376
|
+
* newest makes authentication fail outright on older brokers, which answer an unparseable request
|
|
377
|
+
* with InvalidRequestException and drop the connection.
|
|
378
|
+
*
|
|
379
|
+
* Brokers accept ApiVersions before authentication precisely so that clients can ask, and it has
|
|
380
|
+
* to happen before SaslHandshake: once the handshake is sent the connection only accepts
|
|
381
|
+
* SaslAuthenticate. The result is cached because reauthentication runs this path again.
|
|
382
|
+
*
|
|
383
|
+
* SaslHandshake itself stays at v1. v0 signals the pre-1.0 flow, where the SASL tokens are written
|
|
384
|
+
* raw on the wire rather than wrapped in SaslAuthenticate requests, which this package does not
|
|
385
|
+
* implement.
|
|
386
|
+
*/
|
|
387
|
+
#negotiateSaslAuthenticate(callback) {
|
|
388
|
+
if (this.#saslAuthenticateApi) {
|
|
389
|
+
callback(this.#saslAuthenticateApi);
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
392
|
+
const candidates = [
|
|
393
|
+
[2, saslAuthenticateV2.api],
|
|
394
|
+
[1, saslAuthenticateV1.api],
|
|
395
|
+
[0, saslAuthenticateV0.api]
|
|
396
|
+
];
|
|
397
|
+
apiVersionsV1.api(this, clientSoftwareName, clientSoftwareVersion, (error, response) => {
|
|
398
|
+
let selected;
|
|
399
|
+
/* c8 ignore next 3 - Only reachable against a broker which refuses ApiVersions before authentication */
|
|
344
400
|
if (error) {
|
|
345
|
-
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
this.emit('sasl:handshake', response.mechanisms);
|
|
349
|
-
const callback = this.#onSaslAuthenticate.bind(this, host, port, diagnosticContext);
|
|
350
|
-
if (authenticate) {
|
|
351
|
-
authenticate(mechanism, this, saslAuthenticateV2.api, username, password, token, callback);
|
|
352
|
-
}
|
|
353
|
-
else if (mechanism === SASLMechanisms.PLAIN) {
|
|
354
|
-
saslPlain.authenticate(saslAuthenticateV2.api, this, username, password, callback);
|
|
355
|
-
}
|
|
356
|
-
else if (mechanism === SASLMechanisms.OAUTHBEARER) {
|
|
357
|
-
saslOAuthBearer.authenticate(saslAuthenticateV2.api, this, token, oauthBearerExtensions, callback);
|
|
358
|
-
}
|
|
359
|
-
else if (mechanism === SASLMechanisms.GSSAPI) {
|
|
360
|
-
callback(new UserError('No custom SASL/GSSAPI authenticator provided.'));
|
|
401
|
+
selected = undefined;
|
|
361
402
|
}
|
|
362
403
|
else {
|
|
363
|
-
|
|
404
|
+
const advertised = response.apiKeys.find(api => api.apiKey === saslAuthenticateV2.api.key);
|
|
405
|
+
selected = candidates.find(([version]) => advertised && version >= advertised.minVersion && version <= advertised.maxVersion)?.[1];
|
|
364
406
|
}
|
|
407
|
+
// Falling back to the newest version keeps the previous behaviour for brokers which do not
|
|
408
|
+
// answer the probe, rather than failing a connection which would otherwise have worked.
|
|
409
|
+
this.#saslAuthenticateApi = selected ?? saslAuthenticateV2.api;
|
|
410
|
+
callback(this.#saslAuthenticateApi);
|
|
365
411
|
});
|
|
366
412
|
}
|
|
367
413
|
/*
|
|
@@ -7,5 +7,5 @@ export const EMPTY_BUFFER = Buffer.alloc(0);
|
|
|
7
7
|
export const EMPTY_UUID = Buffer.alloc(UUID_SIZE);
|
|
8
8
|
// Since it is serialized at either 0 (for nullable) or 1 (since length is stored as length + 1), it always uses a single byte
|
|
9
9
|
export const EMPTY_OR_SINGLE_COMPACT_LENGTH_SIZE = INT8_SIZE;
|
|
10
|
-
//
|
|
10
|
+
// Flexible-version messages use this zero-length tagged-field section.
|
|
11
11
|
export const EMPTY_TAGGED_FIELDS_BUFFER = Buffer.from([0]);
|
package/dist/protocol/reader.js
CHANGED
|
@@ -300,7 +300,7 @@ export class Reader {
|
|
|
300
300
|
}
|
|
301
301
|
return reader();
|
|
302
302
|
}
|
|
303
|
-
//
|
|
303
|
+
// Skip unknown tagged fields because codecs do not expose them to callers.
|
|
304
304
|
readTaggedFields() {
|
|
305
305
|
const length = this.readUnsignedVarInt();
|
|
306
306
|
for (let i = 0; i < length; i++) {
|
package/dist/protocol/writer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicBuffer } from '@platformatic/dynamic-buffer';
|
|
2
2
|
import { humanize } from "../utils.js";
|
|
3
|
-
import { EMPTY_TAGGED_FIELDS_BUFFER, EMPTY_UUID } from "./definitions.js";
|
|
3
|
+
import { EMPTY_TAGGED_FIELDS_BUFFER, EMPTY_UUID, UUID_SIZE } from "./definitions.js";
|
|
4
4
|
const instanceIdentifier = Symbol('plt.kafka.writer.instanceIdentifier');
|
|
5
5
|
export class Writer {
|
|
6
6
|
context;
|
|
@@ -125,6 +125,12 @@ export class Writer {
|
|
|
125
125
|
return this.append(EMPTY_UUID);
|
|
126
126
|
}
|
|
127
127
|
const buffer = Buffer.from(value.replaceAll('-', ''), 'hex');
|
|
128
|
+
// UUIDs are fixed width and carry no length prefix, so anything that is not exactly 16 bytes
|
|
129
|
+
// would silently desync the rest of the request. Buffer.from() stops at the first non hex
|
|
130
|
+
// character, so a topic name used as a topic id would append nothing at all here.
|
|
131
|
+
if (buffer.length !== UUID_SIZE) {
|
|
132
|
+
throw new RangeError(`Expected a UUID, got ${JSON.stringify(value)}.`);
|
|
133
|
+
}
|
|
128
134
|
this.#buffer.append(buffer);
|
|
129
135
|
return this;
|
|
130
136
|
}
|
|
@@ -138,7 +144,9 @@ export class Writer {
|
|
|
138
144
|
else {
|
|
139
145
|
this.appendInt32(value.length);
|
|
140
146
|
}
|
|
141
|
-
|
|
147
|
+
if (value.length > 0) {
|
|
148
|
+
this.#buffer.append(value);
|
|
149
|
+
}
|
|
142
150
|
return this;
|
|
143
151
|
}
|
|
144
152
|
// Note that this does not follow the wire protocol specification and thus the length is not +1ed
|
|
@@ -147,7 +155,12 @@ export class Writer {
|
|
|
147
155
|
return this.appendVarInt(-1);
|
|
148
156
|
}
|
|
149
157
|
this.appendVarInt(value.length);
|
|
150
|
-
|
|
158
|
+
// Appending an empty buffer corrupts DynamicBuffer's positional reads, so it must be skipped:
|
|
159
|
+
// see https://github.com/platformatic/dynamic-buffer/issues/12. Record keys and values are
|
|
160
|
+
// allowed to be empty without being null, so this is reachable.
|
|
161
|
+
if (value.length > 0) {
|
|
162
|
+
this.#buffer.append(value);
|
|
163
|
+
}
|
|
151
164
|
return this;
|
|
152
165
|
}
|
|
153
166
|
appendArray(value, entryWriter, compact = true, appendTrailingTaggedFields = true) {
|
|
@@ -210,7 +223,7 @@ export class Writer {
|
|
|
210
223
|
}
|
|
211
224
|
return this;
|
|
212
225
|
}
|
|
213
|
-
//
|
|
226
|
+
// This client emits only empty tagged-field sections; it does not expose tagged fields to callers.
|
|
214
227
|
appendTaggedFields(_ = []) {
|
|
215
228
|
return this.append(EMPTY_TAGGED_FIELDS_BUFFER);
|
|
216
229
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type NullableString } from "../../protocol/definitions";
|
|
2
|
+
import { type Reader } from "../../protocol/reader";
|
|
3
|
+
import { Writer } from "../../protocol/writer";
|
|
4
|
+
import type { ClientQuotaEntityType, ClientQuotaKey } from "../enumerations";
|
|
5
|
+
export type { ClientQuotaEntityType, ClientQuotaKey } from "../enumerations";
|
|
6
|
+
export interface AlterClientQuotasRequestEntity {
|
|
7
|
+
entityType: ClientQuotaEntityType;
|
|
8
|
+
entityName?: NullableString;
|
|
9
|
+
}
|
|
10
|
+
export interface AlterClientQuotaRequestOpAddition {
|
|
11
|
+
key: ClientQuotaKey;
|
|
12
|
+
value: number;
|
|
13
|
+
remove: false;
|
|
14
|
+
}
|
|
15
|
+
export interface AlterClientQuotaRequestOpRemoval {
|
|
16
|
+
key: ClientQuotaKey;
|
|
17
|
+
remove: true;
|
|
18
|
+
}
|
|
19
|
+
export type AlterClientQuotasRequestOp = AlterClientQuotaRequestOpAddition | AlterClientQuotaRequestOpRemoval;
|
|
20
|
+
export interface AlterClientQuotasRequestEntry {
|
|
21
|
+
entities: AlterClientQuotasRequestEntity[];
|
|
22
|
+
ops: AlterClientQuotasRequestOp[];
|
|
23
|
+
}
|
|
24
|
+
export type AlterClientQuotasRequest = Parameters<typeof createRequest>;
|
|
25
|
+
export interface AlterClientQuotasResponseEntity {
|
|
26
|
+
entityType: ClientQuotaEntityType;
|
|
27
|
+
entityName: NullableString;
|
|
28
|
+
}
|
|
29
|
+
export interface AlterClientQuotasResponseEntries {
|
|
30
|
+
errorCode: number;
|
|
31
|
+
errorMessage: NullableString;
|
|
32
|
+
entity: AlterClientQuotasResponseEntity[];
|
|
33
|
+
}
|
|
34
|
+
export interface AlterClientQuotasResponse {
|
|
35
|
+
throttleTimeMs: number;
|
|
36
|
+
entries: AlterClientQuotasResponseEntries[];
|
|
37
|
+
}
|
|
38
|
+
export declare function createRequest(entries: AlterClientQuotasRequestEntry[], validateOnly: boolean): Writer;
|
|
39
|
+
export declare function parseResponse(_correlationId: number, apiKey: number, apiVersion: number, reader: Reader): AlterClientQuotasResponse;
|
|
40
|
+
export declare const api: import("../definitions").API<[entries: AlterClientQuotasRequestEntry[], validateOnly: boolean], AlterClientQuotasResponse>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { type NullableString } from "../../protocol/definitions";
|
|
2
2
|
import { type Reader } from "../../protocol/reader";
|
|
3
3
|
import { Writer } from "../../protocol/writer";
|
|
4
|
-
import {
|
|
4
|
+
import type { ClientQuotaEntityType, ClientQuotaKey } from "../enumerations";
|
|
5
|
+
export type { ClientQuotaEntityType, ClientQuotaKey } from "../enumerations";
|
|
5
6
|
export interface AlterClientQuotasRequestEntity {
|
|
6
|
-
entityType:
|
|
7
|
+
entityType: ClientQuotaEntityType;
|
|
7
8
|
entityName?: NullableString;
|
|
8
9
|
}
|
|
9
10
|
export interface AlterClientQuotaRequestOpAddition {
|
|
10
|
-
key:
|
|
11
|
+
key: ClientQuotaKey;
|
|
11
12
|
value: number;
|
|
12
13
|
remove: false;
|
|
13
14
|
}
|
|
14
15
|
export interface AlterClientQuotaRequestOpRemoval {
|
|
15
|
-
key:
|
|
16
|
+
key: ClientQuotaKey;
|
|
16
17
|
remove: true;
|
|
17
18
|
}
|
|
18
19
|
export type AlterClientQuotasRequestOp = AlterClientQuotaRequestOpAddition | AlterClientQuotaRequestOpRemoval;
|
|
@@ -22,7 +23,7 @@ export interface AlterClientQuotasRequestEntry {
|
|
|
22
23
|
}
|
|
23
24
|
export type AlterClientQuotasRequest = Parameters<typeof createRequest>;
|
|
24
25
|
export interface AlterClientQuotasResponseEntity {
|
|
25
|
-
entityType:
|
|
26
|
+
entityType: ClientQuotaEntityType;
|
|
26
27
|
entityName: NullableString;
|
|
27
28
|
}
|
|
28
29
|
export interface AlterClientQuotasResponseEntries {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Reader } from "../../protocol/reader";
|
|
2
|
+
import { Writer } from "../../protocol/writer";
|
|
3
|
+
import { type AlterConfigsRequestResource, type AlterConfigsResponse } from "./alter-configs-v2";
|
|
4
|
+
export * from "./alter-configs-v2";
|
|
5
|
+
export declare function createRequest(resources: AlterConfigsRequestResource[], validateOnly: boolean): Writer;
|
|
6
|
+
export declare function parseResponse(_: number, apiKey: number, apiVersion: number, reader: Reader): AlterConfigsResponse;
|
|
7
|
+
export declare const api: import("../definitions").API<unknown[], AlterConfigsResponse>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type NullableString } from "../../protocol/definitions";
|
|
1
|
+
import { type Nullable, type NullableString } from "../../protocol/definitions";
|
|
2
2
|
import { type Reader } from "../../protocol/reader";
|
|
3
3
|
import { Writer } from "../../protocol/writer";
|
|
4
4
|
export interface AlterPartitionReassignmentsRequestPartition {
|
|
5
5
|
partitionIndex: number;
|
|
6
|
-
replicas: number[]
|
|
6
|
+
replicas: Nullable<number[]>;
|
|
7
7
|
}
|
|
8
8
|
export interface AlterPartitionReassignmentsRequestTopic {
|
|
9
9
|
name: string;
|
|
@@ -21,6 +21,7 @@ export interface AlterPartitionReassignmentsResponseResponse {
|
|
|
21
21
|
}
|
|
22
22
|
export interface AlterPartitionReassignmentsResponse {
|
|
23
23
|
throttleTimeMs: number;
|
|
24
|
+
allowReplicationFactorChange: boolean;
|
|
24
25
|
errorCode: number;
|
|
25
26
|
errorMessage: NullableString;
|
|
26
27
|
responses: AlterPartitionReassignmentsResponseResponse[];
|