@vef-framework-react/integration 2.22.0 → 2.24.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.
Files changed (76) hide show
  1. package/dist/cjs/api/log-api.cjs +1 -1
  2. package/dist/cjs/components/wire-trace/index.cjs +1 -1
  3. package/dist/cjs/pages/console-page/index.cjs +1 -1
  4. package/dist/cjs/pages/console-page/log.cjs +1 -1
  5. package/dist/cjs/pages/console-page/replay.cjs +1 -0
  6. package/dist/cjs/permissions.cjs +1 -1
  7. package/dist/es/api/code-set-api.js +1 -1
  8. package/dist/es/api/crud-api.js +1 -1
  9. package/dist/es/api/index.js +1 -1
  10. package/dist/es/api/log-api.js +11 -5
  11. package/dist/es/api/ops-api.js +1 -1
  12. package/dist/es/api/query.js +1 -1
  13. package/dist/es/api/stats-api.js +1 -1
  14. package/dist/es/components/auth-params/index.js +1 -1
  15. package/dist/es/components/directory/index.js +1 -1
  16. package/dist/es/components/form-section/index.js +1 -1
  17. package/dist/es/components/format.js +1 -1
  18. package/dist/es/components/index.js +1 -1
  19. package/dist/es/components/json-view/index.js +1 -1
  20. package/dist/es/components/params-editor/index.js +1 -1
  21. package/dist/es/components/script-doc/completions.js +1 -1
  22. package/dist/es/components/script-doc/index.js +1 -1
  23. package/dist/es/components/status/colors.js +1 -1
  24. package/dist/es/components/status/index.js +1 -1
  25. package/dist/es/components/status/labels.js +1 -1
  26. package/dist/es/components/test-connection/index.js +1 -1
  27. package/dist/es/components/wire-trace/index.js +7 -2
  28. package/dist/es/index.js +1 -1
  29. package/dist/es/pages/adapter-page/columns.js +1 -1
  30. package/dist/es/pages/adapter-page/form.js +1 -1
  31. package/dist/es/pages/adapter-page/helpers.js +1 -1
  32. package/dist/es/pages/adapter-page/index.js +1 -1
  33. package/dist/es/pages/adapter-page/search.js +1 -1
  34. package/dist/es/pages/code-map-page/columns.js +1 -1
  35. package/dist/es/pages/code-map-page/entries-editor.js +1 -1
  36. package/dist/es/pages/code-map-page/form.js +1 -1
  37. package/dist/es/pages/code-map-page/helpers.js +1 -1
  38. package/dist/es/pages/code-map-page/index.js +1 -1
  39. package/dist/es/pages/code-map-page/model.js +1 -1
  40. package/dist/es/pages/code-map-page/search.js +1 -1
  41. package/dist/es/pages/console-page/diagnostics.js +1 -1
  42. package/dist/es/pages/console-page/dry-run.js +1 -1
  43. package/dist/es/pages/console-page/index.js +4 -3
  44. package/dist/es/pages/console-page/log.js +69 -56
  45. package/dist/es/pages/console-page/replay.js +140 -0
  46. package/dist/es/pages/console-page/stats.js +1 -1
  47. package/dist/es/pages/contract-page/columns.js +1 -1
  48. package/dist/es/pages/contract-page/form.js +1 -1
  49. package/dist/es/pages/contract-page/helpers.js +1 -1
  50. package/dist/es/pages/contract-page/index.js +1 -1
  51. package/dist/es/pages/contract-page/json-schema-completions.js +1 -1
  52. package/dist/es/pages/contract-page/model.js +1 -1
  53. package/dist/es/pages/contract-page/search.js +1 -1
  54. package/dist/es/pages/index.js +1 -1
  55. package/dist/es/pages/route-page/columns.js +1 -1
  56. package/dist/es/pages/route-page/form.js +1 -1
  57. package/dist/es/pages/route-page/helpers.js +1 -1
  58. package/dist/es/pages/route-page/index.js +1 -1
  59. package/dist/es/pages/route-page/search.js +1 -1
  60. package/dist/es/pages/system-page/columns.js +1 -1
  61. package/dist/es/pages/system-page/form.js +1 -1
  62. package/dist/es/pages/system-page/helpers.js +1 -1
  63. package/dist/es/pages/system-page/index.js +1 -1
  64. package/dist/es/pages/system-page/model.js +1 -1
  65. package/dist/es/pages/system-page/search.js +1 -1
  66. package/dist/es/permissions.js +5 -2
  67. package/dist/es/types/enums.js +1 -1
  68. package/dist/es/types/index.js +1 -1
  69. package/dist/types/api/log-api.d.ts +5 -3
  70. package/dist/types/pages/console-page/index.d.ts +1 -0
  71. package/dist/types/pages/console-page/log.d.ts +9 -2
  72. package/dist/types/pages/console-page/replay.d.ts +15 -0
  73. package/dist/types/permissions.d.ts +1 -0
  74. package/dist/types/types/index.d.ts +1 -1
  75. package/dist/types/types/log.d.ts +41 -7
  76. package/package.json +4 -4
