@open-wa/wa-automate-types-only 5.0.0-alpha.7 → 5.0.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/LICENSE.md CHANGED
@@ -55,9 +55,9 @@ Licensor hereby grants permission by this license ("License"), free of charge,
55
55
  4. Compliance with Human Rights Laws and Human Rights Principles:
56
56
 
57
57
  a. **Human Rights Laws**. The Software shall not be used by any person or entity for any systems, activities, or other uses that violate any applicable laws, regulations, or rules that protect human, civil, labor, privacy, political, environmental, security, economic, due process, or similar rights (the "Human Rights Laws"). Where the Human Rights Laws of more than one jurisdiction are applicable to the use of the Software, the Human Rights Laws that are most protective of the individuals or groups harmed shall apply.
58
-
58
+
59
59
  b. **Human Rights Principles**. Licensee is advised to consult the articles of the United Nations Universal Declaration of Human Rights (https://www.un.org/en/universal-declaration-human-rights/) and the United Nations Global Compact (https://www.unglobalcompact.org/ what-is-gc/mission/principles) that define recognized principles of international human rights (the "Human Rights Principles"). It is Licensor's express intent that all use of the Software be consistent with Human Rights Principles. If Licensor receives notification or otherwise learns of an alleged violation of any Human Rights Principles relating to Licensee's use of the Software, Licensor may in its discretion and without obligation (i) (a) notify Licensee of such allegation and (b) allow Licensee 90 days from notification under (i)(a) to investigate and respond to Licensor regarding the allegation and (ii) (a) after the earlier of 90 days from notification under (i)(a), or Licensee's response under (i)(b), notify Licensee of License termination and (b) allow Licensee an additional 90 days from notification under (ii)(a) to cease use of the Software.
60
-
60
+
61
61
  c. **Indemnity**. Licensee shall hold harmless and indemnify Licensor against all losses, damages, liabilities, deficiencies, claims, actions, judgments, settlements, interest, awards, penalties, fines, costs, or expenses of whatever kind, including Licensor's reasonable attorneys' fees, arising out of or relating to Licensee's non-compliance with this License or use of the Software in violation of Human Rights Laws or Human Rights Principles. 
62
62
 
63
63
  5. Enforceability: If any portion or provision of this License is determined to be invalid, illegal, or unenforceable by a court of competent jurisdiction, then such invalidity, illegality, or unenforceability shall not affect any other term or provision of this License or invalidate or render unenforceable such term or provision in any other jurisdiction. Upon a determination that any term or provision is invalid, illegal, or unenforceable, to the extent permitted by applicable law, the court may modify this License to affect the original intent of the parties as closely as possible. The section headings are for convenience only and are not intended to affect the construction or interpretation of this License. Any rule of construction to the effect that ambiguities are to be resolved against the drafting party shall not apply in interpreting this License. The language in this License shall be interpreted as to its fair meaning and not strictly for or against any party.
package/README.md CHANGED
@@ -12,8 +12,8 @@ pnpm add @open-wa/wa-automate-types-only
12
12
 
13
13
  ## Documentation
14
14
 
15
- See the [docs site](https://docs.openwa.dev).
15
+ See the [docs site](https://openwa.dev).
16
16
 
17
17
  ## License
18
18
 
19
- [H-DNH V1.0](https://github.com/open-wa/wa-automate-nodejs/blob/main/LICENSE.md) — Hippocratic + Do Not Harm
19
+ [H-DNH 1.1](https://github.com/open-wa/wa-automate-nodejs/blob/master/LICENSE.md) — Hippocratic + Do Not Harm
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0",
4
4
  "description": "Lightweight type-only re-exports from @open-wa/schema — zero runtime dependencies",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
- "types": "./dist/index.d.ts",
7
+ "types": "./dist/index.d.mts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "require": {
@@ -26,19 +26,22 @@
26
26
  ],
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "git+https://github.com/open-wa/wa-automate-nodejs.git"
29
+ "url": "https://github.com/open-wa/wa-automate-nodejs.git"
30
30
  },
31
31
  "author": "Mohammed Shah <@smashah>",
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "license": "H-DNH V1.0",
35
+ "license": "SEE LICENSE IN LICENSE.md",
36
36
  "dependencies": {
37
- "@open-wa/schema": "5.0.0-alpha.7"
37
+ "@open-wa/schema": "5.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "typescript": "^6.0.3"
40
+ "typescript": "^7.0.2"
41
41
  },
42
+ "files": [
43
+ "dist"
44
+ ],
42
45
  "scripts": {
43
46
  "build": "tsdown",
44
47
  "dev": "tsdown --watch",
@@ -1,23 +0,0 @@
1
-
2
- > @open-wa/wa-automate-types-only@5.0.0-alpha.7 build /Users/Mohammed/projects/tools/wa/packages/types-only
3
- > tsdown
4
-
5
- ℹ tsdown v0.21.7 powered by rolldown v1.0.0-rc.12
6
- ℹ config file: /Users/Mohammed/projects/tools/wa/packages/types-only/tsdown.config.ts
7
- (node:36507) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/Mohammed/projects/tools/wa/packages/types-only/tsdown.config.ts?no-cache=78908092-bcfb-4fd3-9fc9-bb093eb47c7c is not specified and it doesn't parse as CommonJS.
8
- Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
9
- To eliminate this warning, add "type": "module" to /Users/Mohammed/projects/tools/wa/packages/types-only/package.json.
10
- (Use `node --trace-warnings ...` to show where the warning was created)
11
- ℹ entry: src/index.ts
12
- ℹ tsconfig: tsconfig.json
13
- ℹ Build start
14
- ℹ Cleaning 4 files
15
- ℹ [CJS] dist/index.cjs 1.74 kB │ gzip: 0.33 kB
16
- ℹ [CJS] 1 files, total: 1.74 kB
17
- ℹ [CJS] dist/index.d.cts 1.64 kB │ gzip: 0.52 kB
18
- ℹ [CJS] 1 files, total: 1.64 kB
19
- ✔ Build complete in 1684ms
20
- ℹ [ESM] dist/index.mjs 0.40 kB │ gzip: 0.17 kB
21
- ℹ [ESM] dist/index.d.mts 1.64 kB │ gzip: 0.52 kB
22
- ℹ [ESM] 2 files, total: 2.04 kB
23
- ✔ Build complete in 1687ms
package/CHANGELOG.md DELETED
@@ -1,63 +0,0 @@
1
- # @open-wa/wa-automate-types-only
2
-
3
- ## 5.0.0-alpha.7
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies []:
8
- - @open-wa/schema@5.0.0-alpha.7
9
-
10
- ## 5.0.0-alpha.6
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies []:
15
- - @open-wa/schema@5.0.0-alpha.6
16
-
17
- ## 5.0.0-alpha.5
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies []:
22
- - @open-wa/schema@5.0.0-alpha.5
23
-
24
- ## 5.0.0-alpha.4
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies []:
29
- - @open-wa/schema@5.0.0-alpha.4
30
-
31
- ## 5.0.0-alpha.3
32
-
33
- ### Patch Changes
34
-
35
- - Updated dependencies []:
36
- - @open-wa/schema@5.0.0-alpha.3
37
-
38
- ## 5.0.0-alpha.2
39
-
40
- ### Patch Changes
41
-
42
- - Updated dependencies []:
43
- - @open-wa/schema@5.0.0-alpha.2
44
-
45
- ## 5.0.0-alpha.2
46
-
47
- ### Minor Changes
48
-
49
- - Dry run minor bump
50
-
51
- ### Patch Changes
52
-
53
- - Updated dependencies []:
54
- - @open-wa/schema@6.0.0-alpha.2
55
-
56
- ## 5.0.1-alpha.2
57
-
58
- ### Patch Changes
59
-
60
- - Dry run patch bump
61
-
62
- - Updated dependencies []:
63
- - @open-wa/schema@5.0.1-alpha.2
package/src/index.ts DELETED
@@ -1,76 +0,0 @@
1
- /**
2
- * @open-wa/wa-automate-types-only
3
- *
4
- * Lightweight type-only re-exports from @open-wa/schema.
5
- * This package ships ZERO runtime code — only .d.ts declarations.
6
- * Use it when you need open-wa types without pulling in zod, codecs, or other runtime deps.
7
- */
8
- export type {
9
- // === Identity types ===
10
- ChatId,
11
- MessageId,
12
- ContactId,
13
- GroupChatId,
14
- GroupId,
15
-
16
- // === Core model types ===
17
- Chat,
18
- Message,
19
- Contact,
20
- Content,
21
- GroupMetadata,
22
- Id,
23
- DataURL,
24
- Base64,
25
-
26
- // === Message types ===
27
- MessageAck,
28
- MessageTypes,
29
-
30
- // === Config types ===
31
- Config,
32
- StrictConfig,
33
- PartialConfig,
34
- DeepPartialConfig,
35
- ClientConfig,
36
- SessionData,
37
- DevTools,
38
- Viewport,
39
- QueueOptions,
40
-
41
- // === Method types ===
42
- ClientFunctionMetadata,
43
- MethodDefinition,
44
- ParameterMetadata,
45
- CapabilityDefinition,
46
- CapabilityMetadata,
47
- CapabilityStatus,
48
- CapabilityType,
49
-
50
- // === Event types ===
51
- EventDefinition,
52
- EventMetadata,
53
- EventStatus,
54
-
55
- // === Schema inference helpers ===
56
- InferInput,
57
- InferOutput,
58
- } from '@open-wa/schema';
59
-
60
- export type { BaseClient, BaseNamespacedClient } from '@open-wa/schema/generated';
61
-
62
- // === Value re-exports (enums, constants needed at type-level) ===
63
- export {
64
- SimpleListener,
65
- HttpMethod,
66
- HttpMethodEnum,
67
- LicenseTier,
68
- LicenseEnum,
69
- FunctionalityScope,
70
- FunctionalityEnum,
71
- ActionType,
72
- ActionEnum,
73
- StateEnum,
74
- NotificationLanguage,
75
- QRFormat,
76
- } from '@open-wa/schema';
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src",
6
- "moduleResolution": "bundler",
7
- "module": "ESNext"
8
- },
9
- "include": ["src/**/*"]
10
- }
package/tsdown.config.ts DELETED
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'tsdown'
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['cjs', 'esm'],
6
- dts: true,
7
- })