@funnelchat-hq/sandbox 0.3.3 → 0.5.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 +77 -45
- package/dist/{chunk-EQLGOYR6.js → chunk-67XBJEXM.js} +13643 -16833
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/procedencia.json +26 -23
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-
|
|
2
|
+
import { ConfigError, parseArgs, VERSION, DEFAULT_PORT, DEFAULT_CONFIG_FILE, resolveConfig, createSandbox } from './chunk-67XBJEXM.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;
|
|
@@ -655,12 +661,12 @@ interface Envelope {
|
|
|
655
661
|
}
|
|
656
662
|
interface CatalogEntry {
|
|
657
663
|
type: string;
|
|
664
|
+
/** The area that emits it: `accounts`, `conversations` or `communities`. */
|
|
658
665
|
area: string;
|
|
659
|
-
/** `active`:
|
|
666
|
+
/** `active`: it is delivered. Every type the portal publishes is. */
|
|
660
667
|
status: 'active' | 'planned';
|
|
661
|
-
is_critical: boolean;
|
|
662
|
-
label: string;
|
|
663
668
|
description: string;
|
|
669
|
+
/** `false` only for `webhook.test`, which only `POST /api/v1/webhooks/{id}/test` sends. */
|
|
664
670
|
subscribable: boolean;
|
|
665
671
|
example: Envelope | null;
|
|
666
672
|
}
|
|
@@ -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-
|
|
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-67XBJEXM.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/spec/procedencia.json
CHANGED
|
@@ -2,32 +2,35 @@
|
|
|
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": "
|
|
6
|
-
"bytes":
|
|
5
|
+
"sha256": "37c54a5aad4cc467e088af50294012484692ef668714dcdd748babc7314b587f",
|
|
6
|
+
"bytes": 738121,
|
|
7
7
|
"source": {
|
|
8
|
-
"repository":
|
|
9
|
-
"path":
|
|
10
|
-
"branch":
|
|
11
|
-
"commit":
|
|
8
|
+
"repository": null,
|
|
9
|
+
"path": null,
|
|
10
|
+
"branch": null,
|
|
11
|
+
"commit": null,
|
|
12
12
|
"commit_date": null,
|
|
13
|
-
"file_tracked_in_git":
|
|
13
|
+
"file_tracked_in_git": null,
|
|
14
14
|
"tracked_files_clean": null,
|
|
15
|
-
"file_modified_at": "2026-11-
|
|
16
|
-
"
|
|
15
|
+
"file_modified_at": "2026-11-13T13:23:30.969Z",
|
|
16
|
+
"url": "https://developers-portal.funnelchat.app/specs/funnelchat.json",
|
|
17
|
+
"portal_version": "v0.6.14",
|
|
18
|
+
"fetched_at": "2026-11-13T13:23:30Z",
|
|
19
|
+
"note": "The spec the developer portal publishes, v0.6.14: only the operations and events the portal shows. The sha256 is the one of the file served at the URL on 2026-11-13."
|
|
17
20
|
},
|
|
18
|
-
"imported_at": "2026-11-
|
|
21
|
+
"imported_at": "2026-11-13T13:34:02.968Z",
|
|
19
22
|
"spec": {
|
|
20
23
|
"openapi": "3.1.0",
|
|
21
24
|
"title": "Funnelchat API",
|
|
22
25
|
"version": "v0",
|
|
23
|
-
"paths":
|
|
24
|
-
"operations":
|
|
25
|
-
"webhooks":
|
|
26
|
+
"paths": 209,
|
|
27
|
+
"operations": 253,
|
|
28
|
+
"webhooks": 57,
|
|
26
29
|
"domains": [
|
|
27
30
|
{
|
|
28
31
|
"domain": "conversations",
|
|
29
|
-
"tag":
|
|
30
|
-
"sha":
|
|
32
|
+
"tag": null,
|
|
33
|
+
"sha": null,
|
|
31
34
|
"branch": null,
|
|
32
35
|
"snapshot_at": null
|
|
33
36
|
},
|
|
@@ -50,19 +53,19 @@
|
|
|
50
53
|
},
|
|
51
54
|
"pending": {
|
|
52
55
|
"file": "spec/pending.json",
|
|
53
|
-
"sha256": "
|
|
54
|
-
"bytes":
|
|
56
|
+
"sha256": "dd7b8cf6e5be45ddf1c0c00a9f4480cceec11b364adec083bbf989fa11944d9d",
|
|
57
|
+
"bytes": 68388,
|
|
55
58
|
"source": {
|
|
56
59
|
"repository": "git@github.com:Funnelchat20/funnelchat-node.git",
|
|
57
60
|
"path": "spec/pending.json",
|
|
58
|
-
"branch": "feat/
|
|
59
|
-
"commit": "
|
|
60
|
-
"commit_date": "2026-11-
|
|
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-
|
|
66
|
+
"file_modified_at": "2026-11-12T02:30:56.483Z"
|
|
64
67
|
},
|
|
65
|
-
"imported_at": "2026-11-
|
|
66
|
-
"note": "The pending layer of the Node SDK,
|
|
68
|
+
"imported_at": "2026-11-12T03:23:57.222Z",
|
|
69
|
+
"note": "The pending layer of the Node SDK at that commit, with edits made here on 2026-11-13 ahead of the SDK: the sources conversations-forms, communities-events and conversations-received say what portal v0.6.14 shows and what was checked again that day; whatsapp_form.completed types answers[].label as a string, and message.received accepts any string in message.type besides the known ones. Once the SDK's layer carries them, copy it again with --pending. What belongs to the sandbox goes in spec/pending-sandbox.json."
|
|
67
70
|
}
|
|
68
71
|
}
|