@flowrensic/node 0.6.19 → 0.6.21

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 (98) hide show
  1. package/README.md +35 -2
  2. package/dist/cjs/client-interceptor.d.ts +19 -8
  3. package/dist/cjs/client-interceptor.d.ts.map +1 -1
  4. package/dist/cjs/client-interceptor.js +47 -23
  5. package/dist/cjs/client-interceptor.js.map +1 -1
  6. package/dist/cjs/client.d.ts +3 -1
  7. package/dist/cjs/client.d.ts.map +1 -1
  8. package/dist/cjs/client.js +2 -0
  9. package/dist/cjs/client.js.map +1 -1
  10. package/dist/cjs/gen/flowrensic/v1/client_calls_pb.d.ts +87 -3
  11. package/dist/cjs/gen/flowrensic/v1/client_calls_pb.d.ts.map +1 -1
  12. package/dist/cjs/gen/flowrensic/v1/client_calls_pb.js +17 -2
  13. package/dist/cjs/gen/flowrensic/v1/client_calls_pb.js.map +1 -1
  14. package/dist/cjs/gen/flowrensic/v1/remediation_pb.d.ts +317 -0
  15. package/dist/cjs/gen/flowrensic/v1/remediation_pb.d.ts.map +1 -0
  16. package/dist/cjs/gen/flowrensic/v1/remediation_pb.js +97 -0
  17. package/dist/cjs/gen/flowrensic/v1/remediation_pb.js.map +1 -0
  18. package/dist/cjs/gen/flowrensic/v1/replay_pb.d.ts +94 -0
  19. package/dist/cjs/gen/flowrensic/v1/replay_pb.d.ts.map +1 -1
  20. package/dist/cjs/gen/flowrensic/v1/replay_pb.js +17 -2
  21. package/dist/cjs/gen/flowrensic/v1/replay_pb.js.map +1 -1
  22. package/dist/cjs/gen/flowrensic/v1/reset_pb.d.ts +154 -0
  23. package/dist/cjs/gen/flowrensic/v1/reset_pb.d.ts.map +1 -0
  24. package/dist/cjs/gen/flowrensic/v1/reset_pb.js +78 -0
  25. package/dist/cjs/gen/flowrensic/v1/reset_pb.js.map +1 -0
  26. package/dist/cjs/gen/flowrensic/v1/services_pb.d.ts +100 -2
  27. package/dist/cjs/gen/flowrensic/v1/services_pb.d.ts.map +1 -1
  28. package/dist/cjs/gen/flowrensic/v1/services_pb.js +19 -2
  29. package/dist/cjs/gen/flowrensic/v1/services_pb.js.map +1 -1
  30. package/dist/cjs/gen/flowrensic/v1/workflow_types_pb.d.ts +279 -0
  31. package/dist/cjs/gen/flowrensic/v1/workflow_types_pb.d.ts.map +1 -0
  32. package/dist/cjs/gen/flowrensic/v1/workflow_types_pb.js +50 -0
  33. package/dist/cjs/gen/flowrensic/v1/workflow_types_pb.js.map +1 -0
  34. package/dist/cjs/index.d.ts +8 -2
  35. package/dist/cjs/index.d.ts.map +1 -1
  36. package/dist/cjs/index.js +7 -1
  37. package/dist/cjs/index.js.map +1 -1
  38. package/dist/cjs/query-sink.d.ts +33 -0
  39. package/dist/cjs/query-sink.d.ts.map +1 -0
  40. package/dist/cjs/query-sink.js +59 -0
  41. package/dist/cjs/query-sink.js.map +1 -0
  42. package/dist/cjs/sink.d.ts +26 -11
  43. package/dist/cjs/sink.d.ts.map +1 -1
  44. package/dist/cjs/sink.js +87 -32
  45. package/dist/cjs/sink.js.map +1 -1
  46. package/dist/cjs/workflow.d.ts +11 -0
  47. package/dist/cjs/workflow.d.ts.map +1 -0
  48. package/dist/cjs/workflow.js +25 -0
  49. package/dist/cjs/workflow.js.map +1 -0
  50. package/dist/esm/client-interceptor.d.ts +19 -8
  51. package/dist/esm/client-interceptor.d.ts.map +1 -1
  52. package/dist/esm/client-interceptor.js +47 -23
  53. package/dist/esm/client-interceptor.js.map +1 -1
  54. package/dist/esm/client.d.ts +3 -1
  55. package/dist/esm/client.d.ts.map +1 -1
  56. package/dist/esm/client.js +3 -1
  57. package/dist/esm/client.js.map +1 -1
  58. package/dist/esm/gen/flowrensic/v1/client_calls_pb.d.ts +87 -3
  59. package/dist/esm/gen/flowrensic/v1/client_calls_pb.d.ts.map +1 -1
  60. package/dist/esm/gen/flowrensic/v1/client_calls_pb.js +16 -1
  61. package/dist/esm/gen/flowrensic/v1/client_calls_pb.js.map +1 -1
  62. package/dist/esm/gen/flowrensic/v1/remediation_pb.d.ts +317 -0
  63. package/dist/esm/gen/flowrensic/v1/remediation_pb.d.ts.map +1 -0
  64. package/dist/esm/gen/flowrensic/v1/remediation_pb.js +94 -0
  65. package/dist/esm/gen/flowrensic/v1/remediation_pb.js.map +1 -0
  66. package/dist/esm/gen/flowrensic/v1/replay_pb.d.ts +94 -0
  67. package/dist/esm/gen/flowrensic/v1/replay_pb.d.ts.map +1 -1
  68. package/dist/esm/gen/flowrensic/v1/replay_pb.js +16 -1
  69. package/dist/esm/gen/flowrensic/v1/replay_pb.js.map +1 -1
  70. package/dist/esm/gen/flowrensic/v1/reset_pb.d.ts +154 -0
  71. package/dist/esm/gen/flowrensic/v1/reset_pb.d.ts.map +1 -0
  72. package/dist/esm/gen/flowrensic/v1/reset_pb.js +75 -0
  73. package/dist/esm/gen/flowrensic/v1/reset_pb.js.map +1 -0
  74. package/dist/esm/gen/flowrensic/v1/services_pb.d.ts +100 -2
  75. package/dist/esm/gen/flowrensic/v1/services_pb.d.ts.map +1 -1
  76. package/dist/esm/gen/flowrensic/v1/services_pb.js +18 -1
  77. package/dist/esm/gen/flowrensic/v1/services_pb.js.map +1 -1
  78. package/dist/esm/gen/flowrensic/v1/workflow_types_pb.d.ts +279 -0
  79. package/dist/esm/gen/flowrensic/v1/workflow_types_pb.d.ts.map +1 -0
  80. package/dist/esm/gen/flowrensic/v1/workflow_types_pb.js +47 -0
  81. package/dist/esm/gen/flowrensic/v1/workflow_types_pb.js.map +1 -0
  82. package/dist/esm/index.d.ts +8 -2
  83. package/dist/esm/index.d.ts.map +1 -1
  84. package/dist/esm/index.js +3 -0
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/query-sink.d.ts +33 -0
  87. package/dist/esm/query-sink.d.ts.map +1 -0
  88. package/dist/esm/query-sink.js +56 -0
  89. package/dist/esm/query-sink.js.map +1 -0
  90. package/dist/esm/sink.d.ts +26 -11
  91. package/dist/esm/sink.d.ts.map +1 -1
  92. package/dist/esm/sink.js +86 -32
  93. package/dist/esm/sink.js.map +1 -1
  94. package/dist/esm/workflow.d.ts +11 -0
  95. package/dist/esm/workflow.d.ts.map +1 -0
  96. package/dist/esm/workflow.js +21 -0
  97. package/dist/esm/workflow.js.map +1 -0
  98. package/package.json +15 -3
