@proompteng/temporal-bun-sdk 0.1.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 +387 -0
- package/dist/bin/start-worker.js +3 -0
- package/dist/bin/temporal-bun.js +3 -0
- package/dist/src/activities/index.d.ts +6 -0
- package/dist/src/activities/index.d.ts.map +1 -0
- package/dist/src/activities/index.js +5 -0
- package/dist/src/activities/index.js.map +1 -0
- package/dist/src/activities/lifecycle.d.ts +48 -0
- package/dist/src/activities/lifecycle.d.ts.map +1 -0
- package/dist/src/activities/lifecycle.js +306 -0
- package/dist/src/activities/lifecycle.js.map +1 -0
- package/dist/src/bin/replay-command.d.ts +104 -0
- package/dist/src/bin/replay-command.d.ts.map +1 -0
- package/dist/src/bin/replay-command.js +582 -0
- package/dist/src/bin/replay-command.js.map +1 -0
- package/dist/src/bin/start-worker.d.ts +3 -0
- package/dist/src/bin/start-worker.d.ts.map +1 -0
- package/dist/src/bin/start-worker.js +29 -0
- package/dist/src/bin/start-worker.js.map +1 -0
- package/dist/src/bin/temporal-bun.d.ts +25 -0
- package/dist/src/bin/temporal-bun.d.ts.map +1 -0
- package/dist/src/bin/temporal-bun.js +427 -0
- package/dist/src/bin/temporal-bun.js.map +1 -0
- package/dist/src/build_id_preflight.d.ts +7 -0
- package/dist/src/build_id_preflight.d.ts.map +1 -0
- package/dist/src/build_id_preflight.js +123 -0
- package/dist/src/build_id_preflight.js.map +1 -0
- package/dist/src/client/headers.d.ts +4 -0
- package/dist/src/client/headers.d.ts.map +1 -0
- package/dist/src/client/headers.js +79 -0
- package/dist/src/client/headers.js.map +1 -0
- package/dist/src/client/index.d.ts +2 -0
- package/dist/src/client/index.d.ts.map +1 -0
- package/dist/src/client/index.js +2 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/client/interceptors.d.ts +17 -0
- package/dist/src/client/interceptors.d.ts.map +1 -0
- package/dist/src/client/interceptors.js +71 -0
- package/dist/src/client/interceptors.js.map +1 -0
- package/dist/src/client/layer.d.ts +10 -0
- package/dist/src/client/layer.d.ts.map +1 -0
- package/dist/src/client/layer.js +7 -0
- package/dist/src/client/layer.js.map +1 -0
- package/dist/src/client/retries.d.ts +13 -0
- package/dist/src/client/retries.d.ts.map +1 -0
- package/dist/src/client/retries.js +51 -0
- package/dist/src/client/retries.js.map +1 -0
- package/dist/src/client/serialization.d.ts +48 -0
- package/dist/src/client/serialization.d.ts.map +1 -0
- package/dist/src/client/serialization.js +310 -0
- package/dist/src/client/serialization.js.map +1 -0
- package/dist/src/client/serialization.test.d.ts +2 -0
- package/dist/src/client/serialization.test.d.ts.map +1 -0
- package/dist/src/client/serialization.test.js +251 -0
- package/dist/src/client/serialization.test.js.map +1 -0
- package/dist/src/client/transport.d.ts +12 -0
- package/dist/src/client/transport.d.ts.map +1 -0
- package/dist/src/client/transport.js +36 -0
- package/dist/src/client/transport.js.map +1 -0
- package/dist/src/client/types.d.ts +51 -0
- package/dist/src/client/types.d.ts.map +1 -0
- package/dist/src/client/types.js +7 -0
- package/dist/src/client/types.js.map +1 -0
- package/dist/src/client.d.ts +92 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +666 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/common/duration.d.ts +4 -0
- package/dist/src/common/duration.d.ts.map +1 -0
- package/dist/src/common/duration.js +14 -0
- package/dist/src/common/duration.js.map +1 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/common/index.d.ts.map +1 -0
- package/dist/src/common/index.js +2 -0
- package/dist/src/common/index.js.map +1 -0
- package/dist/src/common/payloads/converter.d.ts +16 -0
- package/dist/src/common/payloads/converter.d.ts.map +1 -0
- package/dist/src/common/payloads/converter.js +33 -0
- package/dist/src/common/payloads/converter.js.map +1 -0
- package/dist/src/common/payloads/failure.d.ts +7 -0
- package/dist/src/common/payloads/failure.d.ts.map +1 -0
- package/dist/src/common/payloads/failure.js +53 -0
- package/dist/src/common/payloads/failure.js.map +1 -0
- package/dist/src/common/payloads/index.d.ts +4 -0
- package/dist/src/common/payloads/index.d.ts.map +1 -0
- package/dist/src/common/payloads/index.js +4 -0
- package/dist/src/common/payloads/index.js.map +1 -0
- package/dist/src/common/payloads/json-codec.d.ts +16 -0
- package/dist/src/common/payloads/json-codec.d.ts.map +1 -0
- package/dist/src/common/payloads/json-codec.js +185 -0
- package/dist/src/common/payloads/json-codec.js.map +1 -0
- package/dist/src/common/sleep.d.ts +2 -0
- package/dist/src/common/sleep.d.ts.map +1 -0
- package/dist/src/common/sleep.js +3 -0
- package/dist/src/common/sleep.js.map +1 -0
- package/dist/src/config.d.ts +115 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +505 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/core-bridge/client.d.ts +36 -0
- package/dist/src/core-bridge/client.d.ts.map +1 -0
- package/dist/src/core-bridge/client.js +111 -0
- package/dist/src/core-bridge/client.js.map +1 -0
- package/dist/src/core-bridge/index.d.ts +4 -0
- package/dist/src/core-bridge/index.d.ts.map +1 -0
- package/dist/src/core-bridge/index.js +4 -0
- package/dist/src/core-bridge/index.js.map +1 -0
- package/dist/src/core-bridge/runtime.d.ts +20 -0
- package/dist/src/core-bridge/runtime.d.ts.map +1 -0
- package/dist/src/core-bridge/runtime.js +62 -0
- package/dist/src/core-bridge/runtime.js.map +1 -0
- package/dist/src/core-bridge/runtime.test.d.ts +2 -0
- package/dist/src/core-bridge/runtime.test.d.ts.map +1 -0
- package/dist/src/core-bridge/runtime.test.js +68 -0
- package/dist/src/core-bridge/runtime.test.js.map +1 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +7 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/core-bridge/native.d.ts +176 -0
- package/dist/src/internal/core-bridge/native.d.ts.map +1 -0
- package/dist/src/internal/core-bridge/native.js +1208 -0
- package/dist/src/internal/core-bridge/native.js.map +1 -0
- package/dist/src/observability/index.d.ts +21 -0
- package/dist/src/observability/index.d.ts.map +1 -0
- package/dist/src/observability/index.js +19 -0
- package/dist/src/observability/index.js.map +1 -0
- package/dist/src/observability/logger.d.ts +28 -0
- package/dist/src/observability/logger.d.ts.map +1 -0
- package/dist/src/observability/logger.js +53 -0
- package/dist/src/observability/logger.js.map +1 -0
- package/dist/src/observability/metrics.d.ts +28 -0
- package/dist/src/observability/metrics.d.ts.map +1 -0
- package/dist/src/observability/metrics.js +355 -0
- package/dist/src/observability/metrics.js.map +1 -0
- package/dist/src/proto/google/api/annotations_pb.d.ts +14 -0
- package/dist/src/proto/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/src/proto/google/api/annotations_pb.js +27 -0
- package/dist/src/proto/google/api/annotations_pb.js.map +1 -0
- package/dist/src/proto/google/api/http_pb.d.ts +441 -0
- package/dist/src/proto/google/api/http_pb.d.ts.map +1 -0
- package/dist/src/proto/google/api/http_pb.js +34 -0
- package/dist/src/proto/google/api/http_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts +67 -0
- package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/activity/v1/message_pb.js +17 -0
- package/dist/src/proto/temporal/api/activity/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts +464 -0
- package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/batch/v1/message_pb.js +71 -0
- package/dist/src/proto/temporal/api/batch/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts +796 -0
- package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/command/v1/message_pb.js +106 -0
- package/dist/src/proto/temporal/api/command/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts +751 -0
- package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/common/v1/message_pb.js +133 -0
- package/dist/src/proto/temporal/api/common/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts +639 -0
- package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/deployment/v1/message_pb.js +83 -0
- package/dist/src/proto/temporal/api/deployment/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.d.ts +80 -0
- package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.js +85 -0
- package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/command_type_pb.d.ts +89 -0
- package/dist/src/proto/temporal/api/enums/v1/command_type_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/command_type_pb.js +93 -0
- package/dist/src/proto/temporal/api/enums/v1/command_type_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/common_pb.d.ts +314 -0
- package/dist/src/proto/temporal/api/enums/v1/common_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/common_pb.js +326 -0
- package/dist/src/proto/temporal/api/enums/v1/common_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts +186 -0
- package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js +193 -0
- package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts +407 -0
- package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js +411 -0
- package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts +371 -0
- package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js +380 -0
- package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/namespace_pb.d.ts +73 -0
- package/dist/src/proto/temporal/api/enums/v1/namespace_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/namespace_pb.js +79 -0
- package/dist/src/proto/temporal/api/enums/v1/namespace_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts +35 -0
- package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js +39 -0
- package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/query_pb.d.ts +58 -0
- package/dist/src/proto/temporal/api/enums/v1/query_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/query_pb.js +63 -0
- package/dist/src/proto/temporal/api/enums/v1/query_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/reset_pb.d.ts +108 -0
- package/dist/src/proto/temporal/api/enums/v1/reset_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/reset_pb.js +114 -0
- package/dist/src/proto/temporal/api/enums/v1/reset_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/schedule_pb.d.ts +67 -0
- package/dist/src/proto/temporal/api/enums/v1/schedule_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/schedule_pb.js +71 -0
- package/dist/src/proto/temporal/api/enums/v1/schedule_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts +249 -0
- package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js +259 -0
- package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/update_pb.d.ts +78 -0
- package/dist/src/proto/temporal/api/enums/v1/update_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/update_pb.js +83 -0
- package/dist/src/proto/temporal/api/enums/v1/update_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts +408 -0
- package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js +422 -0
- package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts +331 -0
- package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js +104 -0
- package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts +39 -0
- package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/export/v1/message_pb.js +20 -0
- package/dist/src/proto/temporal/api/export/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts +381 -0
- package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/failure/v1/message_pb.js +74 -0
- package/dist/src/proto/temporal/api/failure/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts +73 -0
- package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/filter/v1/message_pb.js +31 -0
- package/dist/src/proto/temporal/api/filter/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts +3136 -0
- package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/history/v1/message_pb.js +317 -0
- package/dist/src/proto/temporal/api/history/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts +242 -0
- package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/namespace/v1/message_pb.js +46 -0
- package/dist/src/proto/temporal/api/namespace/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts +549 -0
- package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/nexus/v1/message_pb.js +97 -0
- package/dist/src/proto/temporal/api/nexus/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts +499 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.js +137 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.d.ts +153 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.js +22 -0
- package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts +64 -0
- package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/protocol/v1/message_pb.js +15 -0
- package/dist/src/proto/temporal/api/protocol/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts +96 -0
- package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/query/v1/message_pb.js +28 -0
- package/dist/src/proto/temporal/api/query/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts +67 -0
- package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/replication/v1/message_pb.js +26 -0
- package/dist/src/proto/temporal/api/replication/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts +172 -0
- package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/rules/v1/message_pb.js +35 -0
- package/dist/src/proto/temporal/api/rules/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts +779 -0
- package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/schedule/v1/message_pb.js +95 -0
- package/dist/src/proto/temporal/api/schedule/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts +157 -0
- package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.js +34 -0
- package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.d.ts +71 -0
- package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.js +14 -0
- package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts +37 -0
- package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.js +15 -0
- package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.d.ts +84 -0
- package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.js +24 -0
- package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts +99 -0
- package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.js +24 -0
- package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts +757 -0
- package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js +138 -0
- package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts +230 -0
- package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/update/v1/message_pb.js +57 -0
- package/dist/src/proto/temporal/api/update/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts +85 -0
- package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/version/v1/message_pb.js +26 -0
- package/dist/src/proto/temporal/api/version/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts +311 -0
- package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/worker/v1/message_pb.js +42 -0
- package/dist/src/proto/temporal/api/worker/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts +1500 -0
- package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/workflow/v1/message_pb.js +183 -0
- package/dist/src/proto/temporal/api/workflow/v1/message_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts +6967 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js +1073 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js.map +1 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts +1305 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts.map +1 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js +27 -0
- package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js.map +1 -0
- package/dist/src/runtime/cli-layer.d.ts +12 -0
- package/dist/src/runtime/cli-layer.d.ts.map +1 -0
- package/dist/src/runtime/cli-layer.js +19 -0
- package/dist/src/runtime/cli-layer.js.map +1 -0
- package/dist/src/runtime/config-layer.d.ts +9 -0
- package/dist/src/runtime/config-layer.d.ts.map +1 -0
- package/dist/src/runtime/config-layer.js +15 -0
- package/dist/src/runtime/config-layer.js.map +1 -0
- package/dist/src/runtime/effect-layers.d.ts +518 -0
- package/dist/src/runtime/effect-layers.d.ts.map +1 -0
- package/dist/src/runtime/effect-layers.js +68 -0
- package/dist/src/runtime/effect-layers.js.map +1 -0
- package/dist/src/runtime/worker-app.d.ts +14 -0
- package/dist/src/runtime/worker-app.d.ts.map +1 -0
- package/dist/src/runtime/worker-app.js +58 -0
- package/dist/src/runtime/worker-app.js.map +1 -0
- package/dist/src/telemetry/runtime.d.ts +5 -0
- package/dist/src/telemetry/runtime.d.ts.map +1 -0
- package/dist/src/telemetry/runtime.js +94 -0
- package/dist/src/telemetry/runtime.js.map +1 -0
- package/dist/src/worker/activity-context.d.ts +30 -0
- package/dist/src/worker/activity-context.d.ts.map +1 -0
- package/dist/src/worker/activity-context.js +9 -0
- package/dist/src/worker/activity-context.js.map +1 -0
- package/dist/src/worker/build-id.d.ts +20 -0
- package/dist/src/worker/build-id.d.ts.map +1 -0
- package/dist/src/worker/build-id.js +98 -0
- package/dist/src/worker/build-id.js.map +1 -0
- package/dist/src/worker/concurrency.d.ts +31 -0
- package/dist/src/worker/concurrency.d.ts.map +1 -0
- package/dist/src/worker/concurrency.js +129 -0
- package/dist/src/worker/concurrency.js.map +1 -0
- package/dist/src/worker/defaults.d.ts +9 -0
- package/dist/src/worker/defaults.d.ts.map +1 -0
- package/dist/src/worker/defaults.js +53 -0
- package/dist/src/worker/defaults.js.map +1 -0
- package/dist/src/worker/index.d.ts +7 -0
- package/dist/src/worker/index.d.ts.map +1 -0
- package/dist/src/worker/index.js +4 -0
- package/dist/src/worker/index.js.map +1 -0
- package/dist/src/worker/layer.d.ts +19 -0
- package/dist/src/worker/layer.d.ts.map +1 -0
- package/dist/src/worker/layer.js +71 -0
- package/dist/src/worker/layer.js.map +1 -0
- package/dist/src/worker/runtime.d.ts +59 -0
- package/dist/src/worker/runtime.d.ts.map +1 -0
- package/dist/src/worker/runtime.js +1415 -0
- package/dist/src/worker/runtime.js.map +1 -0
- package/dist/src/worker/service.d.ts +19 -0
- package/dist/src/worker/service.d.ts.map +1 -0
- package/dist/src/worker/service.js +14 -0
- package/dist/src/worker/service.js.map +1 -0
- package/dist/src/worker/sticky-cache.d.ts +41 -0
- package/dist/src/worker/sticky-cache.d.ts.map +1 -0
- package/dist/src/worker/sticky-cache.js +127 -0
- package/dist/src/worker/sticky-cache.js.map +1 -0
- package/dist/src/worker.d.ts +30 -0
- package/dist/src/worker.d.ts.map +1 -0
- package/dist/src/worker.js +82 -0
- package/dist/src/worker.js.map +1 -0
- package/dist/src/workflow/commands.d.ts +84 -0
- package/dist/src/workflow/commands.d.ts.map +1 -0
- package/dist/src/workflow/commands.js +159 -0
- package/dist/src/workflow/commands.js.map +1 -0
- package/dist/src/workflow/context.d.ts +119 -0
- package/dist/src/workflow/context.d.ts.map +1 -0
- package/dist/src/workflow/context.js +197 -0
- package/dist/src/workflow/context.js.map +1 -0
- package/dist/src/workflow/definition.d.ts +15 -0
- package/dist/src/workflow/definition.d.ts.map +1 -0
- package/dist/src/workflow/definition.js +19 -0
- package/dist/src/workflow/definition.js.map +1 -0
- package/dist/src/workflow/determinism.d.ts +54 -0
- package/dist/src/workflow/determinism.d.ts.map +1 -0
- package/dist/src/workflow/determinism.js +147 -0
- package/dist/src/workflow/determinism.js.map +1 -0
- package/dist/src/workflow/errors.d.ts +37 -0
- package/dist/src/workflow/errors.d.ts.map +1 -0
- package/dist/src/workflow/errors.js +35 -0
- package/dist/src/workflow/errors.js.map +1 -0
- package/dist/src/workflow/executor.d.ts +35 -0
- package/dist/src/workflow/executor.d.ts.map +1 -0
- package/dist/src/workflow/executor.js +178 -0
- package/dist/src/workflow/executor.js.map +1 -0
- package/dist/src/workflow/index.d.ts +8 -0
- package/dist/src/workflow/index.d.ts.map +1 -0
- package/dist/src/workflow/index.js +8 -0
- package/dist/src/workflow/index.js.map +1 -0
- package/dist/src/workflow/registry.d.ts +9 -0
- package/dist/src/workflow/registry.d.ts.map +1 -0
- package/dist/src/workflow/registry.js +51 -0
- package/dist/src/workflow/registry.js.map +1 -0
- package/dist/src/workflow/replay.d.ts +87 -0
- package/dist/src/workflow/replay.d.ts.map +1 -0
- package/dist/src/workflow/replay.js +759 -0
- package/dist/src/workflow/replay.js.map +1 -0
- package/dist/src/workflow/runtime/bootstrap.d.ts +15 -0
- package/dist/src/workflow/runtime/bootstrap.d.ts.map +1 -0
- package/dist/src/workflow/runtime/bootstrap.js +124 -0
- package/dist/src/workflow/runtime/bootstrap.js.map +1 -0
- package/dist/src/workflow/runtime/engine.d.ts +21 -0
- package/dist/src/workflow/runtime/engine.d.ts.map +1 -0
- package/dist/src/workflow/runtime/engine.js +73 -0
- package/dist/src/workflow/runtime/engine.js.map +1 -0
- package/dist/src/workflow/runtime/environment.d.ts +29 -0
- package/dist/src/workflow/runtime/environment.d.ts.map +1 -0
- package/dist/src/workflow/runtime/environment.js +298 -0
- package/dist/src/workflow/runtime/environment.js.map +1 -0
- package/dist/src/workflow/runtime/index.d.ts +7 -0
- package/dist/src/workflow/runtime/index.d.ts.map +1 -0
- package/dist/src/workflow/runtime/index.js +4 -0
- package/dist/src/workflow/runtime/index.js.map +1 -0
- package/dist/src/workflow/runtime/info.d.ts +5 -0
- package/dist/src/workflow/runtime/info.d.ts.map +1 -0
- package/dist/src/workflow/runtime/info.js +22 -0
- package/dist/src/workflow/runtime/info.js.map +1 -0
- package/dist/src/workflow/runtime/replay.d.ts +26 -0
- package/dist/src/workflow/runtime/replay.d.ts.map +1 -0
- package/dist/src/workflow/runtime/replay.js +254 -0
- package/dist/src/workflow/runtime/replay.js.map +1 -0
- package/dist/src/workflows/index.d.ts +3 -0
- package/dist/src/workflows/index.d.ts.map +1 -0
- package/dist/src/workflows/index.js +15 -0
- package/dist/src/workflows/index.js.map +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { BuildIdTaskReachability, TaskQueueKind, TaskReachability } from "../../enums/v1/task_queue_pb.js";
|
|
4
|
+
import type { WorkerVersionCapabilities } from "../../common/v1/message_pb.js";
|
|
5
|
+
import type { WorkerDeploymentOptions, WorkerDeploymentVersion } from "../../deployment/v1/message_pb.js";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file temporal/api/taskqueue/v1/message.proto.
|
|
9
|
+
*/
|
|
10
|
+
export declare const file_temporal_api_taskqueue_v1_message: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* See https://docs.temporal.io/docs/concepts/task-queues/
|
|
13
|
+
*
|
|
14
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueue
|
|
15
|
+
*/
|
|
16
|
+
export type TaskQueue = Message<"temporal.api.taskqueue.v1.TaskQueue"> & {
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string name = 1;
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Default: TASK_QUEUE_KIND_NORMAL.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: temporal.api.enums.v1.TaskQueueKind kind = 2;
|
|
25
|
+
*/
|
|
26
|
+
kind: TaskQueueKind;
|
|
27
|
+
/**
|
|
28
|
+
* Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
|
|
29
|
+
* the normal task queue that the sticky worker is running on.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string normal_name = 3;
|
|
32
|
+
*/
|
|
33
|
+
normalName: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueue.
|
|
37
|
+
* Use `create(TaskQueueSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export declare const TaskQueueSchema: GenMessage<TaskQueue>;
|
|
40
|
+
/**
|
|
41
|
+
* Only applies to activity task queues
|
|
42
|
+
*
|
|
43
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueMetadata
|
|
44
|
+
*/
|
|
45
|
+
export type TaskQueueMetadata = Message<"temporal.api.taskqueue.v1.TaskQueueMetadata"> & {
|
|
46
|
+
/**
|
|
47
|
+
* Allows throttling dispatch of tasks from this queue
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: google.protobuf.DoubleValue max_tasks_per_second = 1;
|
|
50
|
+
*/
|
|
51
|
+
maxTasksPerSecond?: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueMetadata.
|
|
55
|
+
* Use `create(TaskQueueMetadataSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
export declare const TaskQueueMetadataSchema: GenMessage<TaskQueueMetadata>;
|
|
58
|
+
/**
|
|
59
|
+
* Experimental. Worker Deployments are experimental and might significantly change in the future.
|
|
60
|
+
*
|
|
61
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueVersioningInfo
|
|
62
|
+
*/
|
|
63
|
+
export type TaskQueueVersioningInfo = Message<"temporal.api.taskqueue.v1.TaskQueueVersioningInfo"> & {
|
|
64
|
+
/**
|
|
65
|
+
* Specifies which Deployment Version should receive new workflow executions and tasks of
|
|
66
|
+
* existing unversioned or AutoUpgrade workflows.
|
|
67
|
+
* Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
68
|
+
* Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
|
|
69
|
+
* is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
|
|
72
|
+
*/
|
|
73
|
+
currentDeploymentVersion?: WorkerDeploymentVersion;
|
|
74
|
+
/**
|
|
75
|
+
* Deprecated. Use `current_deployment_version`.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: string current_version = 1 [deprecated = true];
|
|
78
|
+
* @deprecated
|
|
79
|
+
*/
|
|
80
|
+
currentVersion: string;
|
|
81
|
+
/**
|
|
82
|
+
* When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
|
|
83
|
+
* Must always be different from `current_deployment_version` unless both are nil.
|
|
84
|
+
* Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
85
|
+
* Note that it is possible to ramp from one Version to another Version, or from unversioned
|
|
86
|
+
* workers to a particular Version, or from a particular Version to unversioned workers.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
|
|
89
|
+
*/
|
|
90
|
+
rampingDeploymentVersion?: WorkerDeploymentVersion;
|
|
91
|
+
/**
|
|
92
|
+
* Deprecated. Use `ramping_deployment_version`.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: string ramping_version = 2 [deprecated = true];
|
|
95
|
+
* @deprecated
|
|
96
|
+
*/
|
|
97
|
+
rampingVersion: string;
|
|
98
|
+
/**
|
|
99
|
+
* Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
|
|
100
|
+
* Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
|
|
101
|
+
* not yet "promoted" to be the Current Version, likely due to pending validations.
|
|
102
|
+
* A 0% value means the Ramping Version is receiving no traffic.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: float ramping_version_percentage = 3;
|
|
105
|
+
*/
|
|
106
|
+
rampingVersionPercentage: number;
|
|
107
|
+
/**
|
|
108
|
+
* Last time versioning information of this Task Queue changed.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: google.protobuf.Timestamp update_time = 4;
|
|
111
|
+
*/
|
|
112
|
+
updateTime?: Timestamp;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueVersioningInfo.
|
|
116
|
+
* Use `create(TaskQueueVersioningInfoSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export declare const TaskQueueVersioningInfoSchema: GenMessage<TaskQueueVersioningInfo>;
|
|
119
|
+
/**
|
|
120
|
+
* Used for specifying versions the caller is interested in.
|
|
121
|
+
*
|
|
122
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueVersionSelection
|
|
123
|
+
*/
|
|
124
|
+
export type TaskQueueVersionSelection = Message<"temporal.api.taskqueue.v1.TaskQueueVersionSelection"> & {
|
|
125
|
+
/**
|
|
126
|
+
* Include specific Build IDs.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated string build_ids = 1;
|
|
129
|
+
*/
|
|
130
|
+
buildIds: string[];
|
|
131
|
+
/**
|
|
132
|
+
* Include the unversioned queue.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: bool unversioned = 2;
|
|
135
|
+
*/
|
|
136
|
+
unversioned: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Include all active versions. A version is considered active if, in the last few minutes,
|
|
139
|
+
* it has had new tasks or polls, or it has been the subject of certain task queue API calls.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: bool all_active = 3;
|
|
142
|
+
*/
|
|
143
|
+
allActive: boolean;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueVersionSelection.
|
|
147
|
+
* Use `create(TaskQueueVersionSelectionSchema)` to create a new message.
|
|
148
|
+
*/
|
|
149
|
+
export declare const TaskQueueVersionSelectionSchema: GenMessage<TaskQueueVersionSelection>;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueVersionInfo
|
|
152
|
+
*/
|
|
153
|
+
export type TaskQueueVersionInfo = Message<"temporal.api.taskqueue.v1.TaskQueueVersionInfo"> & {
|
|
154
|
+
/**
|
|
155
|
+
* Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: map<int32, temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
|
|
158
|
+
*/
|
|
159
|
+
typesInfo: {
|
|
160
|
+
[key: number]: TaskQueueTypeInfo;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Task Reachability is eventually consistent; there may be a delay until it converges to the most
|
|
164
|
+
* accurate value but it is designed in a way to take the more conservative side until it converges.
|
|
165
|
+
* For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
|
|
166
|
+
*
|
|
167
|
+
* Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
|
|
168
|
+
* accounted for reachability as server cannot know if they'll happen as they do not use
|
|
169
|
+
* assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
|
|
170
|
+
* who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
|
|
171
|
+
* sure to query reachability for the parent/previous workflow's Task Queue as well.
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
|
|
174
|
+
*/
|
|
175
|
+
taskReachability: BuildIdTaskReachability;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueVersionInfo.
|
|
179
|
+
* Use `create(TaskQueueVersionInfoSchema)` to create a new message.
|
|
180
|
+
*/
|
|
181
|
+
export declare const TaskQueueVersionInfoSchema: GenMessage<TaskQueueVersionInfo>;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueTypeInfo
|
|
184
|
+
*/
|
|
185
|
+
export type TaskQueueTypeInfo = Message<"temporal.api.taskqueue.v1.TaskQueueTypeInfo"> & {
|
|
186
|
+
/**
|
|
187
|
+
* Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: repeated temporal.api.taskqueue.v1.PollerInfo pollers = 1;
|
|
190
|
+
*/
|
|
191
|
+
pollers: PollerInfo[];
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: temporal.api.taskqueue.v1.TaskQueueStats stats = 2;
|
|
194
|
+
*/
|
|
195
|
+
stats?: TaskQueueStats;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueTypeInfo.
|
|
199
|
+
* Use `create(TaskQueueTypeInfoSchema)` to create a new message.
|
|
200
|
+
*/
|
|
201
|
+
export declare const TaskQueueTypeInfoSchema: GenMessage<TaskQueueTypeInfo>;
|
|
202
|
+
/**
|
|
203
|
+
* TaskQueueStats contains statistics about task queue backlog and activity.
|
|
204
|
+
*
|
|
205
|
+
* For workflow task queue type, this result is partial because tasks sent to sticky queues are not included. Read
|
|
206
|
+
* comments above each metric to understand the impact of sticky queue exclusion on that metric accuracy.
|
|
207
|
+
*
|
|
208
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueStats
|
|
209
|
+
*/
|
|
210
|
+
export type TaskQueueStats = Message<"temporal.api.taskqueue.v1.TaskQueueStats"> & {
|
|
211
|
+
/**
|
|
212
|
+
* The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually
|
|
213
|
+
* converges to the right value. Can be relied upon for scaling decisions.
|
|
214
|
+
*
|
|
215
|
+
* Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
|
|
216
|
+
* those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size
|
|
217
|
+
* grows.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: int64 approximate_backlog_count = 1;
|
|
220
|
+
*/
|
|
221
|
+
approximateBacklogCount: bigint;
|
|
222
|
+
/**
|
|
223
|
+
* Approximate age of the oldest task in the backlog based on the creation time of the task at the head of
|
|
224
|
+
* the queue. Can be relied upon for scaling decisions.
|
|
225
|
+
*
|
|
226
|
+
* Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
|
|
227
|
+
* those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than
|
|
228
|
+
* few seconds.
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: google.protobuf.Duration approximate_backlog_age = 2;
|
|
231
|
+
*/
|
|
232
|
+
approximateBacklogAge?: Duration;
|
|
233
|
+
/**
|
|
234
|
+
* The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks
|
|
235
|
+
* whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going
|
|
236
|
+
* to the backlog (sync-matched).
|
|
237
|
+
*
|
|
238
|
+
* The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
|
|
239
|
+
* backlog grows/shrinks.
|
|
240
|
+
*
|
|
241
|
+
* Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
|
|
242
|
+
* tasks_add_rate, because:
|
|
243
|
+
* - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
|
|
244
|
+
* enable for activities by default in the latest SDKs.
|
|
245
|
+
* - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
|
|
246
|
+
* workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
|
|
247
|
+
* worker instance.
|
|
248
|
+
*
|
|
249
|
+
* @generated from field: float tasks_add_rate = 3;
|
|
250
|
+
*/
|
|
251
|
+
tasksAddRate: number;
|
|
252
|
+
/**
|
|
253
|
+
* The approximate tasks per second dispatched from the task queue, averaging the last 30 seconds. These includes
|
|
254
|
+
* tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without
|
|
255
|
+
* going to the backlog (sync-matched).
|
|
256
|
+
*
|
|
257
|
+
* The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
|
|
258
|
+
* backlog grows/shrinks.
|
|
259
|
+
*
|
|
260
|
+
* Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
|
|
261
|
+
* tasks_dispatch_rate, because:
|
|
262
|
+
* - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
|
|
263
|
+
* enable for activities by default in the latest SDKs.
|
|
264
|
+
* - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
|
|
265
|
+
* workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
|
|
266
|
+
* worker instance.
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: float tasks_dispatch_rate = 4;
|
|
269
|
+
*/
|
|
270
|
+
tasksDispatchRate: number;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueStats.
|
|
274
|
+
* Use `create(TaskQueueStatsSchema)` to create a new message.
|
|
275
|
+
*/
|
|
276
|
+
export declare const TaskQueueStatsSchema: GenMessage<TaskQueueStats>;
|
|
277
|
+
/**
|
|
278
|
+
* Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.
|
|
279
|
+
*
|
|
280
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueStatus
|
|
281
|
+
*/
|
|
282
|
+
export type TaskQueueStatus = Message<"temporal.api.taskqueue.v1.TaskQueueStatus"> & {
|
|
283
|
+
/**
|
|
284
|
+
* @generated from field: int64 backlog_count_hint = 1;
|
|
285
|
+
*/
|
|
286
|
+
backlogCountHint: bigint;
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: int64 read_level = 2;
|
|
289
|
+
*/
|
|
290
|
+
readLevel: bigint;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from field: int64 ack_level = 3;
|
|
293
|
+
*/
|
|
294
|
+
ackLevel: bigint;
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: double rate_per_second = 4;
|
|
297
|
+
*/
|
|
298
|
+
ratePerSecond: number;
|
|
299
|
+
/**
|
|
300
|
+
* @generated from field: temporal.api.taskqueue.v1.TaskIdBlock task_id_block = 5;
|
|
301
|
+
*/
|
|
302
|
+
taskIdBlock?: TaskIdBlock;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueStatus.
|
|
306
|
+
* Use `create(TaskQueueStatusSchema)` to create a new message.
|
|
307
|
+
*/
|
|
308
|
+
export declare const TaskQueueStatusSchema: GenMessage<TaskQueueStatus>;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from message temporal.api.taskqueue.v1.TaskIdBlock
|
|
311
|
+
*/
|
|
312
|
+
export type TaskIdBlock = Message<"temporal.api.taskqueue.v1.TaskIdBlock"> & {
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: int64 start_id = 1;
|
|
315
|
+
*/
|
|
316
|
+
startId: bigint;
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: int64 end_id = 2;
|
|
319
|
+
*/
|
|
320
|
+
endId: bigint;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Describes the message temporal.api.taskqueue.v1.TaskIdBlock.
|
|
324
|
+
* Use `create(TaskIdBlockSchema)` to create a new message.
|
|
325
|
+
*/
|
|
326
|
+
export declare const TaskIdBlockSchema: GenMessage<TaskIdBlock>;
|
|
327
|
+
/**
|
|
328
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueuePartitionMetadata
|
|
329
|
+
*/
|
|
330
|
+
export type TaskQueuePartitionMetadata = Message<"temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"> & {
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: string key = 1;
|
|
333
|
+
*/
|
|
334
|
+
key: string;
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: string owner_host_name = 2;
|
|
337
|
+
*/
|
|
338
|
+
ownerHostName: string;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueuePartitionMetadata.
|
|
342
|
+
* Use `create(TaskQueuePartitionMetadataSchema)` to create a new message.
|
|
343
|
+
*/
|
|
344
|
+
export declare const TaskQueuePartitionMetadataSchema: GenMessage<TaskQueuePartitionMetadata>;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message temporal.api.taskqueue.v1.PollerInfo
|
|
347
|
+
*/
|
|
348
|
+
export type PollerInfo = Message<"temporal.api.taskqueue.v1.PollerInfo"> & {
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: google.protobuf.Timestamp last_access_time = 1;
|
|
351
|
+
*/
|
|
352
|
+
lastAccessTime?: Timestamp;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: string identity = 2;
|
|
355
|
+
*/
|
|
356
|
+
identity: string;
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: double rate_per_second = 3;
|
|
359
|
+
*/
|
|
360
|
+
ratePerSecond: number;
|
|
361
|
+
/**
|
|
362
|
+
* If a worker has opted into the worker versioning feature while polling, its capabilities will
|
|
363
|
+
* appear here.
|
|
364
|
+
* Deprecated. Replaced by deployment_options.
|
|
365
|
+
*
|
|
366
|
+
* @generated from field: temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4 [deprecated = true];
|
|
367
|
+
* @deprecated
|
|
368
|
+
*/
|
|
369
|
+
workerVersionCapabilities?: WorkerVersionCapabilities;
|
|
370
|
+
/**
|
|
371
|
+
* Worker deployment options that SDK sent to server.
|
|
372
|
+
*
|
|
373
|
+
* @generated from field: temporal.api.deployment.v1.WorkerDeploymentOptions deployment_options = 5;
|
|
374
|
+
*/
|
|
375
|
+
deploymentOptions?: WorkerDeploymentOptions;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Describes the message temporal.api.taskqueue.v1.PollerInfo.
|
|
379
|
+
* Use `create(PollerInfoSchema)` to create a new message.
|
|
380
|
+
*/
|
|
381
|
+
export declare const PollerInfoSchema: GenMessage<PollerInfo>;
|
|
382
|
+
/**
|
|
383
|
+
* @generated from message temporal.api.taskqueue.v1.StickyExecutionAttributes
|
|
384
|
+
*/
|
|
385
|
+
export type StickyExecutionAttributes = Message<"temporal.api.taskqueue.v1.StickyExecutionAttributes"> & {
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: temporal.api.taskqueue.v1.TaskQueue worker_task_queue = 1;
|
|
388
|
+
*/
|
|
389
|
+
workerTaskQueue?: TaskQueue;
|
|
390
|
+
/**
|
|
391
|
+
* (-- api-linter: core::0140::prepositions=disabled
|
|
392
|
+
* aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
393
|
+
*
|
|
394
|
+
* @generated from field: google.protobuf.Duration schedule_to_start_timeout = 2;
|
|
395
|
+
*/
|
|
396
|
+
scheduleToStartTimeout?: Duration;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Describes the message temporal.api.taskqueue.v1.StickyExecutionAttributes.
|
|
400
|
+
* Use `create(StickyExecutionAttributesSchema)` to create a new message.
|
|
401
|
+
*/
|
|
402
|
+
export declare const StickyExecutionAttributesSchema: GenMessage<StickyExecutionAttributes>;
|
|
403
|
+
/**
|
|
404
|
+
* Used by the worker versioning APIs, represents an unordered set of one or more versions which are
|
|
405
|
+
* considered to be compatible with each other. Currently the versions are always worker build IDs.
|
|
406
|
+
*
|
|
407
|
+
* @generated from message temporal.api.taskqueue.v1.CompatibleVersionSet
|
|
408
|
+
*/
|
|
409
|
+
export type CompatibleVersionSet = Message<"temporal.api.taskqueue.v1.CompatibleVersionSet"> & {
|
|
410
|
+
/**
|
|
411
|
+
* All the compatible versions, unordered, except for the last element, which is considered the set "default".
|
|
412
|
+
*
|
|
413
|
+
* @generated from field: repeated string build_ids = 1;
|
|
414
|
+
*/
|
|
415
|
+
buildIds: string[];
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Describes the message temporal.api.taskqueue.v1.CompatibleVersionSet.
|
|
419
|
+
* Use `create(CompatibleVersionSetSchema)` to create a new message.
|
|
420
|
+
*/
|
|
421
|
+
export declare const CompatibleVersionSetSchema: GenMessage<CompatibleVersionSet>;
|
|
422
|
+
/**
|
|
423
|
+
* Reachability of tasks for a worker on a single task queue.
|
|
424
|
+
*
|
|
425
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueReachability
|
|
426
|
+
*/
|
|
427
|
+
export type TaskQueueReachability = Message<"temporal.api.taskqueue.v1.TaskQueueReachability"> & {
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: string task_queue = 1;
|
|
430
|
+
*/
|
|
431
|
+
taskQueue: string;
|
|
432
|
+
/**
|
|
433
|
+
* Task reachability for a worker in a single task queue.
|
|
434
|
+
* See the TaskReachability docstring for information about each enum variant.
|
|
435
|
+
* If reachability is empty, this worker is considered unreachable in this task queue.
|
|
436
|
+
*
|
|
437
|
+
* @generated from field: repeated temporal.api.enums.v1.TaskReachability reachability = 2;
|
|
438
|
+
*/
|
|
439
|
+
reachability: TaskReachability[];
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueReachability.
|
|
443
|
+
* Use `create(TaskQueueReachabilitySchema)` to create a new message.
|
|
444
|
+
*/
|
|
445
|
+
export declare const TaskQueueReachabilitySchema: GenMessage<TaskQueueReachability>;
|
|
446
|
+
/**
|
|
447
|
+
* Reachability of tasks for a worker by build id, in one or more task queues.
|
|
448
|
+
*
|
|
449
|
+
* @generated from message temporal.api.taskqueue.v1.BuildIdReachability
|
|
450
|
+
*/
|
|
451
|
+
export type BuildIdReachability = Message<"temporal.api.taskqueue.v1.BuildIdReachability"> & {
|
|
452
|
+
/**
|
|
453
|
+
* A build id or empty if unversioned.
|
|
454
|
+
*
|
|
455
|
+
* @generated from field: string build_id = 1;
|
|
456
|
+
*/
|
|
457
|
+
buildId: string;
|
|
458
|
+
/**
|
|
459
|
+
* Reachability per task queue.
|
|
460
|
+
*
|
|
461
|
+
* @generated from field: repeated temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2;
|
|
462
|
+
*/
|
|
463
|
+
taskQueueReachability: TaskQueueReachability[];
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Describes the message temporal.api.taskqueue.v1.BuildIdReachability.
|
|
467
|
+
* Use `create(BuildIdReachabilitySchema)` to create a new message.
|
|
468
|
+
*/
|
|
469
|
+
export declare const BuildIdReachabilitySchema: GenMessage<BuildIdReachability>;
|
|
470
|
+
/**
|
|
471
|
+
* @generated from message temporal.api.taskqueue.v1.RampByPercentage
|
|
472
|
+
*/
|
|
473
|
+
export type RampByPercentage = Message<"temporal.api.taskqueue.v1.RampByPercentage"> & {
|
|
474
|
+
/**
|
|
475
|
+
* Acceptable range is [0,100).
|
|
476
|
+
*
|
|
477
|
+
* @generated from field: float ramp_percentage = 1;
|
|
478
|
+
*/
|
|
479
|
+
rampPercentage: number;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Describes the message temporal.api.taskqueue.v1.RampByPercentage.
|
|
483
|
+
* Use `create(RampByPercentageSchema)` to create a new message.
|
|
484
|
+
*/
|
|
485
|
+
export declare const RampByPercentageSchema: GenMessage<RampByPercentage>;
|
|
486
|
+
/**
|
|
487
|
+
* Assignment rules are applied to *new* Workflow and Activity executions at
|
|
488
|
+
* schedule time to assign them to a Build ID.
|
|
489
|
+
*
|
|
490
|
+
* Assignment rules will not be used in the following cases:
|
|
491
|
+
* - Child Workflows or Continue-As-New Executions who inherit their
|
|
492
|
+
* parent/previous Workflow's assigned Build ID (by setting the
|
|
493
|
+
* `inherit_build_id` flag - default behavior in SDKs when the same Task Queue
|
|
494
|
+
* is used.)
|
|
495
|
+
* - An Activity that inherits the assigned Build ID of its Workflow (by
|
|
496
|
+
* setting the `use_workflow_build_id` flag - default behavior in SDKs
|
|
497
|
+
* when the same Task Queue is used.)
|
|
498
|
+
*
|
|
499
|
+
* In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s)
|
|
500
|
+
* the task will be dispatched to Workers of the Build ID determined by the
|
|
501
|
+
* assignment rules (or inherited). Otherwise, the final Build ID will be
|
|
502
|
+
* determined by the redirect rules.
|
|
503
|
+
*
|
|
504
|
+
* Once a Workflow completes its first Workflow Task in a particular Build ID it
|
|
505
|
+
* stays in that Build ID regardless of changes to assignment rules. Redirect
|
|
506
|
+
* rules can be used to move the workflow to another compatible Build ID.
|
|
507
|
+
*
|
|
508
|
+
* When using Worker Versioning on a Task Queue, in the steady state,
|
|
509
|
+
* there should typically be a single assignment rule to send all new executions
|
|
510
|
+
* to the latest Build ID. Existence of at least one such "unconditional"
|
|
511
|
+
* rule at all times is enforces by the system, unless the `force` flag is used
|
|
512
|
+
* by the user when replacing/deleting these rules (for exceptional cases).
|
|
513
|
+
*
|
|
514
|
+
* During a deployment, one or more additional rules can be added to assign a
|
|
515
|
+
* subset of the tasks to a new Build ID based on a "ramp percentage".
|
|
516
|
+
*
|
|
517
|
+
* When there are multiple assignment rules for a Task Queue, the rules are
|
|
518
|
+
* evaluated in order, starting from index 0. The first applicable rule will be
|
|
519
|
+
* applied and the rest will be ignored.
|
|
520
|
+
*
|
|
521
|
+
* In the event that no assignment rule is applicable on a task (or the Task
|
|
522
|
+
* Queue is simply not versioned), the tasks will be dispatched to an
|
|
523
|
+
* unversioned Worker.
|
|
524
|
+
*
|
|
525
|
+
* @generated from message temporal.api.taskqueue.v1.BuildIdAssignmentRule
|
|
526
|
+
*/
|
|
527
|
+
export type BuildIdAssignmentRule = Message<"temporal.api.taskqueue.v1.BuildIdAssignmentRule"> & {
|
|
528
|
+
/**
|
|
529
|
+
* @generated from field: string target_build_id = 1;
|
|
530
|
+
*/
|
|
531
|
+
targetBuildId: string;
|
|
532
|
+
/**
|
|
533
|
+
* If a ramp is provided, this rule will be applied only to a sample of
|
|
534
|
+
* tasks according to the provided percentage.
|
|
535
|
+
* This option can be used only on "terminal" Build IDs (the ones not used
|
|
536
|
+
* as source in any redirect rules).
|
|
537
|
+
*
|
|
538
|
+
* @generated from oneof temporal.api.taskqueue.v1.BuildIdAssignmentRule.ramp
|
|
539
|
+
*/
|
|
540
|
+
ramp: {
|
|
541
|
+
/**
|
|
542
|
+
* This ramp is useful for gradual Blue/Green deployments (and similar)
|
|
543
|
+
* where you want to send a certain portion of the traffic to the target
|
|
544
|
+
* Build ID.
|
|
545
|
+
*
|
|
546
|
+
* @generated from field: temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
|
|
547
|
+
*/
|
|
548
|
+
value: RampByPercentage;
|
|
549
|
+
case: "percentageRamp";
|
|
550
|
+
} | {
|
|
551
|
+
case: undefined;
|
|
552
|
+
value?: undefined;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* Describes the message temporal.api.taskqueue.v1.BuildIdAssignmentRule.
|
|
557
|
+
* Use `create(BuildIdAssignmentRuleSchema)` to create a new message.
|
|
558
|
+
*/
|
|
559
|
+
export declare const BuildIdAssignmentRuleSchema: GenMessage<BuildIdAssignmentRule>;
|
|
560
|
+
/**
|
|
561
|
+
* These rules apply to tasks assigned to a particular Build ID
|
|
562
|
+
* (`source_build_id`) to redirect them to another *compatible* Build ID
|
|
563
|
+
* (`target_build_id`).
|
|
564
|
+
*
|
|
565
|
+
* It is user's responsibility to ensure that the target Build ID is compatible
|
|
566
|
+
* with the source Build ID (e.g. by using the Patching API).
|
|
567
|
+
*
|
|
568
|
+
* Most deployments are not expected to need these rules, however following
|
|
569
|
+
* situations can greatly benefit from redirects:
|
|
570
|
+
* - Need to move long-running Workflow Executions from an old Build ID to a
|
|
571
|
+
* newer one.
|
|
572
|
+
* - Need to hotfix some broken or stuck Workflow Executions.
|
|
573
|
+
*
|
|
574
|
+
* In steady state, redirect rules are beneficial when dealing with old
|
|
575
|
+
* Executions ran on now-decommissioned Build IDs:
|
|
576
|
+
* - To redirecting the Workflow Queries to the current (compatible) Build ID.
|
|
577
|
+
* - To be able to Reset an old Execution so it can run on the current
|
|
578
|
+
* (compatible) Build ID.
|
|
579
|
+
*
|
|
580
|
+
* Redirect rules can be chained.
|
|
581
|
+
*
|
|
582
|
+
* @generated from message temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule
|
|
583
|
+
*/
|
|
584
|
+
export type CompatibleBuildIdRedirectRule = Message<"temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule"> & {
|
|
585
|
+
/**
|
|
586
|
+
* @generated from field: string source_build_id = 1;
|
|
587
|
+
*/
|
|
588
|
+
sourceBuildId: string;
|
|
589
|
+
/**
|
|
590
|
+
* Target Build ID must be compatible with the Source Build ID; that is it
|
|
591
|
+
* must be able to process event histories made by the Source Build ID by
|
|
592
|
+
* using [Patching](https://docs.temporal.io/workflows#patching) or other
|
|
593
|
+
* means.
|
|
594
|
+
*
|
|
595
|
+
* @generated from field: string target_build_id = 2;
|
|
596
|
+
*/
|
|
597
|
+
targetBuildId: string;
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Describes the message temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule.
|
|
601
|
+
* Use `create(CompatibleBuildIdRedirectRuleSchema)` to create a new message.
|
|
602
|
+
*/
|
|
603
|
+
export declare const CompatibleBuildIdRedirectRuleSchema: GenMessage<CompatibleBuildIdRedirectRule>;
|
|
604
|
+
/**
|
|
605
|
+
* @generated from message temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule
|
|
606
|
+
*/
|
|
607
|
+
export type TimestampedBuildIdAssignmentRule = Message<"temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule"> & {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: temporal.api.taskqueue.v1.BuildIdAssignmentRule rule = 1;
|
|
610
|
+
*/
|
|
611
|
+
rule?: BuildIdAssignmentRule;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: google.protobuf.Timestamp create_time = 2;
|
|
614
|
+
*/
|
|
615
|
+
createTime?: Timestamp;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Describes the message temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule.
|
|
619
|
+
* Use `create(TimestampedBuildIdAssignmentRuleSchema)` to create a new message.
|
|
620
|
+
*/
|
|
621
|
+
export declare const TimestampedBuildIdAssignmentRuleSchema: GenMessage<TimestampedBuildIdAssignmentRule>;
|
|
622
|
+
/**
|
|
623
|
+
* @generated from message temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule
|
|
624
|
+
*/
|
|
625
|
+
export type TimestampedCompatibleBuildIdRedirectRule = Message<"temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule"> & {
|
|
626
|
+
/**
|
|
627
|
+
* @generated from field: temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule rule = 1;
|
|
628
|
+
*/
|
|
629
|
+
rule?: CompatibleBuildIdRedirectRule;
|
|
630
|
+
/**
|
|
631
|
+
* @generated from field: google.protobuf.Timestamp create_time = 2;
|
|
632
|
+
*/
|
|
633
|
+
createTime?: Timestamp;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Describes the message temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule.
|
|
637
|
+
* Use `create(TimestampedCompatibleBuildIdRedirectRuleSchema)` to create a new message.
|
|
638
|
+
*/
|
|
639
|
+
export declare const TimestampedCompatibleBuildIdRedirectRuleSchema: GenMessage<TimestampedCompatibleBuildIdRedirectRule>;
|
|
640
|
+
/**
|
|
641
|
+
* Attached to task responses to give hints to the SDK about how it may adjust its number of
|
|
642
|
+
* pollers.
|
|
643
|
+
*
|
|
644
|
+
* @generated from message temporal.api.taskqueue.v1.PollerScalingDecision
|
|
645
|
+
*/
|
|
646
|
+
export type PollerScalingDecision = Message<"temporal.api.taskqueue.v1.PollerScalingDecision"> & {
|
|
647
|
+
/**
|
|
648
|
+
* How many poll requests to suggest should be added or removed, if any. As of now, server only
|
|
649
|
+
* scales up or down by 1. However, SDKs should allow for other values (while staying within
|
|
650
|
+
* defined min/max).
|
|
651
|
+
*
|
|
652
|
+
* The SDK is free to ignore this suggestion, EX: making more polls would not make sense because
|
|
653
|
+
* all slots are already occupied.
|
|
654
|
+
*
|
|
655
|
+
* @generated from field: int32 poll_request_delta_suggestion = 1;
|
|
656
|
+
*/
|
|
657
|
+
pollRequestDeltaSuggestion: number;
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Describes the message temporal.api.taskqueue.v1.PollerScalingDecision.
|
|
661
|
+
* Use `create(PollerScalingDecisionSchema)` to create a new message.
|
|
662
|
+
*/
|
|
663
|
+
export declare const PollerScalingDecisionSchema: GenMessage<PollerScalingDecision>;
|
|
664
|
+
/**
|
|
665
|
+
* @generated from message temporal.api.taskqueue.v1.RateLimit
|
|
666
|
+
*/
|
|
667
|
+
export type RateLimit = Message<"temporal.api.taskqueue.v1.RateLimit"> & {
|
|
668
|
+
/**
|
|
669
|
+
* Zero is a valid rate limit.
|
|
670
|
+
*
|
|
671
|
+
* @generated from field: float requests_per_second = 1;
|
|
672
|
+
*/
|
|
673
|
+
requestsPerSecond: number;
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* Describes the message temporal.api.taskqueue.v1.RateLimit.
|
|
677
|
+
* Use `create(RateLimitSchema)` to create a new message.
|
|
678
|
+
*/
|
|
679
|
+
export declare const RateLimitSchema: GenMessage<RateLimit>;
|
|
680
|
+
/**
|
|
681
|
+
* @generated from message temporal.api.taskqueue.v1.ConfigMetadata
|
|
682
|
+
*/
|
|
683
|
+
export type ConfigMetadata = Message<"temporal.api.taskqueue.v1.ConfigMetadata"> & {
|
|
684
|
+
/**
|
|
685
|
+
* Reason for why the config was set.
|
|
686
|
+
*
|
|
687
|
+
* @generated from field: string reason = 1;
|
|
688
|
+
*/
|
|
689
|
+
reason: string;
|
|
690
|
+
/**
|
|
691
|
+
* Identity of the last updater.
|
|
692
|
+
* Set by the request's identity field.
|
|
693
|
+
*
|
|
694
|
+
* @generated from field: string update_identity = 2;
|
|
695
|
+
*/
|
|
696
|
+
updateIdentity: string;
|
|
697
|
+
/**
|
|
698
|
+
* Time of the last update.
|
|
699
|
+
*
|
|
700
|
+
* @generated from field: google.protobuf.Timestamp update_time = 3;
|
|
701
|
+
*/
|
|
702
|
+
updateTime?: Timestamp;
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* Describes the message temporal.api.taskqueue.v1.ConfigMetadata.
|
|
706
|
+
* Use `create(ConfigMetadataSchema)` to create a new message.
|
|
707
|
+
*/
|
|
708
|
+
export declare const ConfigMetadataSchema: GenMessage<ConfigMetadata>;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from message temporal.api.taskqueue.v1.RateLimitConfig
|
|
711
|
+
*/
|
|
712
|
+
export type RateLimitConfig = Message<"temporal.api.taskqueue.v1.RateLimitConfig"> & {
|
|
713
|
+
/**
|
|
714
|
+
* @generated from field: temporal.api.taskqueue.v1.RateLimit rate_limit = 1;
|
|
715
|
+
*/
|
|
716
|
+
rateLimit?: RateLimit;
|
|
717
|
+
/**
|
|
718
|
+
* @generated from field: temporal.api.taskqueue.v1.ConfigMetadata metadata = 2;
|
|
719
|
+
*/
|
|
720
|
+
metadata?: ConfigMetadata;
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* Describes the message temporal.api.taskqueue.v1.RateLimitConfig.
|
|
724
|
+
* Use `create(RateLimitConfigSchema)` to create a new message.
|
|
725
|
+
*/
|
|
726
|
+
export declare const RateLimitConfigSchema: GenMessage<RateLimitConfig>;
|
|
727
|
+
/**
|
|
728
|
+
* @generated from message temporal.api.taskqueue.v1.TaskQueueConfig
|
|
729
|
+
*/
|
|
730
|
+
export type TaskQueueConfig = Message<"temporal.api.taskqueue.v1.TaskQueueConfig"> & {
|
|
731
|
+
/**
|
|
732
|
+
* Unless modified, this is the system-defined rate limit.
|
|
733
|
+
*
|
|
734
|
+
* @generated from field: temporal.api.taskqueue.v1.RateLimitConfig queue_rate_limit = 1;
|
|
735
|
+
*/
|
|
736
|
+
queueRateLimit?: RateLimitConfig;
|
|
737
|
+
/**
|
|
738
|
+
* If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key.
|
|
739
|
+
*
|
|
740
|
+
* @generated from field: temporal.api.taskqueue.v1.RateLimitConfig fairness_keys_rate_limit_default = 2;
|
|
741
|
+
*/
|
|
742
|
+
fairnessKeysRateLimitDefault?: RateLimitConfig;
|
|
743
|
+
/**
|
|
744
|
+
* If set, overrides the fairness weights for the corresponding fairness keys.
|
|
745
|
+
*
|
|
746
|
+
* @generated from field: map<string, float> fairness_weight_overrides = 3;
|
|
747
|
+
*/
|
|
748
|
+
fairnessWeightOverrides: {
|
|
749
|
+
[key: string]: number;
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* Describes the message temporal.api.taskqueue.v1.TaskQueueConfig.
|
|
754
|
+
* Use `create(TaskQueueConfigSchema)` to create a new message.
|
|
755
|
+
*/
|
|
756
|
+
export declare const TaskQueueConfigSchema: GenMessage<TaskQueueConfig>;
|
|
757
|
+
//# sourceMappingURL=message_pb.d.ts.map
|