@platformatic/kafka 2.10.0 → 2.11.0
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 +21 -6
- 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 +43 -4
- 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 +4 -4
- 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 +36 -3
- package/dist/clients/consumer/consumer.js +62 -5
- package/dist/clients/consumer/messages-stream.js +10 -0
- 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 +7 -3
- 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 +21 -6
- 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 +4 -4
- 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 { findErrorBy, MultipleErrors, NetworkError, UserError } from "../../errors.js";
|
|
5
5
|
import { Reader } from "../../protocol/reader.js";
|
|
@@ -477,9 +477,10 @@ export class Admin extends Base {
|
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
479
479
|
const created = [];
|
|
480
|
-
|
|
480
|
+
const topics = response.topics;
|
|
481
|
+
for (const { name, topicId: id = '', numPartitions: partitions = -1, replicationFactor: replicas = -1, configs: topicConfigs } of topics) {
|
|
481
482
|
const configuration = {};
|
|
482
|
-
for (const { name, value } of
|
|
483
|
+
for (const { name, value } of topicConfigs ?? []) {
|
|
483
484
|
configuration[name] = value;
|
|
484
485
|
}
|
|
485
486
|
created.push({ id, name, partitions, replicas, configuration });
|
|
@@ -567,8 +568,11 @@ export class Admin extends Base {
|
|
|
567
568
|
retryCallback(error);
|
|
568
569
|
return;
|
|
569
570
|
}
|
|
571
|
+
// Brokers filter on the values they put on the wire, so the legacy Java enum
|
|
572
|
+
// constant names have to be translated or they would silently match nothing.
|
|
573
|
+
const states = (options.states ?? []).map(state => legacyConsumerGroupStates[state] ?? state);
|
|
570
574
|
/* c8 ignore next 5 */
|
|
571
|
-
api(connection,
|
|
575
|
+
api(connection, states, options.types, retryCallback);
|
|
572
576
|
});
|
|
573
577
|
}, concurrentCallback, 0);
|
|
574
578
|
});
|
|
@@ -582,8 +586,10 @@ export class Admin extends Base {
|
|
|
582
586
|
for (const raw of result.groups) {
|
|
583
587
|
groups.set(raw.groupId, {
|
|
584
588
|
id: raw.groupId,
|
|
585
|
-
|
|
586
|
-
|
|
589
|
+
// ListGroups only carries group_state from v4, so below that the codec has nothing
|
|
590
|
+
// to report. 'Unknown' is the value Kafka itself uses for exactly this case.
|
|
591
|
+
state: (raw.groupState || 'Unknown'),
|
|
592
|
+
groupType: raw.groupType || undefined,
|
|
587
593
|
protocolType: raw.protocolType
|
|
588
594
|
});
|
|
589
595
|
}
|
|
@@ -636,7 +642,7 @@ export class Admin extends Base {
|
|
|
636
642
|
for (const raw of result.groups) {
|
|
637
643
|
const group = {
|
|
638
644
|
id: raw.groupId,
|
|
639
|
-
state: raw.groupState
|
|
645
|
+
state: raw.groupState,
|
|
640
646
|
protocolType: raw.protocolType,
|
|
641
647
|
protocol: raw.protocolData,
|
|
642
648
|
members: new Map(),
|
|
@@ -769,7 +775,13 @@ export class Admin extends Base {
|
|
|
769
775
|
groupInstanceId: null,
|
|
770
776
|
reason: typeof member === 'string' ? 'Not specified' : member.reason
|
|
771
777
|
}));
|
|
772
|
-
api
|
|
778
|
+
if (api.version >= 3) {
|
|
779
|
+
api(connection, options.groupId, members, retryCallback);
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
runConcurrentCallbacks('Removing members from consumer group failed.', members, (member, concurrentCallback) => {
|
|
783
|
+
api(connection, options.groupId, [member], concurrentCallback);
|
|
784
|
+
}, error => retryCallback(error));
|
|
773
785
|
});
|
|
774
786
|
});
|
|
775
787
|
});
|
|
@@ -793,7 +805,28 @@ export class Admin extends Base {
|
|
|
793
805
|
retryCallback(error);
|
|
794
806
|
return;
|
|
795
807
|
}
|
|
796
|
-
api
|
|
808
|
+
if (api.version >= 4) {
|
|
809
|
+
api(connection, options.keyType, options.keys, retryCallback);
|
|
810
|
+
return;
|
|
811
|
+
}
|
|
812
|
+
runConcurrentCallbacks('Finding coordinator failed.', options.keys, (key, concurrentCallback) => {
|
|
813
|
+
api(connection, options.keyType, [key], (error, response) => {
|
|
814
|
+
if (response) {
|
|
815
|
+
response.coordinators[0].key = key;
|
|
816
|
+
}
|
|
817
|
+
concurrentCallback(error, response);
|
|
818
|
+
});
|
|
819
|
+
}, (error, responses) => {
|
|
820
|
+
if (error) {
|
|
821
|
+
retryCallback(error);
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
retryCallback(null, {
|
|
825
|
+
// The caller controls how many keys are looked up, so reduce rather than spread.
|
|
826
|
+
throttleTimeMs: responses.reduce((max, response) => Math.max(max, response.throttleTimeMs), 0),
|
|
827
|
+
coordinators: responses.flatMap(response => response.coordinators)
|
|
828
|
+
});
|
|
829
|
+
});
|
|
797
830
|
});
|
|
798
831
|
});
|
|
799
832
|
}, (error, response) => {
|
|
@@ -829,7 +862,7 @@ export class Admin extends Base {
|
|
|
829
862
|
callback(new MultipleErrors('Describing client quotas failed.', [error]));
|
|
830
863
|
return;
|
|
831
864
|
}
|
|
832
|
-
callback(null, response.entries);
|
|
865
|
+
callback(null, response.entries ?? []);
|
|
833
866
|
}, 0);
|
|
834
867
|
}
|
|
835
868
|
#alterClientQuotas(options, callback) {
|
|
@@ -943,8 +976,38 @@ export class Admin extends Base {
|
|
|
943
976
|
retryCallback(error);
|
|
944
977
|
return;
|
|
945
978
|
}
|
|
946
|
-
|
|
947
|
-
|
|
979
|
+
if (api.version >= 8) {
|
|
980
|
+
api(connection, groupRequests, options.requireStable ?? false, retryCallback);
|
|
981
|
+
return;
|
|
982
|
+
}
|
|
983
|
+
runConcurrentCallbacks('Listing consumer group offsets failed.', groupRequests, (groupRequest, groupCallback) => {
|
|
984
|
+
api(connection, [groupRequest], options.requireStable ?? false, (error, response) => {
|
|
985
|
+
if (error) {
|
|
986
|
+
groupCallback(error);
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
const legacyResponse = response;
|
|
990
|
+
groupCallback(null, {
|
|
991
|
+
throttleTimeMs: legacyResponse.throttleTimeMs,
|
|
992
|
+
groups: [
|
|
993
|
+
{
|
|
994
|
+
groupId: groupRequest.groupId,
|
|
995
|
+
topics: legacyResponse.topics,
|
|
996
|
+
errorCode: legacyResponse.errorCode
|
|
997
|
+
}
|
|
998
|
+
]
|
|
999
|
+
});
|
|
1000
|
+
});
|
|
1001
|
+
}, (error, responses) => {
|
|
1002
|
+
if (error) {
|
|
1003
|
+
retryCallback(error);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
retryCallback(null, {
|
|
1007
|
+
throttleTimeMs: responses.reduce((max, response) => Math.max(max, response.throttleTimeMs), 0),
|
|
1008
|
+
groups: responses.flatMap(response => response.groups)
|
|
1009
|
+
});
|
|
1010
|
+
});
|
|
948
1011
|
});
|
|
949
1012
|
});
|
|
950
1013
|
}, concurrentCallback, 0);
|
|
@@ -185,7 +185,7 @@ export declare const listGroupsOptionsSchema: {
|
|
|
185
185
|
items: {
|
|
186
186
|
type: string;
|
|
187
187
|
enumeration: {
|
|
188
|
-
allowed:
|
|
188
|
+
allowed: ("Unknown" | "PreparingRebalance" | "CompletingRebalance" | "Stable" | "Dead" | "Empty" | "Assigning" | "Reconciling" | "NotReady" | "PREPARING_REBALANCE" | "COMPLETING_REBALANCE" | "STABLE" | "DEAD" | "EMPTY")[];
|
|
189
189
|
errorMessage: string;
|
|
190
190
|
};
|
|
191
191
|
};
|
|
@@ -764,7 +764,7 @@ export declare const createAclsOptionsSchema: {
|
|
|
764
764
|
};
|
|
765
765
|
operation: {
|
|
766
766
|
type: string;
|
|
767
|
-
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 3 | 5 | 6 | 9 | 11 |
|
|
767
|
+
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 12 | 3 | 5 | 6 | 9 | 11 | 13 | 14 | 15)[];
|
|
768
768
|
};
|
|
769
769
|
permissionType: {
|
|
770
770
|
type: string;
|
|
@@ -823,7 +823,7 @@ export declare const describeAclsOptionsSchema: {
|
|
|
823
823
|
};
|
|
824
824
|
operation: {
|
|
825
825
|
type: string;
|
|
826
|
-
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 3 | 5 | 6 | 9 | 11 |
|
|
826
|
+
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 12 | 3 | 5 | 6 | 9 | 11 | 13 | 14 | 15)[];
|
|
827
827
|
};
|
|
828
828
|
permissionType: {
|
|
829
829
|
type: string;
|
|
@@ -882,7 +882,7 @@ export declare const deleteAclsOptionsSchema: {
|
|
|
882
882
|
};
|
|
883
883
|
operation: {
|
|
884
884
|
type: string;
|
|
885
|
-
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 3 | 5 | 6 | 9 | 11 |
|
|
885
|
+
enum: (0 | 1 | 2 | 4 | 8 | 7 | 10 | 12 | 3 | 5 | 6 | 9 | 11 | 13 | 14 | 15)[];
|
|
886
886
|
};
|
|
887
887
|
permissionType: {
|
|
888
888
|
type: string;
|
|
@@ -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 = {
|
|
@@ -117,8 +117,8 @@ export const listGroupsOptionsSchema = {
|
|
|
117
117
|
items: {
|
|
118
118
|
type: 'string',
|
|
119
119
|
enumeration: {
|
|
120
|
-
allowed: ConsumerGroupStates,
|
|
121
|
-
errorMessage: listErrorMessage(ConsumerGroupStates)
|
|
120
|
+
allowed: [...ConsumerGroupStates, ...KafkaConsumerGroupStates],
|
|
121
|
+
errorMessage: listErrorMessage([...ConsumerGroupStates, ...KafkaConsumerGroupStates])
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
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,5 +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 apiVersionsV1 } from "../../apis/metadata/api-versions-v1.js";
|
|
3
4
|
import { api as apiVersionsV3 } from "../../apis/metadata/api-versions-v3.js";
|
|
4
5
|
import { baseApisChannel, baseMetadataChannel, createDiagnosticContext, notifyCreation } from "../../diagnostic.js";
|
|
5
6
|
import { findErrorBy, MultipleErrors, NetworkError, UnsupportedApiError, UserError } from "../../errors.js";
|
|
@@ -47,6 +48,7 @@ export class Base extends TypedEventEmitter {
|
|
|
47
48
|
[kPrometheus];
|
|
48
49
|
#metadata;
|
|
49
50
|
#inflightDeduplications;
|
|
51
|
+
#apiVersionsVersions;
|
|
50
52
|
constructor(options) {
|
|
51
53
|
super();
|
|
52
54
|
this.setMaxListeners(0);
|
|
@@ -54,6 +56,7 @@ export class Base extends TypedEventEmitter {
|
|
|
54
56
|
this[kInstance] = currentInstance++;
|
|
55
57
|
this[kApis] = [];
|
|
56
58
|
this[kContext] = options.context;
|
|
59
|
+
this.#apiVersionsVersions = new WeakMap();
|
|
57
60
|
// Validate options
|
|
58
61
|
this[kOptions] = Object.assign({}, defaultBaseOptions);
|
|
59
62
|
for (const [key, value] of Object.entries(options)) {
|
|
@@ -212,8 +215,29 @@ export class Base extends TypedEventEmitter {
|
|
|
212
215
|
retryCallback(error);
|
|
213
216
|
return;
|
|
214
217
|
}
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
const apiVersionsVersion = this.#apiVersionsVersions.get(connection);
|
|
219
|
+
const listApisV1 = () => {
|
|
220
|
+
apiVersionsV1(connection, clientSoftwareName, clientSoftwareVersion, (error, response) => {
|
|
221
|
+
retryCallback(error, response);
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
if (apiVersionsVersion === 1) {
|
|
225
|
+
listApisV1();
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
apiVersionsV3(connection, clientSoftwareName, clientSoftwareVersion, (error, response) => {
|
|
229
|
+
if (!error) {
|
|
230
|
+
this.#apiVersionsVersions.set(connection, 3);
|
|
231
|
+
retryCallback(null, response);
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
if (findErrorBy(error, 'apiId', 'UNSUPPORTED_VERSION')) {
|
|
235
|
+
this.#apiVersionsVersions.set(connection, 1);
|
|
236
|
+
listApisV1();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
retryCallback(error);
|
|
240
|
+
});
|
|
217
241
|
}, attempt);
|
|
218
242
|
}, (error, metadata) => {
|
|
219
243
|
if (error) {
|
|
@@ -429,7 +453,16 @@ export class Base extends TypedEventEmitter {
|
|
|
429
453
|
// (e.g. MSK) authorize every topic operation and emit a CloudTrail
|
|
430
454
|
// AccessDenied per denied op (CreateTopic/DeleteTopic/...) — pure
|
|
431
455
|
// audit-log noise for permissions the client never exercises.
|
|
432
|
-
api(connection, topicsToFetch, autocreateTopics, false,
|
|
456
|
+
api(connection, topicsToFetch, autocreateTopics, false, (error, response) => {
|
|
457
|
+
// Metadata v0-v8 do not carry topic UUIDs. Topic names are stable
|
|
458
|
+
// surrogates for the consumer paths that use internal topic IDs.
|
|
459
|
+
if (!error && api.version <= 8) {
|
|
460
|
+
for (const topic of response.topics) {
|
|
461
|
+
topic.topicId = topic.name;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
retryCallback(error, response);
|
|
465
|
+
});
|
|
433
466
|
});
|
|
434
467
|
}, attempt);
|
|
435
468
|
}, (error, metadata) => {
|
|
@@ -362,6 +362,13 @@ export class Consumer extends Base {
|
|
|
362
362
|
throw validationError;
|
|
363
363
|
}
|
|
364
364
|
this.#lagMonitoring = setTimeout(() => {
|
|
365
|
+
// Skip this tick while mid-(re)join: listOffsets adds load to a coordinator/cluster that
|
|
366
|
+
// may already be struggling, and any lag figure computed against stale/absent assignments
|
|
367
|
+
// would be meaningless anyway. Just reschedule and try again next tick.
|
|
368
|
+
if (!this.isActive()) {
|
|
369
|
+
this.#lagMonitoring.refresh();
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
365
372
|
this.getLag(options, () => this.#lagMonitoring.refresh());
|
|
366
373
|
}, interval);
|
|
367
374
|
}
|
|
@@ -592,7 +599,36 @@ export class Consumer extends Base {
|
|
|
592
599
|
}
|
|
593
600
|
}
|
|
594
601
|
}
|
|
602
|
+
// Fetch v12 identifies topics by name, while later versions use UUIDs.
|
|
603
|
+
const useTopicNames = api.version <= 12;
|
|
604
|
+
let topicIdsByName;
|
|
605
|
+
if (useTopicNames) {
|
|
606
|
+
// Built here rather than in the response callback so that the fetch loop allocates
|
|
607
|
+
// it once per request instead of once per request and once per response.
|
|
608
|
+
topicIdsByName = new Map();
|
|
609
|
+
for (const [id, name] of topicIds) {
|
|
610
|
+
topicIdsByName.set(name, id);
|
|
611
|
+
}
|
|
612
|
+
requestTopics = requestTopics.map(topic => ({
|
|
613
|
+
...topic,
|
|
614
|
+
topicId: topicIds.get(topic.topicId) ?? topic.topicId
|
|
615
|
+
}));
|
|
616
|
+
for (const forgotten of forgottenTopicsData) {
|
|
617
|
+
const topicId = forgotten.topicId ?? forgotten.topic;
|
|
618
|
+
forgotten.topicId = topicIds.get(topicId) ?? topicId;
|
|
619
|
+
delete forgotten.topic;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
595
622
|
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) => {
|
|
623
|
+
const response = result ?? error?.response;
|
|
624
|
+
if (response && !response.nodeEndpoints) {
|
|
625
|
+
response.nodeEndpoints = [];
|
|
626
|
+
}
|
|
627
|
+
if (useTopicNames && response) {
|
|
628
|
+
for (const topic of response.responses) {
|
|
629
|
+
topic.topicId = topicIdsByName.get(topic.topicId) ?? topic.topicId;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
596
632
|
if (error) {
|
|
597
633
|
refreshMetadata = NetworkError.isRetryable(error);
|
|
598
634
|
this.#clearPreferredReadReplicas(options.topics, topicIds);
|
|
@@ -805,7 +841,17 @@ export class Consumer extends Base {
|
|
|
805
841
|
memberEpoch: this.#useConsumerGroupProtocol ? this.#memberEpoch : -1,
|
|
806
842
|
topics
|
|
807
843
|
}
|
|
808
|
-
], false,
|
|
844
|
+
], false, (error, response) => {
|
|
845
|
+
if (error || api.version >= 8) {
|
|
846
|
+
groupCallback(error, response);
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
const legacyResponse = response;
|
|
850
|
+
groupCallback(null, {
|
|
851
|
+
throttleTimeMs: legacyResponse.throttleTimeMs,
|
|
852
|
+
groups: [{ groupId: this.groupId, topics: legacyResponse.topics, errorCode: legacyResponse.errorCode }]
|
|
853
|
+
});
|
|
854
|
+
});
|
|
809
855
|
});
|
|
810
856
|
}, (error, response) => {
|
|
811
857
|
if (error) {
|
|
@@ -1000,7 +1046,12 @@ export class Consumer extends Base {
|
|
|
1000
1046
|
this.assignments = [];
|
|
1001
1047
|
this.#syncPreferredReadReplicas();
|
|
1002
1048
|
this.#memberEpoch = 0;
|
|
1003
|
-
|
|
1049
|
+
// Retry after a delay, not immediately: if many members get fenced around the same
|
|
1050
|
+
// rebalance, resending ConsumerGroupHeartbeat with no delay at all can flood the
|
|
1051
|
+
// coordinator faster than the group can converge.
|
|
1052
|
+
this.#heartbeatInterval = setTimeout(() => {
|
|
1053
|
+
this.#consumerGroupHeartbeat(options, () => { });
|
|
1054
|
+
}, this.#lastHeartbeatIntervalMs || 1000);
|
|
1004
1055
|
callback(error);
|
|
1005
1056
|
return;
|
|
1006
1057
|
}
|
|
@@ -1251,7 +1302,12 @@ export class Consumer extends Base {
|
|
|
1251
1302
|
retryCallback(error);
|
|
1252
1303
|
return;
|
|
1253
1304
|
}
|
|
1254
|
-
api(connection, FindCoordinatorKeyTypes.GROUP, [this.groupId],
|
|
1305
|
+
api(connection, FindCoordinatorKeyTypes.GROUP, [this.groupId], (error, response) => {
|
|
1306
|
+
if (response && api.version < 4) {
|
|
1307
|
+
response.coordinators[0].key = this.groupId;
|
|
1308
|
+
}
|
|
1309
|
+
retryCallback(error, response);
|
|
1310
|
+
});
|
|
1255
1311
|
});
|
|
1256
1312
|
});
|
|
1257
1313
|
}, (error, response) => {
|
|
@@ -1632,12 +1688,13 @@ export class Consumer extends Base {
|
|
|
1632
1688
|
if (!partition.records) {
|
|
1633
1689
|
continue;
|
|
1634
1690
|
}
|
|
1635
|
-
|
|
1691
|
+
const abortedTransactions = partition.abortedTransactions ?? [];
|
|
1692
|
+
if (abortedTransactions.length) {
|
|
1636
1693
|
const abortedRanges = new Map();
|
|
1637
1694
|
// Find first offsets
|
|
1638
1695
|
// For last offsets we set -1n as special value. It allows us to detect open ranges, whichs means
|
|
1639
1696
|
// that Kafka has not sent the control marker. In that case we ignore the range for safety.
|
|
1640
|
-
for (const aborted of
|
|
1697
|
+
for (const aborted of abortedTransactions) {
|
|
1641
1698
|
abortedRanges.set(aborted.producerId, [aborted.firstOffset, -1n]);
|
|
1642
1699
|
}
|
|
1643
1700
|
// Now find last offsets
|
|
@@ -796,6 +796,16 @@ export class MessagesStream extends Readable {
|
|
|
796
796
|
if (this.#offsetsToCommit.size === 0) {
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
|
+
// Skip this tick while the consumer is mid-(re)join: a commit attempted here would fail
|
|
800
|
+
// with a rejoin-required error (ILLEGAL_GENERATION/UNKNOWN_MEMBER_ID/REBALANCE_IN_PROGRESS),
|
|
801
|
+
// and — since this runs on its own timer, independently of the group's own rejoin flow —
|
|
802
|
+
// each such failure calls joinGroup again. With a short autocommit interval and many
|
|
803
|
+
// consumers in the group, this can fire fresh JoinGroups fast enough that the group never
|
|
804
|
+
// completes a rebalance round. Leave the offsets queued; they are committed once the
|
|
805
|
+
// consumer becomes active again (next tick, or the final flush on close/destroy).
|
|
806
|
+
if (!this.#consumer.isActive()) {
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
799
809
|
this.#autocommitInflight = true;
|
|
800
810
|
const offsets = Array.from(this.#offsetsToCommit.values());
|
|
801
811
|
this.#offsetsToCommit.clear();
|
|
@@ -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
|
@@ -187,9 +187,13 @@ export class Reader {
|
|
|
187
187
|
return this.readNullableString(compact, encoding) || '';
|
|
188
188
|
}
|
|
189
189
|
readUUID() {
|
|
190
|
-
const
|
|
190
|
+
const hex = this.peekUUID();
|
|
191
191
|
this.position += UUID_SIZE;
|
|
192
|
-
|
|
192
|
+
// Hyphenated by slicing rather than by a capture group regex. This runs once per topic per
|
|
193
|
+
// Fetch response from v13 up, and the regex form measured about fourteen times the cost, which
|
|
194
|
+
// made the newest Fetch versions measurably slower to decode than the ones identifying topics
|
|
195
|
+
// by name.
|
|
196
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
193
197
|
}
|
|
194
198
|
readNullableBytes(compact = true) {
|
|
195
199
|
let length;
|
|
@@ -300,7 +304,7 @@ export class Reader {
|
|
|
300
304
|
}
|
|
301
305
|
return reader();
|
|
302
306
|
}
|
|
303
|
-
//
|
|
307
|
+
// Skip unknown tagged fields because codecs do not expose them to callers.
|
|
304
308
|
readTaggedFields() {
|
|
305
309
|
const length = this.readUnsignedVarInt();
|
|
306
310
|
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
|
}
|