package/README.md CHANGED
@@ -81,8 +81,41 @@ separately.
81
81
  Activity inbound only, and publishing failures are swallowed. Telemetry must
82
82
  never fail the activity it measures.
83
83
 
84
+ ## Query and signal counts
85
+
86
+ The Workflow types page counts the queries each workflow type answers. The
87
+ worker needs the workflow module and the sinks:
88
+
89
+ ```ts
90
+ import { createRequire } from 'node:module';
91
+ import { flowrensicQuerySinks } from '@flowrensic/node';
92
+
93
+ const queries = flowrensicQuerySinks({ baseUrl: 'http://flowrensic:8080', namespaceId, envKey });
94
+
95
+ const worker = await Worker.create({
96
+ // ...
97
+ interceptors: {
98
+ activity: [flowrensicInterceptor(sink, namespaceId)],
99
+ workflowModules: [createRequire(import.meta.url).resolve('@flowrensic/node/workflow')],
100
+ },
101
+ sinks: queries.sinks,
102
+ });
103
+ // Before the process ends:
104
+ await queries.buffer.close();
105
+ ```
106
+
107
+ The client interceptor sends the queries and signals that fail or get no
108
+ answer:
109
+
110
+ ```ts
111
+ const interceptor = flowrensicClientInterceptor({ baseUrl: 'http://flowrensic:8080', namespaceId, envKey });
112
+ const client = new Client({ connection, interceptors: { workflow: [interceptor] } });
113
+ // Before the process ends:
114
+ await interceptor.close();
115
+ ```
116
+
84
117
  ## Peers
