autotel-aws 0.13.13 → 0.13.14

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.
Files changed (205) hide show
  1. package/dist/attributes.cjs +155 -46
  2. package/dist/attributes.cjs.map +1 -1
  3. package/dist/attributes.d.cts +64 -62
  4. package/dist/attributes.d.cts.map +1 -0
  5. package/dist/attributes.d.ts +64 -62
  6. package/dist/attributes.d.ts.map +1 -0
  7. package/dist/attributes.js +146 -3
  8. package/dist/attributes.js.map +1 -1
  9. package/dist/cloudwatch.cjs +324 -358
  10. package/dist/cloudwatch.cjs.map +1 -1
  11. package/dist/cloudwatch.d.cts +126 -153
  12. package/dist/cloudwatch.d.cts.map +1 -0
  13. package/dist/cloudwatch.d.ts +126 -153
  14. package/dist/cloudwatch.d.ts.map +1 -0
  15. package/dist/cloudwatch.js +323 -356
  16. package/dist/cloudwatch.js.map +1 -1
  17. package/dist/config-D8QZwF1e.d.ts +123 -0
  18. package/dist/config-D8QZwF1e.d.ts.map +1 -0
  19. package/dist/config-SPkMWWXY.d.cts +123 -0
  20. package/dist/config-SPkMWWXY.d.cts.map +1 -0
  21. package/dist/dynamodb.cjs +89 -11
  22. package/dist/dynamodb.cjs.map +1 -1
  23. package/dist/dynamodb.d.cts +15 -63
  24. package/dist/dynamodb.d.cts.map +1 -0
  25. package/dist/dynamodb.d.ts +15 -63
  26. package/dist/dynamodb.d.ts.map +1 -0
  27. package/dist/dynamodb.js +90 -4
  28. package/dist/dynamodb.js.map +1 -1
  29. package/dist/eventbridge.cjs +423 -261
  30. package/dist/eventbridge.cjs.map +1 -1
  31. package/dist/eventbridge.d.cts +113 -174
  32. package/dist/eventbridge.d.cts.map +1 -0
  33. package/dist/eventbridge.d.ts +113 -174
  34. package/dist/eventbridge.d.ts.map +1 -0
  35. package/dist/eventbridge.js +422 -259
  36. package/dist/eventbridge.js.map +1 -1
  37. package/dist/index.cjs +117 -241
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +42 -55
  40. package/dist/index.d.cts.map +1 -0
  41. package/dist/index.d.ts +42 -55
  42. package/dist/index.d.ts.map +1 -0
  43. package/dist/index.js +62 -41
  44. package/dist/index.js.map +1 -1
  45. package/dist/kinesis.cjs +485 -20
  46. package/dist/kinesis.cjs.map +1 -1
  47. package/dist/kinesis.d.cts +179 -226
  48. package/dist/kinesis.d.cts.map +1 -0
  49. package/dist/kinesis.d.ts +179 -226
  50. package/dist/kinesis.d.ts.map +1 -0
  51. package/dist/kinesis.js +484 -5
  52. package/dist/kinesis.js.map +1 -1
  53. package/dist/lambda-B0LQa5vS.d.ts +168 -0
  54. package/dist/lambda-B0LQa5vS.d.ts.map +1 -0
  55. package/dist/lambda-DR33vPpL.cjs +500 -0
  56. package/dist/lambda-DR33vPpL.cjs.map +1 -0
  57. package/dist/lambda-DYyKH-f-.js +453 -0
  58. package/dist/lambda-DYyKH-f-.js.map +1 -0
  59. package/dist/lambda-DnroO4Od.d.cts +168 -0
  60. package/dist/lambda-DnroO4Od.d.cts.map +1 -0
  61. package/dist/lambda-auto.cjs +33 -16
  62. package/dist/lambda-auto.cjs.map +1 -1
  63. package/dist/lambda-auto.d.cts +1 -2
  64. package/dist/lambda-auto.d.ts +1 -2
  65. package/dist/lambda-auto.js +35 -15
  66. package/dist/lambda-auto.js.map +1 -1
  67. package/dist/lambda.cjs +11 -42
  68. package/dist/lambda.d.cts +3 -231
  69. package/dist/lambda.d.ts +3 -231
  70. package/dist/lambda.js +3 -5
  71. package/dist/s3.cjs +70 -11
  72. package/dist/s3.cjs.map +1 -1
  73. package/dist/s3.d.cts +15 -51
  74. package/dist/s3.d.cts.map +1 -0
  75. package/dist/s3.d.ts +15 -51
  76. package/dist/s3.d.ts.map +1 -0
  77. package/dist/s3.js +71 -4
  78. package/dist/s3.js.map +1 -1
  79. package/dist/sdk-C-o7ngkk.js +198 -0
  80. package/dist/sdk-C-o7ngkk.js.map +1 -0
  81. package/dist/sdk-C9Nvlh7R.cjs +222 -0
  82. package/dist/sdk-C9Nvlh7R.cjs.map +1 -0
  83. package/dist/sdk-CXqc4o_q.d.ts +135 -0
  84. package/dist/sdk-CXqc4o_q.d.ts.map +1 -0
  85. package/dist/sdk-DkAItj4z.d.cts +135 -0
  86. package/dist/sdk-DkAItj4z.d.cts.map +1 -0
  87. package/dist/sdk-wrapper-BDrcyEQ_.cjs +161 -0
  88. package/dist/sdk-wrapper-BDrcyEQ_.cjs.map +1 -0
  89. package/dist/sdk-wrapper-BVr62EfA.js +120 -0
  90. package/dist/sdk-wrapper-BVr62EfA.js.map +1 -0
  91. package/dist/sdk.cjs +8 -31
  92. package/dist/sdk.d.cts +3 -156
  93. package/dist/sdk.d.ts +3 -156
  94. package/dist/sdk.js +3 -6
  95. package/dist/sns.cjs +305 -16
  96. package/dist/sns.cjs.map +1 -1
  97. package/dist/sns.d.cts +109 -155
  98. package/dist/sns.d.cts.map +1 -0
  99. package/dist/sns.d.ts +109 -155
  100. package/dist/sns.d.ts.map +1 -0
  101. package/dist/sns.js +305 -5
  102. package/dist/sns.js.map +1 -1
  103. package/dist/sqs.cjs +455 -20
  104. package/dist/sqs.cjs.map +1 -1
  105. package/dist/sqs.d.cts +191 -240
  106. package/dist/sqs.d.cts.map +1 -0
  107. package/dist/sqs.d.ts +191 -240
  108. package/dist/sqs.d.ts.map +1 -0
  109. package/dist/sqs.js +454 -5
  110. package/dist/sqs.js.map +1 -1
  111. package/dist/step-functions.cjs +557 -32
  112. package/dist/step-functions.cjs.map +1 -1
  113. package/dist/step-functions.d.cts +155 -210
  114. package/dist/step-functions.d.cts.map +1 -0
  115. package/dist/step-functions.d.ts +155 -210
  116. package/dist/step-functions.d.ts.map +1 -0
  117. package/dist/step-functions.js +553 -5
  118. package/dist/step-functions.js.map +1 -1
  119. package/dist/testing.cjs +60 -58
  120. package/dist/testing.cjs.map +1 -1
  121. package/dist/testing.d.cts +20 -23
  122. package/dist/testing.d.cts.map +1 -0
  123. package/dist/testing.d.ts +20 -23
  124. package/dist/testing.d.ts.map +1 -0
  125. package/dist/testing.js +59 -57
  126. package/dist/testing.js.map +1 -1
  127. package/dist/{types-B2Mi8Goj.d.cts → types-0uHbJsBN.d.ts} +5 -7
  128. package/dist/types-0uHbJsBN.d.ts.map +1 -0
  129. package/dist/types-DOUDks8I.d.cts +71 -0
  130. package/dist/types-DOUDks8I.d.cts.map +1 -0
  131. package/dist/types-DOUDks8I.d.ts +71 -0
  132. package/dist/types-DOUDks8I.d.ts.map +1 -0
  133. package/dist/{types-BqTI4s4V.d.ts → types-iyHj03Q1.d.cts} +5 -7
  134. package/dist/types-iyHj03Q1.d.cts.map +1 -0
  135. package/dist/xray-B46i6z6K.js +59 -0
  136. package/dist/xray-B46i6z6K.js.map +1 -0
  137. package/dist/xray-CG4jciQs.d.ts +19 -0
  138. package/dist/xray-CG4jciQs.d.ts.map +1 -0
  139. package/dist/xray-Cd2UiVRA.cjs +75 -0
  140. package/dist/xray-Cd2UiVRA.cjs.map +1 -0
  141. package/dist/xray-DDcKCKKo.d.cts +19 -0
  142. package/dist/xray-DDcKCKKo.d.cts.map +1 -0
  143. package/dist/xray.cjs +10 -23
  144. package/dist/xray.d.cts +3 -24
  145. package/dist/xray.d.ts +3 -24
  146. package/dist/xray.js +3 -5
  147. package/package.json +5 -5
  148. package/dist/chunk-35F3UBOO.cjs +0 -48
  149. package/dist/chunk-35F3UBOO.cjs.map +0 -1
  150. package/dist/chunk-4THGOYZL.js +0 -387
  151. package/dist/chunk-4THGOYZL.js.map +0 -1
  152. package/dist/chunk-CIGXV6HA.js +0 -192
  153. package/dist/chunk-CIGXV6HA.js.map +0 -1
  154. package/dist/chunk-DGUM43GV.js +0 -10
  155. package/dist/chunk-DGUM43GV.js.map +0 -1
  156. package/dist/chunk-DHHLKZHI.cjs +0 -23
  157. package/dist/chunk-DHHLKZHI.cjs.map +0 -1
  158. package/dist/chunk-HMTKKKKP.cjs +0 -390
  159. package/dist/chunk-HMTKKKKP.cjs.map +0 -1
  160. package/dist/chunk-I4CKQ4RD.js +0 -153
  161. package/dist/chunk-I4CKQ4RD.js.map +0 -1
  162. package/dist/chunk-JEQ2X3Z6.cjs +0 -12
  163. package/dist/chunk-JEQ2X3Z6.cjs.map +0 -1
  164. package/dist/chunk-JL33WEVE.js +0 -341
  165. package/dist/chunk-JL33WEVE.js.map +0 -1
  166. package/dist/chunk-JMSFE6FJ.js +0 -24
  167. package/dist/chunk-JMSFE6FJ.js.map +0 -1
  168. package/dist/chunk-JPDJPOIB.js +0 -78
  169. package/dist/chunk-JPDJPOIB.js.map +0 -1
  170. package/dist/chunk-KNRQYDAS.cjs +0 -394
  171. package/dist/chunk-KNRQYDAS.cjs.map +0 -1
  172. package/dist/chunk-NQ65Y5AI.cjs +0 -195
  173. package/dist/chunk-NQ65Y5AI.cjs.map +0 -1
  174. package/dist/chunk-OB4XTAVK.cjs +0 -345
  175. package/dist/chunk-OB4XTAVK.cjs.map +0 -1
  176. package/dist/chunk-OHFR7WX5.js +0 -341
  177. package/dist/chunk-OHFR7WX5.js.map +0 -1
  178. package/dist/chunk-PZGYL7XZ.js +0 -40
  179. package/dist/chunk-PZGYL7XZ.js.map +0 -1
  180. package/dist/chunk-Q3DMMQ7K.cjs +0 -164
  181. package/dist/chunk-Q3DMMQ7K.cjs.map +0 -1
  182. package/dist/chunk-SPC4VYOI.cjs +0 -350
  183. package/dist/chunk-SPC4VYOI.cjs.map +0 -1
  184. package/dist/chunk-UZEJV2YD.cjs +0 -139
  185. package/dist/chunk-UZEJV2YD.cjs.map +0 -1
  186. package/dist/chunk-VZHQH75L.cjs +0 -26
  187. package/dist/chunk-VZHQH75L.cjs.map +0 -1
  188. package/dist/chunk-X6BY6PCK.js +0 -386
  189. package/dist/chunk-X6BY6PCK.js.map +0 -1
  190. package/dist/chunk-XOF2H2PI.cjs +0 -84
  191. package/dist/chunk-XOF2H2PI.cjs.map +0 -1
  192. package/dist/chunk-YG56NRIO.js +0 -131
  193. package/dist/chunk-YG56NRIO.js.map +0 -1
  194. package/dist/chunk-ZPDRKCAR.js +0 -21
  195. package/dist/chunk-ZPDRKCAR.js.map +0 -1
  196. package/dist/config-DbZv4bpy.d.ts +0 -125
  197. package/dist/config-srkLBXZH.d.cts +0 -125
  198. package/dist/lambda.cjs.map +0 -1
  199. package/dist/lambda.js.map +0 -1
  200. package/dist/sdk.cjs.map +0 -1
  201. package/dist/sdk.js.map +0 -1
  202. package/dist/types-B9IaHmGa.d.cts +0 -73
  203. package/dist/types-B9IaHmGa.d.ts +0 -73
  204. package/dist/xray.cjs.map +0 -1
  205. package/dist/xray.js.map +0 -1
