@funnelchat-hq/sandbox 0.3.1 → 0.3.3

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-FUK4UDIM.js';
2
+ import { ConfigError, parseArgs, VERSION, DEFAULT_PORT, DEFAULT_CONFIG_FILE, resolveConfig, createSandbox } from './chunk-EQLGOYR6.js';
3
3
 
4
4
  // src/cli.ts
5
5
  var HELP = `funnelchat-sandbox ${VERSION}
package/dist/index.d.ts CHANGED
@@ -252,6 +252,11 @@ interface Group {
252
252
  description: string;
253
253
  /** The number that is in the group (a QR number: the sandbox account has no official groups). */
254
254
  deviceId: number;
255
+ /**
256
+ * In the account (communities `groups`): listed by `GET /groups` and announcing who joins and leaves. `false`: a
257
+ * group of the number on WhatsApp only, seen by `GET /devices/{device}/groups` until it is imported.
258
+ */
259
+ imported: boolean;
255
260
  /** The workspace the group is in; `null` counts as the default one. */
256
261
  workspaceId: number | null;
257
262
  participants: GroupParticipant[];
@@ -432,8 +437,16 @@ declare class Sequence {
432
437
  declare class Store {
433
438
  readonly historyLimit: number;
434
439
  workspaces: Map<number, Workspace>;
435
- /** The sandbox keys minted for a workspace (`POST /_sandbox/workspaces`, `/_sandbox/keys`): any other key is the default one's. */
436
- keys: Map<string, number>;
440
+ /**
441
+ * The sandbox keys minted for a workspace (`POST /_sandbox/workspaces`, `/_sandbox/keys`), with their permissions
442
+ * (`null`: every one). Any other key is the default workspace's, with every permission.
443
+ */
444
+ keys: Map<string, {
445
+ workspaceId: number;
446
+ permissions: string[] | null;
447
+ }>;
448
+ /** When each number imported a group in the last minute: communities' 5 per minute. */
449
+ groupImports: Map<number, number[]>;
437
450
  devices: Map<number, Device>;
438
451
  contacts: Map<number, Contact>;
439
452
  messages: Map<number, Message>;
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-FUK4UDIM.js';
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';
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.1",
3
+ "version": "0.3.3",
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,46 +2,46 @@
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": "8228ea7369daed0655b779ca6af381355a6c1cc13dd702ed6e9c322779bafe94",
6
- "bytes": 1214988,
5
+ "sha256": "38ae497ab7e6089b31b589e1f93c2289524348d581796eba109568885642813c",
6
+ "bytes": 1228756,
7
7
  "source": {
8
8
  "repository": "git@github.com:Funnelchat20/developers-portal.git",
9
9
  "path": "generated/specs/funnelchat-completa.json",
10
- "branch": "main",
11
- "commit": "f5464516",
10
+ "branch": "feat/plantillas-de-meta",
11
+ "commit": "51c0aeb",
12
12
  "commit_date": null,
13
13
  "file_tracked_in_git": false,
14
14
  "tracked_files_clean": null,
15
- "file_modified_at": "2026-11-05T16:59:01.577Z",
16
- "note": "Built by `npm run build` of developers-portal at the merge of PR #37, deployed as v0.6.2 on 05-11. Not the published /specs/ file, which carries only the visible operations. communities' snapshot was taken with the group actions on."
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."
17
17
  },
18
- "imported_at": "2026-11-05T17:01:38.054Z",
18
+ "imported_at": "2026-11-06T12:46:17.581Z",
19
19
  "spec": {
20
20
  "openapi": "3.1.0",
21
21
  "title": "Funnelchat API",
22
22
  "version": "v0",
23
- "paths": 217,
24
- "operations": 264,
23
+ "paths": 219,
24
+ "operations": 266,
25
25
  "webhooks": 29,
26
26
  "domains": [
27
27
  {
28
28
  "domain": "conversations",
29
- "tag": "v1.19.21",
30
- "sha": "f2937a71",
29
+ "tag": "v1.19.37",
30
+ "sha": "a4d0136be",
31
31
  "branch": null,
32
32
  "snapshot_at": null
33
33
  },
34
34
  {
35
35
  "domain": "communities",
36
- "tag": "v2.35.5",
37
- "sha": "2be913d4",
36
+ "tag": null,
37
+ "sha": null,
38
38
  "branch": null,
39
39
  "snapshot_at": null
40
40
  },
41
41
  {
42
42
  "domain": "accounts",
43
- "tag": "v1.5.97",
44
- "sha": "558332bcf",
43
+ "tag": null,
44
+ "sha": null,
45
45
  "branch": null,
46
46
  "snapshot_at": null
47
47
  }