85
118
 
86
- `@temporalio/worker`, `@temporalio/common`, `@temporalio/activity`, 1.24 or
87
- newer, for the interceptor. The replay runs on your SDK, not on one this
119
+ `@temporalio/worker`, `@temporalio/common`, `@temporalio/activity`,
120
+ `@temporalio/workflow`, 1.24 or newer, for the interceptors. The replay runs on your SDK, not on one this
88
121
  package pins.
@@ -1,6 +1,7 @@
1
- import type { WorkflowClientInterceptor, WorkflowQueryInput } from '@temporalio/client';
1
+ import type { WorkflowClientInterceptor, WorkflowQueryInput, WorkflowSignalInput } from '@temporalio/client';
2
2
  import type { Next } from '@temporalio/common';
3
- export interface ClientInterceptorOptions {
3
+ import { type BufferOptions, type SinkCounts } from './sink.js';
4
+ export interface ClientInterceptorOptions extends BufferOptions {
4
5
  /** The Flowrensic server to send to. */
5
6
  baseUrl: string;
6
7
  /** The Flowrensic namespace id of the namespace this client talks to, the same one the worker interceptor is given. */
@@ -9,19 +10,29 @@ export interface ClientInterceptorOptions {
9
10
  envKey?: string;
10
11
  }
11
12
  /**
12
- * Sends every query that throws to Flowrensic, with the workflow it was for and
13
- * whether it ended on its deadline. A query that works is not sent. Sending
14
- * never changes what the caller gets: a failed send is dropped.
13
+ * Sends every query and signal that throws to Flowrensic, with its name, the
14
+ * workflow it was for and whether it ended on its deadline. A call that works
15
+ * is not sent. The calls wait in a buffer and are sent in batches, as the
16
+ * worker sink sends attempts, so sending never changes what the caller gets or
17
+ * how long it waits.
15
18
  */
16
19
  export declare class FlowrensicClientInterceptor implements WorkflowClientInterceptor {
17
20
  private readonly options;
18
- private readonly client;
21
+ private readonly buffer;
19
22
  constructor(options: ClientInterceptorOptions);
20
23
  query(input: WorkflowQueryInput, next: Next<WorkflowClientInterceptor, 'query'>): Promise<unknown>;
21
- private send;
24
+ signal(input: WorkflowSignalInput, next: Next<WorkflowClientInterceptor, 'signal'>): Promise<void>;
25
+ /** Send what is buffered and wait for it to land. */
26
+ flush(): Promise<void>;
27
+ /** Send what is buffered and stop. */
28
+ close(): Promise<void>;
29
+ /** What the buffer lost and holds. */
30
+ counts(): SinkCounts;
31
+ private record;
22
32
  }
23
33
  /**
24
34
  * Pass to `new Client({ interceptors: { workflow: [flowrensicClientInterceptor({ baseUrl, namespaceId })] } })`.
35
+ * Call close before the process ends, so the calls still waiting are sent.
25
36
  */
26
- export declare function flowrensicClientInterceptor(options: ClientInterceptorOptions): WorkflowClientInterceptor;
37
+ export declare function flowrensicClientInterceptor(options: ClientInterceptorOptions): FlowrensicClientInterceptor;
27
38
  //# sourceMappingURL=client-interceptor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-interceptor.d.ts","sourceRoot":"","sources":["../../src/client-interceptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAY/C,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,uHAAuH;IACvH,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwBD;;;;GAIG;AACH,qBAAa,2BAA4B,YAAW,yBAAyB;IAG/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C,YAA6B,OAAO,EAAE,wBAAwB,EAE7D;IAEK,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAOvG;YAEa,IAAI;CAoBnB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,wBAAwB,GAAG,yBAAyB,CAExG"}
1
+ {"version":3,"file":"client-interceptor.d.ts","sourceRoot":"","sources":["../../src/client-interceptor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7G,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,OAAO,EAAsB,KAAK,aAAa,EAAmB,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AASrG,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,uHAAuH;IACvH,WAAW,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwBD;;;;;;GAMG;AACH,qBAAa,2BAA4B,YAAW,yBAAyB;IAG/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD,YAA6B,OAAO,EAAE,wBAAwB,EAW7D;IAEK,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAOvG;IAEK,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,IAAI,CAAC,yBAAyB,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAOvG;IAED,qDAAqD;IAC/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3B;IAED,sCAAsC;IAChC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3B;IAED,sCAAsC;IACtC,MAAM,IAAI,UAAU,CAEnB;IAED,OAAO,CAAC,MAAM;CAcf;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,wBAAwB,GAAG,2BAA2B,CAE1G"}
@@ -5,6 +5,7 @@ exports.flowrensicClientInterceptor = flowrensicClientInterceptor;
5
5
  const wkt_1 = require("@bufbuild/protobuf/wkt");
6
6
  const client_js_1 = require("./client.js");
7
7
  const client_calls_pb_js_1 = require("./gen/flowrensic/v1/client_calls_pb.js");
8
+ const sink_js_1 = require("./sink.js");
8
9
  /** The gRPC status a call that ended on its deadline carries. */
9
10
  const DEADLINE_EXCEEDED = 4;
10
11
  /** The gRPC status of a cancelled call. */
@@ -31,51 +32,74 @@ function endedOnDeadline(err) {
31
32
  return status.code === CANCELLED && status.details !== CANCELLED_ON_CLIENT;
32
33
  }
33
34
  /**
34
- * Sends every query that throws to Flowrensic, with the workflow it was for and
35
- * whether it ended on its deadline. A query that works is not sent. Sending
36
- * never changes what the caller gets: a failed send is dropped.
35
+ * Sends every query and signal that throws to Flowrensic, with its name, the
36
+ * workflow it was for and whether it ended on its deadline. A call that works
37
+ * is not sent. The calls wait in a buffer and are sent in batches, as the
38
+ * worker sink sends attempts, so sending never changes what the caller gets or
39
+ * how long it waits.
37
40
  */
38
41
  class FlowrensicClientInterceptor {
39
42
  options;
40
- client;
43
+ buffer;
41
44
  constructor(options) {
42
45
  this.options = options;
43
- this.client = (0, client_js_1.createFlowrensicClient)(options.baseUrl, options.envKey === undefined ? {} : { envKey: options.envKey });
46
+ const client = (0, client_js_1.createFlowrensicClient)(options.baseUrl, options.envKey === undefined ? {} : { envKey: options.envKey });
47
+ this.buffer = (0, sink_js_1.createRecordBuffer)({
48
+ async send(calls, timeoutMs) {
49
+ await client.ingest.ingestClientCalls({ calls }, { timeoutMs });
50
+ },
51
+ envOf: () => '',
52
+ }, options);
44
53
  }
45
54
  async query(input, next) {
46
55
  try {
47
56
  return await next(input);
48
57
  }
49
58
  catch (err) {
50
- await this.send(input, err);
59
+ this.record('query', input.queryType, input.workflowExecution, err);
51
60
  throw err;
52
61
  }
53
62
  }
54
- async send(input, err) {
55
- const timedOut = endedOnDeadline(err);
63
+ async signal(input, next) {
56
64
  try {
57
- await this.client.ingest.ingestClientCalls({
58
- calls: [
59
- {
60
- namespaceId: this.options.namespaceId,
61
- workflowId: input.workflowExecution.workflowId,
62
- runId: input.workflowExecution.runId ?? '',
63
- kind: 'query',
64
- outcome: timedOut ? client_calls_pb_js_1.ClientCallOutcome.TIMED_OUT : client_calls_pb_js_1.ClientCallOutcome.FAILED,
65
- errorType: err instanceof Error ? err.constructor.name : 'Unknown',
66
- endedAt: (0, wkt_1.timestampFromDate)(new Date()),
67
- },
68
- ],
69
- });
65
+ await next(input);
70
66
  }
71
- catch {
72
- // A failed send must not change what the caller gets.
67
+ catch (err) {
68
+ this.record('signal', input.signalName, input.workflowExecution, err);
69
+ throw err;
73
70
  }
74
71
  }
72
+ /** Send what is buffered and wait for it to land. */
73
+ async flush() {
74
+ await this.buffer.flush();
75
+ }
76
+ /** Send what is buffered and stop. */
77
+ async close() {
78
+ await this.buffer.close();
79
+ }
80
+ /** What the buffer lost and holds. */
81
+ counts() {
82
+ return this.buffer.counts();
83
+ }
84
+ record(kind, name, execution, err) {
85
+ const timedOut = endedOnDeadline(err);
86
+ this.buffer.record({
87
+ $typeName: 'flowrensic.v1.ClientCall',
88
+ namespaceId: this.options.namespaceId,
89
+ workflowId: execution.workflowId,
90
+ runId: execution.runId ?? '',
91
+ kind,
92
+ name,
93
+ outcome: timedOut ? client_calls_pb_js_1.ClientCallOutcome.TIMED_OUT : client_calls_pb_js_1.ClientCallOutcome.FAILED,
94
+ errorType: err instanceof Error ? err.constructor.name : 'Unknown',
95
+ endedAt: (0, wkt_1.timestampFromDate)(new Date()),
96
+ });
97
+ }
75
98
  }
76
99
  exports.FlowrensicClientInterceptor = FlowrensicClientInterceptor;
77
100
  /**
78
101
  * Pass to `new Client({ interceptors: { workflow: [flowrensicClientInterceptor({ baseUrl, namespaceId })] } })`.
102
+ * Call close before the process ends, so the calls still waiting are sent.
79
103
  */
80
104
  function flowrensicClientInterceptor(options) {
81
105
  return new FlowrensicClientInterceptor(options);
@@ -1 +1 @@
1
- {"version":3,"file":"client-interceptor.js","sourceRoot":"","sources":["../../src/client-interceptor.ts"],"names":[],"mappings":";;;;AAAA,gDAA2D;AAI3D,2CAA4E;AAC5E,+EAA2E;AAE3E,iEAAiE;AACjE,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,2CAA2C;AAC3C,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,oEAAoE;AACpE,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAgBlD,SAAS,UAAU,CAAC,GAAY;IAC9B,KAAK,IAAI,CAAC,GAAY,GAAG,EAAE,CAAC,KAAK,SAAS,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QACtC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YACjB,SAAS,EAAE,0BAA0B;YACrC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;YACrC,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE;YAC5B,IAAI;YACJ,IAAI;YACJ,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,sCAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,sCAAiB,CAAC,MAAM;YAC1E,SAAS,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YAClE,OAAO,EAAE,IAAA,uBAAiB,EAAC,IAAI,IAAI,EAAE,CAAC;SACvC,CAAC,CAAC;IACL,CAAC;CACF;;AAED;;;GAGG;AACH,qCAA4C,OAAiC;IAC3E,OAAO,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAClD,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { type Client, type Interceptor } from '@connectrpc/connect';
2
- import { CatalogService, IngestService, QueryService } from './gen/flowrensic/v1/services_pb.js';
2
+ import { CatalogService, IngestService, QueryService, RemediationService, ResetService } from './gen/flowrensic/v1/services_pb.js';
3
3
  export interface FlowrensicClient {
4
4
  catalog: Client<typeof CatalogService>;
5
5
  ingest: Client<typeof IngestService>;
6
6
  query: Client<typeof QueryService>;
7
+ reset: Client<typeof ResetService>;
8
+ remediation: Client<typeof RemediationService>;
7
9
  }
8
10
  export interface FlowrensicClientOptions {
9
11
  /** The access key of the env this client sends data for. Every ingest call carries it. */
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,Y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AM,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAChD;AAED,MAAM,WAAW,uBAAuB;IACtC,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oGAAoG;IACpG,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oEAAoE;AACpE,eAAO,MAAM,cAAc,uBAAuB,CAAC;AAEnD,kDAAkD;AAClD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,CAK7D;AAED,oEAAoE;AACpE,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,sDAAsD;AACtD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAO/D;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAgBlB"}
@@ -41,6 +41,8 @@ function createFlowrensicClient(baseUrl, options = {}) {
41
41
  catalog: (0, connect_1.createClient)(services_pb_js_1.CatalogService, transport),
42
42
  ingest: (0, connect_1.createClient)(services_pb_js_1.IngestService, transport),
43
43
  query: (0, connect_1.createClient)(services_pb_js_1.QueryService, transport),
44
+ reset: (0, connect_1.createClient)(services_pb_js_1.ResetService, transport),
45
+ remediation: (0, connect_1.createClient)(services_pb_js_1.RemediationService, transport),
44
46
  };
45
47
  }
46
48
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;AAAA,iDAAkF;AAClF,2DAAkE;AAElE,uEAAiG;AAejG,oEAAoE;AACvD,QAAA,cAAc,GAAG,oBAAoB,CAAC;AAEnD,kDAAkD;AAClD,2BAAkC,MAAc;IAC9C,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAC7B,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,8BAAa,CAAC,QAAQ;YAAE,G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Y,EAAE;YACZ,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YAC5E,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;SAChF;KACF,CAAC,CAAC;IACH,OAAO;QACL,OAAO,EAAE,IAAA,sBAAY,EAAC,+BAAc,EAAE,SAAS,CAAC;QAChD,MAAM,EAAE,IAAA,sBAAY,EAAC,8BAAa,EAAE,SAAS,CAAC;QAC9C,KAAK,EAAE,IAAA,sBAAY,EAAC,6BAAY,EAAE,SAAS,CAAC;QAC5C,KAAK,EAAE,IAAA,sBAAY,EAAC,6BAAY,EAAE,SAAS,CAAC;QAC5C,WAAW,EAAE,IAAA,sBAAY,EAAC,mCAAkB,EAAE,SAAS,CAAC;KACzD,CAAC;AACJ,CAAC"}
@@ -6,8 +6,8 @@ import type { Message } from "@bufbuild/protobuf";
6
6
  */
7
7
  export declare const file_flowrensic_v1_client_calls: GenFile;
8
8
  /**
9
- * ClientCall is one query a Temporal client made that threw, as the client
10
- * interceptor saw it.
9
+ * ClientCall is one query or signal a Temporal client made that threw, as the
10
+ * client interceptor saw it.
11
11
  *
12
12
  * @generated from message flowrensic.v1.ClientCall
13
13
  */
@@ -27,7 +27,7 @@ export type ClientCall = Message<"flowrensic.v1.ClientCall"> & {
27
27
  */
28
28
  runId: string;
29
29
  /**
30
- * What was called. Only "query" is sent.
30
+ * What was called: "query" or "signal".
31
31
  *
32
32
  * @generated from field: string kind = 4;
33
33
  */
@@ -44,6 +44,12 @@ export type ClientCall = Message<"flowrensic.v1.ClientCall"> & {
44
44
  * @generated from field: google.protobuf.Timestamp ended_at = 7;
45
45
  */
46
46
  endedAt?: Timestamp | undefined;
47
+ /**
48
+ * The name of the query or signal called.
49
+ *
50
+ * @generated from field: string name = 8;
51
+ */
52
+ name: string;
47
53
  };
48
54
  /**
49
55
  * Describes the message flowrensic.v1.ClientCall.
@@ -78,6 +84,84 @@ export type IngestClientCallsResponse = Message<"flowrensic.v1.IngestClientCalls
78
84
  * Use `create(IngestClientCallsResponseSchema)` to create a new message.
79
85
  */
80
86
  export declare const IngestClientCallsResponseSchema: GenMessage<IngestClientCallsResponse>;
87
+ /**
88
+ * QueryCount is how many queries of one name the workers of one workflow type
89
+ * answered in one minute, FPP-011-R02.
90
+ *
91
+ * @generated from message flowrensic.v1.QueryCount
92
+ */
93
+ export type QueryCount = Message<"flowrensic.v1.QueryCount"> & {
94
+ /**
95
+ * namespace_id is the Flowrensic namespace id the worker was given.
96
+ *
97
+ * @generated from field: string namespace_id = 1;
98
+ */
99
+ namespaceId: string;
100
+ /**
101
+ * env is the env the worker runs in, empty to use the env of the namespace.
102
+ *
103
+ * @generated from field: string env = 2;
104
+ */
105
+ env: string;
106
+ /**
107
+ * @generated from field: string workflow_type = 3;
108
+ */
109
+ workflowType: string;
110
+ /**
111
+ * @generated from field: string query_name = 4;
112
+ */
113
+ queryName: string;
114
+ /**
115
+ * answered is the queries the handler answered, failed the ones whose
116
+ * handler threw.
117
+ *
118
+ * @generated from field: int64 answered = 5;
119
+ */
120
+ answered: bigint;
121
+ /**
122
+ * @generated from field: int64 failed = 6;
123
+ */
124
+ failed: bigint;
125
+ /**
126
+ * minute is the start of the minute the queries were answered in.
127
+ *
128
+ * @generated from field: google.protobuf.Timestamp minute = 7;
129
+ */
130
+ minute?: Timestamp | undefined;
131
+ };
132
+ /**
133
+ * Describes the message flowrensic.v1.QueryCount.
134
+ * Use `create(QueryCountSchema)` to create a new message.
135
+ */
136
+ export declare const QueryCountSchema: GenMessage<QueryCount>;
137
+ /**
138
+ * @generated from message flowrensic.v1.IngestQueryCountsRequest
139
+ */
140
+ export type IngestQueryCountsRequest = Message<"flowrensic.v1.IngestQueryCountsRequest"> & {
141
+ /**
142
+ * @generated from field: repeated flowrensic.v1.QueryCount counts = 1;
143
+ */
144
+ counts: QueryCount[];
145
+ };
146
+ /**
147
+ * Describes the message flowrensic.v1.IngestQueryCountsRequest.
148
+ * Use `create(IngestQueryCountsRequestSchema)` to create a new message.
149
+ */
150
+ export declare const IngestQueryCountsRequestSchema: GenMessage<IngestQueryCountsRequest>;
151
+ /**
152
+ * @generated from message flowrensic.v1.IngestQueryCountsResponse
153
+ */
154
+ export type IngestQueryCountsResponse = Message<"flowrensic.v1.IngestQueryCountsResponse"> & {
155
+ /**
156
+ * @generated from field: int32 accepted = 1;
157
+ */
158
+ accepted: number;
159
+ };
160
+ /**
161
+ * Describes the message flowrensic.v1.IngestQueryCountsResponse.
162
+ * Use `create(IngestQueryCountsResponseSchema)` to create a new message.
163
+ */
164
+ export declare const IngestQueryCountsResponseSchema: GenMessage<IngestQueryCountsResponse>;
81
165
  /**
82
166
  * ClientCallOutcome is how a call a Temporal client made went wrong.
83
167
  *
@@ -1 +1 @@
1
- {"version":3,"file":"client_calls_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/flowrensic/v1/client_calls_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,OAC46B,CAAC;AAE39B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG;IAC7D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,UAAU,CACH,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACzF;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,UAAU,CAAC,wBAAwB,CAC/B,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAC3F;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,yBAAyB,CACjC,CAAC;AAElD;;;;GAIG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,MAAM,IAAI;IAEV;;;;OAIG;IACH,SAAS,IAAI;CACd;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,iBAAiB,CACjB,CAAC"}
1
+ {"version":3,"file":"client_calls_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/flowrensic/v1/client_calls_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,+BAA+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AM,CAAC;IAElB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,UAAU,CACH,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACzF;;OAEG;IACH,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,UAAU,CAAC,wBAAwB,CAC/B,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAC3F;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,yBAAyB,CACjC,CAAC;AAElD;;;;GAIG;AACH,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,MAAM,IAAI;IAEV;;;;OAIG;IACH,SAAS,IAAI;CACd;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,iBAAiB,CACjB,CAAC"}
@@ -3,13 +3,13 @@
3
3
  // @generated from file flowrensic/v1/client_calls.proto (package flowrensic.v1, syntax proto3)
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ClientCallOutcomeSchema = exports.ClientCallOutcome = exports.IngestClientCallsResponseSchema = exports.IngestClientCallsRequestSchema = exports.ClientCallSchema = exports.file_flowrensic_v1_client_calls = void 0;
6
+ exports.ClientCallOutcomeSchema = exports.ClientCallOutcome = exports.IngestQueryCountsResponseSchema = exports.IngestQueryCountsRequestSchema = exports.QueryCountSchema = exports.IngestClientCallsResponseSchema = exports.IngestClientCallsRequestSchema = exports.ClientCallSchema = exports.file_flowrensic_v1_client_calls = void 0;
7
7
  const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
8
  const wkt_1 = require("@bufbuild/protobuf/wkt");
9
9
  /**
10
10
  * Describes the file flowrensic/v1/client_calls.proto.
11
11
  */
12
- exports.file_flowrensic_v1_client_calls = (0, codegenv2_1.fileDesc)("CiBmbG93cmVuc2ljL3YxL2NsaWVudF9jYWxscy5wcm90bxINZmxvd3JlbnNpYy52MSLKAQoKQ2xpZW50Q2FsbBIUCgxuYW1lc3BhY2VfaWQYASABKAkSEwoLd29ya2Zsb3dfaWQYAiABKAkSDgoGcnVuX2lkGAMgASgJEgwKBGtpbmQYBCABKAkSMQoHb3V0Y29tZRgFIAEoDjIgLmZsb3dyZW5zaWMudjEuQ2xpZW50Q2FsbE91dGNvbWUSEgoKZXJyb3JfdHlwZRgGIAEoCRIsCghlbmRlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiRAoYSW5nZXN0Q2xpZW50Q2FsbHNSZXF1ZXN0EigKBWNhbGxzGAEgAygLMhkuZmxvd3JlbnNpYy52MS5DbGllbnRDYWxsIi0KGUluZ2VzdENsaWVudENhbGxzUmVzcG9uc2USEAoIYWNjZXB0ZWQYASABKAUqewoRQ2xpZW50Q2FsbE91dGNvbWUSIwofQ0xJRU5UX0NBTExfT1VUQ09NRV9VTlNQRUNJRklFRBAAEh4KGkNMSUVOVF9DQUxMX09VVENPTUVfRkFJTEVEEAESIQodQ0xJRU5UX0NBTExfT1VUQ09NRV9USU1FRF9PVVQQAkLEAQoRY29tLmZsb3dyZW5zaWMudjFCEENsaWVudENhbGxzUHJvdG9QAVpIZ2l0aHViLmNvbS9mbG93cmVuc2ljL2Zsb3dyZW5zaWMvaW50ZXJuYWwvZ2VuL2Zsb3dyZW5zaWMvdjE7Zmxvd3JlbnNpY3YxogI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jZXB0ZWQYASABKAUqewoRQ2xpZW50Q2FsbE91dGNvbWUSIwofQ0xJRU5UX0NBTExfT1VUQ09NRV9VTlNQRUNJRklFRBAAEh4KGkNMSUVOVF9DQUxMX09VVENPTUVfRkFJTEVEEAESIQodQ0xJRU5UX0NBTExfT1VUQ09NRV9USU1FRF9PVVQQAkLEAQoRY29tLmZsb3dyZW5zaWMudjFCEENsaWVudENhbGxzUHJvdG9QAVpIZ2l0aHViLmNvbS9mbG93cmVuc2ljL2Zsb3dyZW5zaWMvaW50ZXJuYWwvZ2VuL2Zsb3dyZW5zaWMvdjE7Zmxvd3JlbnNpY3YxogIDRlhYqgINRmxvd3JlbnNpYy5WMcoCDUZsb3dyZW5zaWNcVjHiAhlGbG93cmVuc2ljXFYxXEdQQk1ldGFkYXRh6gIORmxvd3JlbnNpYzo6VjFiBnByb3RvMw", [wkt_1.file_google_protobuf_timestamp]);
13
13
  /**
14
14
  * Describes the message flowrensic.v1.ClientCall.
15
15
  * Use `create(ClientCallSchema)` to create a new message.
@@ -25,6 +25,21 @@ exports.IngestClientCallsRequestSchema = (0, codegenv2_1.messageDesc)(exports.fi
25
25
  * Use `create(IngestClientCallsResponseSchema)` to create a new message.
26
26
  */
27
27
  exports.IngestClientCallsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flowrensic_v1_client_calls, 2);
28
+ /**
29
+ * Describes the message flowrensic.v1.QueryCount.
30
+ * Use `create(QueryCountSchema)` to create a new message.
31
+ */
32
+ exports.QueryCountSchema = (0, codegenv2_1.messageDesc)(exports.file_flowrensic_v1_client_calls, 3);
33
+ /**
34
+ * Describes the message flowrensic.v1.IngestQueryCountsRequest.
35
+ * Use `create(IngestQueryCountsRequestSchema)` to create a new message.
36
+ */
37
+ exports.IngestQueryCountsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_flowrensic_v1_client_calls, 4);
38
+ /**
39
+ * Describes the message flowrensic.v1.IngestQueryCountsResponse.
40
+ * Use `create(IngestQueryCountsResponseSchema)` to create a new message.
41
+ */
42
+ exports.IngestQueryCountsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_flowrensic_v1_client_calls, 5);
28
43
  /**
29
44
  * ClientCallOutcome is how a call a Temporal client made went wrong.
30
45
  *
@@ -1 +1 @@
1
- {"version":3,"file":"client_calls_pb.js","sourceRoot":"","sources":["../../../../../src/gen/flowrensic/v1/client_calls_pb.ts"],"names":[],"mappings":";AAAA,qFAAqF;AACrF,+FAA+F;AAC/F,oBAAoB;;;AAGpB,4DAA+E;AAE/E,gDAAwE;AAGxE;;GAEG;AACU,QAAA,+BAA+B,GAC1C,IAAA,oBAAQ,EAAC,46BAA46B,EAAE,CAAC,oCAA8B,CAAC,CAAC,CAAC;AAiD39B;;;GAGG;AACU,QAAA,gBAAgB,GAC3B,IAAA,uBAAW,EAAC,QAAA,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAYlD;;;GAGG;AACU,QAAA,8BAA8B,GACzC,IAAA,uBAAW,EAAC,QAAA,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAYlD;;;GAGG;AACU,QAAA,+BAA+B,GAC1C,IAAA,uBAAW,EAAC,QAAA,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAElD;;;;GAIG;AACH,IAAY,iBAiBX;AAjBD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,uEAAe,CAAA;IAEf;;OAEG;IACH,6DAAU,CAAA;IAEV;;;;OAIG;IACH,mEAAa,CAAA;AACf,CAAC,EAjBW,iBAAiB,aAAjB,iBAAiB,GAAjB,iBAAiB,QAiB5B;AAED;;GAEG;AACU,QAAA,uBAAuB,GAClC,IAAA,oBAAQ,EAAC,QAAA,+BAA+B,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"client_calls_pb.js","sourceRoot":"","sources":["../../../../../src/gen/flowrensic/v1/client_calls_pb.ts"],"names":[],"mappings":";AAAA,qFAAqF;AACrF,+FAA+F;AAC/F,oBAAoB;;;AAGpB,4DAA+E;AAE/E,g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