@@ -1,145 +1,89 @@
1
- import { TraceContext } from 'autotel';
2
- import { SpanContext } from '@opentelemetry/api';
3
-
4
- /**
5
- * Step Functions instrumentation
6
- *
7
- * Provides semantic helpers for tracing AWS Step Functions operations
8
- * with context propagation for distributed tracing across state machines.
9
- *
10
- * @example Start workflow with trace context
11
- * ```typescript
12
- * import { StepFunctionsExecutor, injectTraceContext } from 'autotel-aws/step-functions';
13
- * import { SFNClient } from '@aws-sdk/client-sfn';
14
- *
15
- * const sfn = new SFNClient({});
16
- * const executor = new StepFunctionsExecutor(sfn, {
17
- * stateMachineArn: 'arn:aws:states:us-east-1:123456789:stateMachine:OrderProcessor'
18
- * });
19
- *
20
- * // Start execution with automatic trace context injection
21
- * const result = await executor.startExecution({
22
- * input: { orderId: '123', items: [...] },
23
- * name: 'order-123-execution'
24
- * });
25
- * ```
26
- *
27
- * @example Extract context in Lambda invoked by Step Functions
28
- * ```typescript
29
- * import { extractStepFunctionsContext } from 'autotel-aws/step-functions';
30
- * import { wrapHandler } from 'autotel-aws/lambda';
31
- *
32
- * export const handler = wrapHandler(async (event) => {
33
- * // Extract trace context from Step Functions input
34
- * const parentContext = extractStepFunctionsContext(event);
35
- *
36
- * // Process the order (without the trace context fields)
37
- * const { orderId, items } = event;
38
- * await processOrder(orderId, items);
39
- *
40
- * return { status: 'completed' };
41
- * });
42
- * ```
43
- *
44
- * @example Activity worker with context propagation
45
- * ```typescript
46
- * import { StepFunctionsActivityWorker } from 'autotel-aws/step-functions';
47
- *
48
- * const worker = new StepFunctionsActivityWorker(sfn, {
49
- * activityArn: 'arn:aws:states:us-east-1:123456789:activity:ProcessPayment'
50
- * });
51
- *
52
- * // Worker extracts trace context and creates child spans
53
- * await worker.poll(async (input, taskToken, ctx) => {
54
- * ctx.setAttribute('payment.amount', input.amount);
55
- * const result = await processPayment(input);
56
- * return result;
57
- * });
58
- * ```
59
- */
1
+ import { TraceContext } from "autotel";
2
+ import { SpanContext } from "@opentelemetry/api";
60
3
 
