@or-sdk/agents 2.1.0-beta.2697.0 → 2.1.0-beta.2715.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/CHANGELOG.md +8 -0
- package/README.md +0 -2
- package/dist/types/types.d.ts +1 -2
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/types.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/agents@2.0.4...@or-sdk/agents@2.0.5) (2024-05-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @or-sdk/agents
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.0.4](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/agents@2.0.3...@or-sdk/agents@2.0.4) (2024-05-07)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @or-sdk/agents
|
package/README.md
CHANGED
|
@@ -144,7 +144,6 @@ Set an action for an agent.
|
|
|
144
144
|
#### Example
|
|
145
145
|
```typescript
|
|
146
146
|
const actionParams = {
|
|
147
|
-
kind: ActionKind.Mutation,
|
|
148
147
|
name: 'updateStatus',
|
|
149
148
|
description: 'Updates the status of an item',
|
|
150
149
|
typeDefs: `
|
|
@@ -173,7 +172,6 @@ const setActionResponse = await agents.setAgentAction('agent-id', actionParams);
|
|
|
173
172
|
|
|
174
173
|
// Example response
|
|
175
174
|
{
|
|
176
|
-
kind: ActionKind.Mutation,
|
|
177
175
|
name: 'updateStatus',
|
|
178
176
|
description: 'Updates the status of an item',
|
|
179
177
|
typeDefs: `
|
package/dist/types/types.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export type ActionExample = {
|
|
|
35
35
|
activities: AgentActivity[];
|
|
36
36
|
};
|
|
37
37
|
export type AgentAction = {
|
|
38
|
-
kind: ActionKind;
|
|
39
38
|
name: string;
|
|
40
39
|
description: string;
|
|
41
40
|
typeDefs: string;
|
|
@@ -55,7 +54,7 @@ export type Agent = {
|
|
|
55
54
|
updatedAt: string | Date;
|
|
56
55
|
primer: AgentActivity[];
|
|
57
56
|
};
|
|
58
|
-
export type UpdateAgent = Partial<Omit<Agent, 'id' | 'createdAt' | 'updatedAt' | '
|
|
57
|
+
export type UpdateAgent = Partial<Omit<Agent, 'id' | 'createdAt' | 'updatedAt' | 'accountId' | 'typeDefs'>>;
|
|
59
58
|
export type CreateAgent = Pick<Agent, 'name'> & UpdateAgent;
|
|
60
59
|
export type FindAgentsOptions = {
|
|
61
60
|
from?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKjD,oBAAY,YAAY;IAEtB,WAAW,gBAAgB;IAE3B,OAAO,YAAY;IAEnB,MAAM,WAAW;CAClB;AAKD,oBAAY,UAAU;IAEpB,KAAK,UAAU;IAGf,QAAQ,aAAa;CACtB;AAKD,MAAM,MAAM,WAAW,GAAG;IAIxB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG;IAIzB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAKF,MAAM,MAAM,iBAAiB,GA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,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,IAAI,CAAC,EAAE,UAAU,CAAC;IAKlB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,EAAE,MAAM,CAAC;KACtB,EAAE,CAAC;IACJ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/agents",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.2715.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lodash.camelcase": "^4.3.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@or-sdk/lookup": "^1.14.0",
|
|
31
|
+
"@or-sdk/lookup": "^1.14.2-beta.2715.0",
|
|
32
32
|
"@types/lodash": "^4.14.176",
|
|
33
33
|
"@types/lodash.camelcase": "^4.3.9",
|
|
34
34
|
"@vitest/coverage-c8": "^0.31.1",
|
package/src/types.ts
CHANGED
|
@@ -128,11 +128,6 @@ export type ActionExample = {
|
|
|
128
128
|
* Defines an action that an agent can perform, including querying and mutation operations.
|
|
129
129
|
*/
|
|
130
130
|
export type AgentAction = {
|
|
131
|
-
/**
|
|
132
|
-
* The category of action, such as a query or mutation.
|
|
133
|
-
*/
|
|
134
|
-
kind: ActionKind;
|
|
135
|
-
|
|
136
131
|
/**
|
|
137
132
|
* The name of the action.
|
|
138
133
|
*/
|
|
@@ -222,7 +217,10 @@ export type Agent = {
|
|
|
222
217
|
/**
|
|
223
218
|
* Defines the properties that can be modified when updating an existing agent.
|
|
224
219
|
*/
|
|
225
|
-
export type UpdateAgent = Partial<Omit<
|
|
220
|
+
export type UpdateAgent = Partial<Omit<
|
|
221
|
+
Agent,
|
|
222
|
+
'id' | 'createdAt' | 'updatedAt' | 'accountId' | 'typeDefs'
|
|
223
|
+
>>;
|
|
226
224
|
|
|
227
225
|
/**
|
|
228
226
|
* Defines the properties required to create a new agent, excluding those automatically assigned upon creation.
|