@native-engagement/sdk 0.9.1 → 0.11.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 ADDED
@@ -0,0 +1,54 @@
1
+ # Native Engagement SDK
2
+
3
+ JavaScript and TypeScript access to Native Engagement. Requires Node.js 24.22.1 or later in the Node.js 24 line.
4
+
5
+ ```sh
6
+ npm install @native-engagement/sdk@0.11.0
7
+ ```
8
+
9
+ ## Connect and sign in
10
+
11
+ Use the trusted service URL supplied by your administrator. Browser sign-in handles account credentials and any MFA challenge.
12
+
13
+ ```js
14
+ import {
15
+ createNativePublicLogin, openNativeLoginPage, RemoteNativeEngagementSdk
16
+ } from '@native-engagement/sdk';
17
+
18
+ const origin = 'https://engagement.example';
19
+ const login = await createNativePublicLogin(origin);
20
+ const grant = await login.authorize(AbortSignal.timeout(180_000), openNativeLoginPage);
21
+ const sdk = new RemoteNativeEngagementSdk({
22
+ baseUrl: origin,
23
+ accessToken: () => grant.accessToken
24
+ });
25
+
26
+ const discovery = await sdk.discoverContracts({ query: 'execution.device', limit: 10 });
27
+ console.log(discovery);
28
+ // At the end of the session:
29
+ await login.revoke(grant);
30
+ ```
31
+
32
+ Your administrator provisions account and tenant permissions. Each operation checks current authorization. Keep grants in memory or an approved protected credential store. For an existing automation identity, supply its authorized token provider through `accessToken`; never put credentials in command arguments or source code.
33
+
34
+ ## Discover and call capabilities
35
+
36
+ Use `sdk.discoverContracts({query, kind, limit, cursor})` to find relevant capabilities and `sdk.schema(name, 'input')` for their current input constraints. Call `sdk.query({name, payload})` or `sdk.command({name, payload})` with those inputs. Commands require a stable `idempotencyKey`.
37
+
38
+ The SDK also exports typed helpers for supported business operations and `NativeMcpToolCatalog` for a host that already owns an authenticated MCP client. Capability discovery grants no additional permissions.
39
+
40
+ Keep original request keys and receipts. After a lost response or an unknown external result, inspect the original operation before retrying. Request acceptance, operation completion and external delivery are separate outcomes.
41
+
42
+ ## Prepare an execution environment
43
+
44
+ This package is a remote client. It does not contain another Agent Runtime, an execution node, channel applications or models. Your Agent Runtime remains managed by its existing host.
45
+
46
+ `installationRuntimeSkill()` returns offline execution prerequisites and dependency reuse guidance. Discover `execution.device.list` and `execution.device.inspect` to reuse an existing authorized environment. When another environment is needed, follow `execution.environment.request` and its original authenticated installation handoff.
47
+
48
+ The host Agent can prepare selected authorized dependencies and install a trusted execution artifact. Reuse compatible installed programs and caches. An execution artifact supplies the local Node/Worker programs; an existing installation can continue to use its original programs. A Desktop application is optional.
49
+
50
+ Installation, account pairing, channel authorization and updates retain their own checks. Preserve installation identity, credentials, task journals and recovery state across upgrades. Missing trusted artifacts or unsupported platforms must remain explicit.
51
+
52
+ ## License
53
+
54
+ Apache-2.0. Bundled third-party notices are included in `THIRD_PARTY_LICENSES.txt`.
@@ -1,3 +1,120 @@
1
+ ajv@8.20.0
2
+
3
+ The MIT License (MIT)
4
+
5
+ Copyright (c) 2015-2021 Evgeny Poberezkin
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+
26
+
27
+ ---
28
+
29
+ fast-deep-equal@3.1.3
30
+
31
+ MIT License
32
+
33
+ Copyright (c) 2017 Evgeny Poberezkin
34
+
35
+ Permission is hereby granted, free of charge, to any person obtaining a copy
36
+ of this software and associated documentation files (the "Software"), to deal
37
+ in the Software without restriction, including without limitation the rights
38
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
+ copies of the Software, and to permit persons to whom the Software is
40
+ furnished to do so, subject to the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be included in all
43
+ copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
+ SOFTWARE.
52
+
53
+
54
+ ---
55
+
56
+ json-schema-traverse@1.0.0
57
+
58
+ MIT License
59
+
60
+ Copyright (c) 2017 Evgeny Poberezkin
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in all
70
+ copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
78
+ SOFTWARE.
79
+
80
+
81
+ ---
82
+
83
+ fast-uri@3.1.9
84
+
85
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
86
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
87
+ All rights reserved.
88
+
89
+ Redistribution and use in source and binary forms, with or without
90
+ modification, are permitted provided that the following conditions are met:
91
+ * Redistributions of source code must retain the above copyright
92
+ notice, this list of conditions and the following disclaimer.
93
+ * Redistributions in binary form must reproduce the above copyright
94
+ notice, this list of conditions and the following disclaimer in the
95
+ documentation and/or other materials provided with the distribution.
96
+ * The names of any contributors may not be used to endorse or promote
97
+ products derived from this software without specific prior written
98
+ permission.
99
+
100
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
101
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
102
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
103
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
104
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
105
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
106
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
107
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
108
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
109
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
110
+
111
+ * * *
112
+
113
+ The complete list of contributors can be found at:
114
+ - https://github.com/garycourt/uri-js/graphs/contributors
115
+
116
+ ---
117
+
1
118
  oauth4webapi@3.8.8
2
119
 
3
120
  The MIT License (MIT)