4
+ //#region src/step-functions/index.d.ts
61
5
  /**
62
6
  * Step Functions operation configuration
63
7
  */
64
8
  interface TraceStepFunctionConfig {
65
- /**
66
- * State machine ARN
67
- * Sets `aws.stepfunctions.state_machine_arn` attribute.
68
- */
69
- stateMachineArn: string;
70
- /**
71
- * Operation type
72
- * Used to generate the span name: `stepfunctions.{operation}`
73
- * @default 'execute'
74
- */
75
- operation?: 'StartExecution' | 'DescribeExecution' | 'StopExecution' | 'ListExecutions' | 'SendTaskSuccess' | 'SendTaskFailure' | 'execute';
9
+ /**
10
+ * State machine ARN
11
+ * Sets `aws.stepfunctions.state_machine_arn` attribute.
12
+ */
13
+ stateMachineArn: string;
14
+ /**
15
+ * Operation type
16
+ * Used to generate the span name: `stepfunctions.{operation}`
17
+ * @default 'execute'
18
+ */
19
+ operation?: 'StartExecution' | 'DescribeExecution' | 'StopExecution' | 'ListExecutions' | 'SendTaskSuccess' | 'SendTaskFailure' | 'execute';
76
20
  }
77
21
  /**
78
22
  * Configuration for StepFunctionsExecutor
79
23
  */