@@ -6,7 +6,7 @@ export type { Contract, ContractParams, ContractSearch, JsonSchema } from './con
6
6
  export type { RouteDiagnostics, RouteFinding } from './diagnostics';
7
7
  export * from './enums';
8
8
  export type { JsonObject, JsonValue } from './json';
9
- export type { HttpExchange, InvocationLog, LogSearch } from './log';
9
+ export type { HttpExchange, InvocationLog, InvocationOutcome, LogSearch, ReplayParams, ReplayResult } from './log';
10
10
  export type { ConnectionCheck, DatabaseProbe, DryRunInboundParams, DryRunParams, DryRunResult, HttpProbe, InboundDryRunResult, InboundRequestInput, TestConnectionParams } from './ops';
11
11
  export type { Route, RouteParams, RouteSearch } from './route';
12
12
  export type { IntegrationStatsResult, InvocationStats } from './stats';
@@ -16,23 +16,57 @@ export interface HttpExchange {
16
16
  responseBody?: string;
17
17
  durationMs: number;
18
18
  error?: string;
19
+ /**
20
+ * The caller's network address; only inbound deliveries carry one.
21
+ */
22
+ clientAddr?: string;
19
23
  }
20
24
  /**
21
- * One recorded invocation: its classification, timing, and the masked,
22
- * size-capped captures. Read-only. Mirrors the Go `integration.InvocationLog`.
23
- * `failureKind` is empty for a successful invocation.
25
+ * The outcome of one run — recorded or replayed — with its classification,
26
+ * timing, and masked, size-capped captures. `failureKind` is empty for a
27
+ * successful run.
24
28
  */
25
- export interface InvocationLog extends CreationAudited {
26
- systemCode: string;
27
- contractCode: string;
28
- direction: Direction;
29
+ export interface InvocationOutcome {
29
30
  failureKind?: FailureKind | "";
30
31
  durationMs: number;
31
32
  input?: JsonValue;
32
33
  output?: JsonValue;
33
34
  httpTrace?: HttpExchange[] | null;
34
35
  error?: string | null;
36
+ }
37
+ /**
38
+ * One recorded invocation. Read-only. Mirrors the Go `integration.InvocationLog`.
39
+ */
40
+ export interface InvocationLog extends CreationAudited, InvocationOutcome {
41
+ systemCode: string;
42
+ contractCode: string;
43
+ direction: Direction;
35
44
  requestId: string;
45
+ /**
46
+ * Whether a replay payload was kept (`vef.integration.log.replay`), so the
47
+ * invocation can be re-run.
48
+ */
49
+ replayable: boolean;
50
+ }
51
+ /**
52
+ * Parameters of a replay; `script` runs unsaved editor content in place of the
53
+ * saved adapter script.
54
+ */
55
+ export interface ReplayParams {
56
+ id: string;
57
+ script?: string;
58
+ }
59
+ /**
60
+ * The outcome of re-running a recorded invocation against the current
61
+ * definitions, shaped like the log entry it is compared with. Mirrors the Go
62
+ * `exec.ReplayResult`.
63
+ */
64
+ export interface ReplayResult extends InvocationOutcome {
65
+ /**
66
+ * The contract, system, or adapter was modified after the original
67
+ * invocation, so a different outcome may stem from that edit.
68
+ */
69
+ definitionChanged: boolean;
36
70
  }
37
71
  /**
38
72
  * Search parameters for invocation logs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vef-framework-react/integration",
3
- "version": "2.22.0",
3
+ "version": "2.24.0",
4
4
  "private": false,
5
5
  "description": "Integration engine management pages for VEF framework",
6
6
  "keywords": [
@@ -42,9 +42,9 @@
42
42
  "@emotion/react": "^11.14.0",
43
43
  "dayjs": "^1.11.0",
44
44
  "lucide-react": "^1.23.0",
45
- "@vef-framework-react/components": "2.22.0",
46
- "@vef-framework-react/shared": "2.22.0",
47
- "@vef-framework-react/core": "2.22.0"
45
+ "@vef-framework-react/core": "2.24.0",
46
+ "@vef-framework-react/components": "2.24.0",
47
+ "@vef-framework-react/shared": "2.24.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "react": "^19.2.7"