@funnelchat-hq/sandbox 0.3.3 → 0.4.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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { ConfigError, parseArgs, VERSION, DEFAULT_PORT, DEFAULT_CONFIG_FILE, resolveConfig, createSandbox } from './chunk-EQLGOYR6.js';
2
+ import { ConfigError, parseArgs, VERSION, DEFAULT_PORT, DEFAULT_CONFIG_FILE, resolveConfig, createSandbox } from './chunk-4WUZK3N2.js';
3
3
 
4
4
  // src/cli.ts
5
5
  var HELP = `funnelchat-sandbox ${VERSION}
package/dist/index.d.ts CHANGED
@@ -398,6 +398,8 @@ interface RequestLogEntry {
398
398
  status: number;
399
399
  durationMs: number;
400
400
  operation: string | null;
401
+ /** `shape-only` when the route has no handler and the answer was the spec's shape: nothing was stored or emitted. */
402
+ simulated: 'shape-only' | null;
401
403
  requestBody: unknown;
402
404
  responseBody: unknown;
403
405
  }
@@ -620,11 +622,15 @@ declare class SandboxApp {
620
622
  close(): void;
621
623
  }
622
624
 
625
+ /** The header that marks an answer made up from the spec. Only the shape-only answers carry it. */
626
+ declare const SIMULATED_HEADER = "X-Sandbox-Simulated";
627
+
623
628
  /**
624
629
  * `X-Request-Id`: a fresh UUID v4 on every answer, errors included, like api-edge v0.3.0 and platform-gate 0.8. Only
625
630
  * in the header, never in the body; one the client sends is ignored.
626
631
  */
627
632
  declare const REQUEST_ID_HEADER = "X-Request-Id";
633
+
628
634
  interface Sandbox {
629
635
  app: SandboxApp;
630
636
  server: Server;
@@ -702,4 +708,4 @@ declare const FORM_TEMPLATES: FormTemplate[];
702
708
 
703
709
  declare const VERSION: string;
704
710
 
705
- export { type CatalogEntry, type ConfigInput, type CreateSandboxOptions, DELIVERY_HEADER, EDGE_ERRORS, EVENT_HEADER, FAILURE_REASONS, FORM_TEMPLATES, META_ERRORS, type PresetSubscription, type PresetWorkspace, REJECTIONS, REQUEST_ID_HEADER, SEND_FILE_TYPES, SIGNATURE_HEADER, SUPPORTED_EXTENSIONS, type Sandbox, type SandboxConfig, VERSION, catalog, createSandbox, defaultConfig, mergeConfig, signature };
711
+ export { type CatalogEntry, type ConfigInput, type CreateSandboxOptions, DELIVERY_HEADER, EDGE_ERRORS, EVENT_HEADER, FAILURE_REASONS, FORM_TEMPLATES, META_ERRORS, type PresetSubscription, type PresetWorkspace, REJECTIONS, REQUEST_ID_HEADER, SEND_FILE_TYPES, SIGNATURE_HEADER, SIMULATED_HEADER, SUPPORTED_EXTENSIONS, type Sandbox, type SandboxConfig, VERSION, catalog, createSandbox, defaultConfig, mergeConfig, signature };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { DELIVERY_HEADER, EDGE_ERRORS, EVENT_HEADER, FAILURE_REASONS, FORM_TEMPLATES, META_ERRORS, REJECTIONS, REQUEST_ID_HEADER, SEND_FILE_TYPES, SIGNATURE_HEADER, SUPPORTED_EXTENSIONS, VERSION, catalog, createSandbox, defaultConfig, mergeConfig, signature } from './chunk-EQLGOYR6.js';
1
+ export { DELIVERY_HEADER, EDGE_ERRORS, EVENT_HEADER, FAILURE_REASONS, FORM_TEMPLATES, META_ERRORS, REJECTIONS, REQUEST_ID_HEADER, SEND_FILE_TYPES, SIGNATURE_HEADER, SIMULATED_HEADER, SUPPORTED_EXTENSIONS, VERSION, catalog, createSandbox, defaultConfig, mergeConfig, signature } from './chunk-4WUZK3N2.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelchat-hq/sandbox",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "A local server that imitates the Funnelchat public API and sends signed webhooks, with no real effects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -2,45 +2,48 @@
2
2
  "description": "Where each file of spec/ came from. Written by `npm run generate -- --spec <file>` or `-- --pending <file>`; do not edit it by hand. spec/pending-sandbox.json belongs to this repo: its sources are inside it.",
3
3
  "snapshot": {
4
4
  "file": "spec/funnelchat.json",
5
- "sha256": "38ae497ab7e6089b31b589e1f93c2289524348d581796eba109568885642813c",
6
- "bytes": 1228756,
5
+ "sha256": "a7b480743848dabccbea2a1f2314263ca070316eeed97aab4a6f09f171c80e5a",
6
+ "bytes": 738025,
7
7
  "source": {
8
- "repository": "git@github.com:Funnelchat20/developers-portal.git",
9
- "path": "generated/specs/funnelchat-completa.json",
10
- "branch": "feat/plantillas-de-meta",
11
- "commit": "51c0aeb",
8
+ "repository": null,
9
+ "path": null,
10
+ "branch": null,
11
+ "commit": null,
12
12
  "commit_date": null,
13
- "file_tracked_in_git": false,
13
+ "file_tracked_in_git": null,
14
14
  "tracked_files_clean": null,
15
- "file_modified_at": "2026-11-06T12:43:27.931Z",
16
- "note": "Built by `npm run build` of developers-portal feat/plantillas-de-meta (v0.6.7, not published yet) on 06-11. Not the published /specs/ file, which carries only the visible operations."
15
+ "file_modified_at": "2026-11-12T00:48:33.018Z",
16
+ "url": "https://developers-portal.funnelchat.app/specs/funnelchat.json",
17
+ "portal_version": "v0.6.13",
18
+ "fetched_at": "2026-11-12T00:48:33Z",
19
+ "note": "The spec the developer portal publishes, v0.6.13: only the operations and events the portal shows. The sha256 is the one of the file served at the URL on 2026-11-12."
17
20
  },
18
- "imported_at": "2026-11-06T12:46:17.581Z",
21
+ "imported_at": "2026-11-12T03:02:14.197Z",
19
22
  "spec": {
20
23
  "openapi": "3.1.0",
21
24
  "title": "Funnelchat API",
22
25
  "version": "v0",
23
- "paths": 219,
24
- "operations": 266,
25
- "webhooks": 29,
26
+ "paths": 209,
27
+ "operations": 253,
28
+ "webhooks": 57,
26
29
  "domains": [
27
30
  {
28
31
  "domain": "conversations",
29
- "tag": "v1.19.37",
30
- "sha": "a4d0136be",
32
+ "tag": "v1.19.91",
33
+ "sha": null,
31
34
  "branch": null,
32
35
  "snapshot_at": null
33
36
  },
34
37
  {
35
38
  "domain": "communities",
36
- "tag": null,
39
+ "tag": "v2.35.28",
37
40
  "sha": null,
38
41
  "branch": null,
39
42
  "snapshot_at": null
40
43
  },
41
44
  {
42
45
  "domain": "accounts",
43
- "tag": null,
46
+ "tag": "v1.6.41",
44
47
  "sha": null,
45
48
  "branch": null,
46
49
  "snapshot_at": null
@@ -50,19 +53,19 @@
50
53
  },
51
54
  "pending": {
52
55
  "file": "spec/pending.json",
53
- "sha256": "051680bd82944c0e248d20d1499d89e61a231c6ba3ef6a5d864cf18a97aae1ad",
54
- "bytes": 112110,
56
+ "sha256": "39662e350155b12b96099a495993f3d243e9098e575a65c914432f224b1c002e",
57
+ "bytes": 67589,
55
58
  "source": {
56
59
  "repository": "git@github.com:Funnelchat20/funnelchat-node.git",
57
60
  "path": "spec/pending.json",
58
- "branch": "feat/enviar-por-telefono",
59
- "commit": "a8f83509d4a40d6116a9c0487bf0aee639948273",
60
- "commit_date": "2026-11-05T14:02:36-03:00",
61
+ "branch": "feat/todas-las-funciones",
62
+ "commit": "bde867919d1da0fc9412bad7e67688c3cd2e6a9b",
63
+ "commit_date": "2026-11-12T00:01:44-03:00",
61
64
  "file_tracked_in_git": true,
62
65
  "tracked_files_clean": true,
63
- "file_modified_at": "2026-11-05T17:01:15.771Z"
66
+ "file_modified_at": "2026-11-12T02:30:56.483Z"
64
67
  },
65
- "imported_at": "2026-11-05T17:03:20.911Z",
68
+ "imported_at": "2026-11-12T03:23:57.222Z",
66
69
  "note": "The pending layer of the Node SDK, unchanged. What belongs to the sandbox goes in spec/pending-sandbox.json."
67
70
  }
68
71
  }