80
24
  interface StepFunctionsExecutorConfig {
81
- /**
82
- * State machine ARN
83
- */
84
- stateMachineArn: string;
85
- /**
86
- * Inject W3C Trace Context into execution input
87
- * @default true
88
- */
89
- injectTraceContext?: boolean;
90
- /**
91
- * Optional service name for tracing
92
- */
93
- service?: string;
25
+ /**
26
+ * State machine ARN
27
+ */
28
+ stateMachineArn: string;
29
+ /**
30
+ * Inject W3C Trace Context into execution input
31
+ * @default true
32
+ */
33
+ injectTraceContext?: boolean;
34
+ /**
35
+ * Optional service name for tracing
36
+ */
37
+ service?: string;
94
38
  }
95
39
  /**
96
40
  * Execution input with optional trace context
97
41
  */
98
42
  interface ExecutionInput<T = Record<string, unknown>> {
99
- /**
100
- * The input data for the execution
101
- */
102
- input: T;
103
- /**
104
- * Optional execution name (must be unique within 90 days)
105
- */
106
- name?: string;
107
- /**
108
- * Optional trace ID for idempotency
109
- */
110
- traceHeader?: string;
43
+ /**
44
+ * The input data for the execution
45
+ */
46
+ input: T;
47
+ /**
48
+ * Optional execution name (must be unique within 90 days)
49
+ */
50
+ name?: string;
51
+ /**
52
+ * Optional trace ID for idempotency
53
+ */
54
+ traceHeader?: string;
111
55
  }
