@corsair-dev/witai 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +62 -0
  2. package/package.json +9 -3
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # @corsair-dev/witai
2
+
3
+ WitAi plugin for Corsair.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @corsair-dev/witai
9
+ ```
10
+
11
+ ## Endpoints
12
+
13
+ | Operation | Operation ID | Risk | Description |
14
+ |-----------|--------------|------|-------------|
15
+ | `apps.createApp` | `witai.api.apps.createApp` | `write` | Create a new Wit.ai app |
16
+ | `apps.deleteApp` | `witai.api.apps.deleteApp` | `destructive` | Delete a specific Wit.ai app |
17
+ | `apps.exportApp` | `witai.api.apps.exportApp` | `read` | Export Wit.ai app data as a ZIP backup |
18
+ | `apps.getApp` | `witai.api.apps.getApp` | `read` | Retrieve metadata and settings of a Wit.ai app |
19
+ | `apps.listApps` | `witai.api.apps.listApps` | `read` | List all Wit.ai apps for the authenticated user |
20
+ | `apps.listTags` | `witai.api.apps.listTags` | `read` | List all tag groups (versions) for a Wit.ai app |
21
+ | `apps.updateApp` | `witai.api.apps.updateApp` | `write` | Update an existing Wit.ai app |
22
+ | `entities.addKeyword` | `witai.api.entities.addKeyword` | `write` | Add a keyword with optional synonyms to an entity |
23
+ | `entities.addSynonym` | `witai.api.entities.addSynonym` | `write` | Add a synonym to a keyword in an entity |
24
+ | `entities.createEntity` | `witai.api.entities.createEntity` | `write` | Create a new entity in Wit.ai |
25
+ | `entities.deleteEntity` | `witai.api.entities.deleteEntity` | `destructive` | Permanently delete an entity by name |
26
+ | `entities.deleteKeyword` | `witai.api.entities.deleteKeyword` | `destructive` | Delete a keyword from an entity |
27
+ | `entities.deleteRole` | `witai.api.entities.deleteRole` | `destructive` | Delete a specific role from an entity |
28
+ | `entities.deleteSynonym` | `witai.api.entities.deleteSynonym` | `destructive` | Delete a synonym from a keyword in an entity |
29
+ | `entities.getEntity` | `witai.api.entities.getEntity` | `read` | Retrieve details of a specific entity |
30
+ | `entities.listEntities` | `witai.api.entities.listEntities` | `read` | List all entities in the Wit.ai app |
31
+ | `intents.createIntent` | `witai.api.intents.createIntent` | `write` | Create a new intent in Wit.ai |
32
+ | `intents.deleteIntent` | `witai.api.intents.deleteIntent` | `destructive` | Permanently delete an intent by name |
33
+ | `intents.getIntent` | `witai.api.intents.getIntent` | `read` | Retrieve details of a specific intent |
34
+ | `intents.listIntents` | `witai.api.intents.listIntents` | `read` | List all intents in the Wit.ai app |
35
+ | `message.detectLanguage` | `witai.api.message.detectLanguage` | `read` | Detect the language of a given text input |
36
+ | `message.getMessage` | `witai.api.message.getMessage` | `read` | Analyze text to extract intents, entities, and traits |
37
+ | `traits.addValue` | `witai.api.traits.addValue` | `write` | Add a new value to an existing trait |
38
+ | `traits.createTrait` | `witai.api.traits.createTrait` | `write` | Create a new trait in Wit.ai |
39
+ | `traits.deleteTrait` | `witai.api.traits.deleteTrait` | `destructive` | Delete a trait by name |
40
+ | `traits.getTrait` | `witai.api.traits.getTrait` | `read` | Retrieve details of a specific trait |
41
+ | `traits.listTraits` | `witai.api.traits.listTraits` | `read` | List all traits in the Wit.ai app |
42
+ | `utterances.createUtterances` | `witai.api.utterances.createUtterances` | `write` | Add training utterances to the Wit.ai app (rate limit: 200/min) |
43
+ | `utterances.deleteUtterances` | `witai.api.utterances.deleteUtterances` | `destructive` | Delete validated utterances from the Wit.ai app |
44
+ | `utterances.listUtterances` | `witai.api.utterances.listUtterances` | `read` | List training utterances from the Wit.ai app |
45
+ | `voices.getVoice` | `witai.api.voices.getVoice` | `read` | Retrieve details for a specific text-to-speech voice |
46
+ | `voices.listVoices` | `witai.api.voices.listVoices` | `read` | List all available text-to-speech voices grouped by locale |
47
+
48
+ ## Auth
49
+
50
+ Auth: API key. Corsair prompts your tenant for credentials on first use.
51
+
52
+ ## Webhooks
53
+
54
+ No webhooks.
55
+
56
+ ## Reference
57
+
58
+ Full docs, types, and examples: https://docs.corsair.dev/plugins/witai
59
+
60
+ ## License
61
+
62
+ Apache-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsair-dev/witai",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "WitAi plugin for Corsair",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,18 +24,24 @@
24
24
  "tsup": "^8.0.1",
25
25
  "typescript": "^5.9.3",
26
26
  "zod": "^4.1.13",
27
- "corsair": "0.1.119"
27
+ "corsair": "0.1.130"
28
28
  },
29
29
  "keywords": [
30
30
  "corsair",
31
31
  "witai",
32
32
  "plugin"
33
33
  ],
34
- "author": "",
34
+ "author": "Corsair (https://corsair.dev)",
35
35
  "license": "Apache-2.0",
36
36
  "files": [
37
37
  "dist"
38
38
  ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/corsairdev/corsair.git",
42
+ "directory": "packages/witai"
43
+ },
44
+ "homepage": "https://docs.corsair.dev/plugins/witai",
39
45
  "scripts": {
40
46
  "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && pnpm exec tsc --build --force && tsup",
41
47
  "typecheck": "tsc --noEmit",