112
56
  /**
113
57
  * Configuration for StepFunctionsActivityWorker
114
58
  */
115
59
  interface StepFunctionsActivityWorkerConfig {
116
- /**
117
- * Activity ARN
118
- */
119
- activityArn: string;
120
- /**
121
- * Worker name for identification
122
- */
123
- workerName?: string;
124
- /**
125
- * Extract trace context from activity input
126
- * @default true
127
- */
128
- extractTraceContext?: boolean;
129
- /**
130
- * Optional service name for tracing
131
- */
132
- service?: string;
60
+ /**
61
+ * Activity ARN
62
+ */
63
+ activityArn: string;
64
+ /**
65
+ * Worker name for identification
66
+ */
67
+ workerName?: string;
68
+ /**
69
+ * Extract trace context from activity input
70
+ * @default true
71
+ */
72
+ extractTraceContext?: boolean;
73
+ /**
74
+ * Optional service name for tracing
75
+ */
76
+ service?: string;
133
77
  }
134
78
  /**
135
79
  * Trace context fields injected into Step Functions input
136
80
  */
137
81
  interface TraceContextFields {
138
- _traceContext?: {
139
- traceparent: string;
140
- tracestate?: string;
141
- baggage?: string;
142
- };
82
+ _traceContext?: {
83
+ traceparent: string;
84
+ tracestate?: string;
85
+ baggage?: string;
86
+ };
143
87
  }
144
88
  /**
145
89
  * Inject W3C Trace Context into Step Functions execution input
@@ -277,70 +221,70 @@ declare function traceStepFunction(config: TraceStepFunctionConfig): <TArgs exte
277
221
  * ```
278
222
  */
279
223
  declare class StepFunctionsExecutor<TClient extends {
280
- send: (command: any) => Promise<any>;
224
+ send: (command: any) => Promise<any>;
281
225
  } = any> {
282
- private client;
283
- private config;
284
- private stateMachineName;
285
- constructor(client: TClient, config: StepFunctionsExecutorConfig);
286
- /**
287
- * Start a new execution of the state machine
288
- *
289
- * @param execution - Execution input and optional name
290
- * @returns Promise with execution ARN and start date
291
- */
292
- startExecution<T extends Record<string, unknown>>(execution: ExecutionInput<T>): Promise<{
293
- executionArn?: string;
294
- startDate?: Date;
295
- }>;
296
- /**
297
- * Start a synchronous execution (Express workflows only)
298
- *
299
- * @param execution - Execution input and optional name
300
- * @returns Promise with execution result including output
301
- */
302
- startSyncExecution<T extends Record<string, unknown>>(execution: ExecutionInput<T>): Promise<{
303
- executionArn?: string;
304
- status?: 'SUCCEEDED' | 'FAILED' | 'TIMED_OUT';
305
- output?: string;
306
- error?: string;
307
- cause?: string;
308
- billingDetails?: {
309
- billedMemoryUsedInMB?: number;
310
- billedDurationInMilliseconds?: number;
311
- };
312
- }>;
313
- /**
314
- * Describe an execution
315
- *
316
- * @param executionArn - ARN of the execution to describe
317
- * @returns Promise with execution details
318
- */
319
- describeExecution(executionArn: string): Promise<{
320
- executionArn?: string;
321
- stateMachineArn?: string;
322
- name?: string;
323
- status?: string;
324
- startDate?: Date;
325
- stopDate?: Date;
326
- input?: string;
327
- output?: string;
328
- error?: string;
329
- cause?: string;
330
- }>;
331
- /**
332
- * Stop an execution
333
- *
334
- * @param executionArn - ARN of the execution to stop
335
- * @param options - Optional error and cause for the stop
336
- * @returns Promise with stop date
337
- */
338
- stopExecution(executionArn: string, options?: {
339
- error?: string;
340
- cause?: string;
341
- }): Promise<{
342
- stopDate?: Date;
343
- }>;
226
+ private client;
227
+ private config;
228
+ private stateMachineName;
229
+ constructor(client: TClient, config: StepFunctionsExecutorConfig);
230
+ /**
231
+ * Start a new execution of the state machine
232
+ *
233
+ * @param execution - Execution input and optional name
234
+ * @returns Promise with execution ARN and start date
235
+ */
236
+ startExecution<T extends Record<string, unknown>>(execution: ExecutionInput<T>): Promise<{
237
+ executionArn?: string;
238
+ startDate?: Date;
239
+ }>;
240
+ /**
241
+ * Start a synchronous execution (Express workflows only)
242
+ *
243
+ * @param execution - Execution input and optional name
244
+ * @returns Promise with execution result including output
245
+ */
246
+ startSyncExecution<T extends Record<string, unknown>>(execution: ExecutionInput<T>): Promise<{
247
+ executionArn?: string;
248
+ status?: 'SUCCEEDED' | 'FAILED' | 'TIMED_OUT';
249
+ output?: string;
250
+ error?: string;
251
+ cause?: string;
252
+ billingDetails?: {
253
+ billedMemoryUsedInMB?: number;
254
+ billedDurationInMilliseconds?: number;
255
+ };
256
+ }>;
257
+ /**
258
+ * Describe an execution
259
+ *
260
+ * @param executionArn - ARN of the execution to describe
261
+ * @returns Promise with execution details
262
+ */
263
+ describeExecution(executionArn: string): Promise<{
264
+ executionArn?: string;
265
+ stateMachineArn?: string;
266
+ name?: string;
267
+ status?: string;
268
+ startDate?: Date;
269
+ stopDate?: Date;
270
+ input?: string;
271
+ output?: string;
272
+ error?: string;
273
+ cause?: string;
274
+ }>;
275
+ /**
276
+ * Stop an execution
277
+ *
278
+ * @param executionArn - ARN of the execution to stop
279
+ * @param options - Optional error and cause for the stop
280
+ * @returns Promise with stop date
281
+ */
282
+ stopExecution(executionArn: string, options?: {
283
+ error?: string;
284
+ cause?: string;
285
+ }): Promise<{
286
+ stopDate?: Date;
287
+ }>;
344
288
  }
345
289
  /**
346
290
  * Step Functions Activity Worker with trace context extraction
@@ -389,35 +333,36 @@ declare class StepFunctionsExecutor<TClient extends {
389
333
  * ```
390
334
  */
391
335
  declare class StepFunctionsActivityWorker<TClient extends {
392
- send: (command: any) => Promise<any>;
336
+ send: (command: any) => Promise<any>;
393
337
  } = any> {
394
- private client;
395
- private config;
396
- private activityName;
397
- constructor(client: TClient, config: StepFunctionsActivityWorkerConfig);
398
- /**
399
- * Poll for an activity task and process it
400
- *
401
- * @param processor - Function to process the task input
402
- * @returns Promise that resolves when the task is processed
403
- */
404
- poll<TInput extends Record<string, unknown>, TOutput>(processor: (input: TInput, taskToken: string, ctx: TraceContext) => Promise<TOutput>): Promise<void>;
405
- /**
406
- * Send a task heartbeat
407
- *
408
- * For long-running activities, send heartbeats to prevent timeout.
409
- *
410
- * @param taskToken - The task token from GetActivityTask
411
- */
412
- sendHeartbeat(taskToken: string): Promise<void>;
413
- /**
414
- * Send task failure
415
- *
416
- * @param taskToken - The task token from GetActivityTask
417
- * @param error - Error code
418
- * @param cause - Error cause description
419
- */
420
- sendFailure(taskToken: string, error: string, cause?: string): Promise<void>;
338
+ private client;
339
+ private config;
340
+ private activityName;
341
+ constructor(client: TClient, config: StepFunctionsActivityWorkerConfig);
342
+ /**
343
+ * Poll for an activity task and process it
344
+ *
345
+ * @param processor - Function to process the task input
346
+ * @returns Promise that resolves when the task is processed
347
+ */
348
+ poll<TInput extends Record<string, unknown>, TOutput>(processor: (input: TInput, taskToken: string, ctx: TraceContext) => Promise<TOutput>): Promise<void>;
349
+ /**
350
+ * Send a task heartbeat
351
+ *
352
+ * For long-running activities, send heartbeats to prevent timeout.
353
+ *
354
+ * @param taskToken - The task token from GetActivityTask
355
+ */
356
+ sendHeartbeat(taskToken: string): Promise<void>;
357
+ /**
358
+ * Send task failure
359
+ *
360
+ * @param taskToken - The task token from GetActivityTask
361
+ * @param error - Error code
362
+ * @param cause - Error cause description
363
+ */
364
+ sendFailure(taskToken: string, error: string, cause?: string): Promise<void>;
421
365
  }
422
-
423
- export { type ExecutionInput, StepFunctionsActivityWorker, type StepFunctionsActivityWorkerConfig, StepFunctionsExecutor, type StepFunctionsExecutorConfig, type TraceStepFunctionConfig, extractStepFunctionsContext, injectTraceContext, stripTraceContext, traceStepFunction };
366
+ //#endregion
367
+ export { ExecutionInput, StepFunctionsActivityWorker, StepFunctionsActivityWorkerConfig, StepFunctionsExecutor, StepFunctionsExecutorConfig, TraceStepFunctionConfig, extractStepFunctionsContext, injectTraceContext, stripTraceContext, traceStepFunction };
368
+ //# sourceMappingURL=step-functions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-functions.d.cts","names":[],"sources":["../src/step-functions/index.ts"],"mappings":";;;;;;;UAsEiB,uBAAA;EA+Hf;;;;EA1HA,eAAA;EAkKc;;;;AAEF;EA7JZ,SAAS;AAAA;;;;UAaM,2BAAA;EAuMd;;;EAnMD,eAAA;EAiM0C;;;;EA3L1C,kBAAA;EA6LO;AAAA;AA0CT;EAlOE,OAAA;AAAA;;;;UAMe,cAAA,KAAmB,MAAA;EAgOe;;;EA5NjD,KAAA,EAAO,CAAC;EA6NsB;;;EAxN9B,IAAA;EAsNwB;;;EAjNxB,WAAA;AAAA;;;;UAMe,iCAAA;EA6MR;;;EAzMP,WAAA;EAyMsC;AAAA;AAiExC;EArQE,UAAA;EAqQgC;;;;EA/PhC,mBAAA;EAyR4B;;;EApR5B,OAAA;AAAA;;;;UAMQ,kBAAA;EACR,aAAA;IACE,WAAA;IACA,UAAA;IACA,OAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;iBA8BY,kBAAA,WAA6B,MAAA,mBAC3C,KAAA,EAAO,CAAA,GACN,CAAA,GAAI,kBAAA;;;;;;;;;;;;;;;;;;;;;;iBAuCS,2BAAA,CACd,KAAA,YACC,WAAW;;;;;;;;;;;;;;;;iBAqDE,iBAAA,WAA4B,MAAA,mBAC1C,KAAA,EAAO,CAAA,GACN,IAAA,CAAK,CAAA;AA6VsB;AAmF9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAnF8B,iBAnTd,iBAAA,CAAkB,MAAA,EAAQ,uBAAA,sCAItC,EAAA,GAAK,GAAA,EAAK,YAAA,SAAqB,IAAA,EAAM,KAAA,KAAU,OAAA,CAAQ,OAAA,UAClD,IAAA,EAAM,KAAA,KAAU,OAAA,CAAQ,OAAA;;;;;;;;;;;;;;;;;;AA2gBrB;;;;;;;;;;;;;;;;;;;;;;;cA1cC,qBAAA;EAEO,IAAA,GAAO,OAAA,UAAiB,OAAA;AAAA;EAAA,QAElC,MAAA;EAAA,QACA,MAAA;EAAA,QAEA,gBAAA;cAEI,MAAA,EAAQ,OAAA,EAAS,MAAA,EAAQ,2BAAA;;;;;;;EAgB/B,cAAA,WAAyB,MAAA,mBAC7B,SAAA,EAAW,cAAA,CAAe,CAAA,IACzB,OAAA;IACD,YAAA;IACA,SAAA,GAAY,IAAA;EAAA;;;;;;;EAwDR,kBAAA,WAA6B,MAAA,mBACjC,SAAA,EAAW,cAAA,CAAe,CAAA,IACzB,OAAA;IACD,YAAA;IACA,MAAA;IACA,MAAA;IACA,KAAA;IACA,KAAA;IACA,cAAA;MACE,oBAAA;MACA,4BAAA;IAAA;EAAA;;;;;;;EA8EE,iBAAA,CAAkB,YAAA,WAAuB,OAAA;IAC7C,YAAA;IACA,eAAA;IACA,IAAA;IACA,MAAA;IACA,SAAA,GAAY,IAAA;IACZ,QAAA,GAAW,IAAA;IACX,KAAA;IACA,MAAA;IACA,KAAA;IACA,KAAA;EAAA;;;;;;;;EAmDI,aAAA,CACJ,YAAA,UACA,OAAA;IAAY,KAAA;IAAgB,KAAA;EAAA,IAC3B,OAAA;IAAU,QAAA,GAAW,IAAA;EAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmFb,2BAAA;EAEO,IAAA,GAAO,OAAA,UAAiB,OAAA;AAAA;EAAA,QAElC,MAAA;EAAA,QACA,MAAA;EAAA,QAEA,YAAA;cAEI,MAAA,EAAQ,OAAA,EAAS,MAAA,EAAQ,iCAAA;;;;;;;EAgB/B,IAAA,gBAAoB,MAAA,4BACxB,SAAA,GACE,KAAA,EAAO,MAAA,EACP,SAAA,UACA,GAAA,EAAK,YAAA,KACF,OAAA,CAAQ,OAAA,IACZ,OAAA;;;;;;;;EA6EG,aAAA,CAAc,SAAA,WAAoB,OAAA;;;;;;;;EA0BlC,WAAA,CACJ,SAAA,UACA,KAAA,UACA,KAAA,YACC,OAAA;AAAA"}