@amigo-ai/platform-sdk 0.59.0 → 0.61.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 +0 -1
- package/api.md +1 -1
- package/dist/index.cjs +47 -23
- package/dist/index.cjs.map +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -23
- package/dist/index.mjs.map +2 -2
- package/dist/resources/actions.js +1 -1
- package/dist/resources/base.js +3 -0
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/conversations.js.map +1 -1
- package/dist/resources/desktop-sessions.js +6 -6
- package/dist/resources/desktop-sessions.js.map +1 -1
- package/dist/resources/simulations.js.map +1 -1
- package/dist/resources/skills.js +1 -1
- package/dist/resources/tasks.js +3 -3
- package/dist/resources/tasks.js.map +1 -1
- package/dist/types/generated/api.d.ts +142 -760
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +2 -7
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/base.d.ts +11 -0
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/conversations.d.ts +2 -0
- package/dist/types/resources/conversations.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +5 -5
- package/dist/types/resources/desktop-sessions.d.ts +44 -21
- package/dist/types/resources/desktop-sessions.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +24 -102
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/pipeline.d.ts +3 -3
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +28 -1
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +2 -7
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/tasks.d.ts +28 -42
- package/dist/types/resources/tasks.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/api.md
CHANGED
|
@@ -52,7 +52,7 @@ Notes:
|
|
|
52
52
|
- Webhooks: `verifyWebhookSignature`, `parseWebhookEvent`, `WebhookVerificationError`
|
|
53
53
|
- Pagination and response helpers: `paginate`, `buildLastResponse`, `extractRequestId`
|
|
54
54
|
- Conversation helpers: `sessionConnectAuthProtocols`, `textStreamAuthProtocols`
|
|
55
|
-
- Conversation types: `ConversationDetail`, `ConversationListResponse`, `ConversationSummary`, `ConversationTurn`, `CreateConversationRequest`, `ListConversationsParams`, `SessionConnectUrlParams`, `TextStreamAuthProtocols` (WebSocket constructor subprotocol tuple), `TextStreamUrlParams`, `TurnDoneEvent`, `TurnErrorEvent`, `TurnMessageEvent`, `TurnRequest`, `TurnResponse`, `TurnConversationSnapshot`, `TurnStreamEvent`, `TurnThinkingEvent`, `TurnTokenEvent`, `TurnToolCallCompletedEvent`, `TurnToolCallStartedEvent`
|
|
55
|
+
- Conversation types: `ConversationDetail`, `ConversationListResponse`, `ConversationSummary`, `ConversationTurn`, `ConversationTurnAvailableAction`, `ConversationTurnStateTransition`, `CreateConversationRequest`, `ListConversationsParams`, `SessionConnectUrlParams`, `TextStreamAuthProtocols` (WebSocket constructor subprotocol tuple), `TextStreamUrlParams`, `TurnDoneEvent`, `TurnErrorEvent`, `TurnMessageEvent`, `TurnRequest`, `TurnResponse`, `TurnConversationSnapshot`, `TurnStreamEvent`, `TurnThinkingEvent`, `TurnTokenEvent`, `TurnToolCallCompletedEvent`, `TurnToolCallStartedEvent`
|
|
56
56
|
- Response and hook types: `PaginatedList`, `ListParams`, `LastResponseInfo`, `ResponseMetadata`, `WithResponseMetadata`, `AmigoResponse`, `RetryOptions`, `RateLimitInfo`, `ClientHooks`, `RequestHookContext`, `ResponseHookContext`, `ErrorHookContext`
|
|
57
57
|
- Generated OpenAPI types: `paths`, `components`, `operations`
|
|
58
58
|
- Generated API types are produced with `npm run gen-types` from the committed `openapi.json` snapshot.
|
package/dist/index.cjs
CHANGED
|
@@ -995,6 +995,9 @@ function resolveScopedPlatformClient(client) {
|
|
|
995
995
|
options: existing?.options
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
+
function untypedClient(client) {
|
|
999
|
+
return client;
|
|
1000
|
+
}
|
|
998
1001
|
|
|
999
1002
|
// src/resources/me.ts
|
|
1000
1003
|
var MeResource = class extends WorkspaceScopedResource {
|
|
@@ -4795,43 +4798,58 @@ var DesktopSessionsResource = class extends WorkspaceScopedResource {
|
|
|
4795
4798
|
/** Spin up a new desktop session */
|
|
4796
4799
|
async create(body) {
|
|
4797
4800
|
return extractData(
|
|
4798
|
-
await this.client.POST(
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4801
|
+
await untypedClient(this.client).POST(
|
|
4802
|
+
"/v1/{workspace_id}/desktop-sessions",
|
|
4803
|
+
{
|
|
4804
|
+
params: { path: { workspace_id: this.workspaceId } },
|
|
4805
|
+
body
|
|
4806
|
+
}
|
|
4807
|
+
)
|
|
4802
4808
|
);
|
|
4803
4809
|
}
|
|
4804
4810
|
/** Disconnect / tear down a desktop session */
|
|
4805
4811
|
async disconnect(sessionId) {
|
|
4806
4812
|
return extractData(
|
|
4807
|
-
await this.client.DELETE(
|
|
4808
|
-
|
|
4809
|
-
|
|
4813
|
+
await untypedClient(this.client).DELETE(
|
|
4814
|
+
"/v1/{workspace_id}/desktop-sessions/{session_id}",
|
|
4815
|
+
{
|
|
4816
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
|
|
4817
|
+
}
|
|
4818
|
+
)
|
|
4810
4819
|
);
|
|
4811
4820
|
}
|
|
4812
4821
|
/** Drive a click / type / scroll action against the session */
|
|
4813
4822
|
async sendAction(sessionId, body) {
|
|
4814
4823
|
return extractData(
|
|
4815
|
-
await this.client.POST(
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4824
|
+
await untypedClient(this.client).POST(
|
|
4825
|
+
"/v1/{workspace_id}/desktop-sessions/{session_id}/action",
|
|
4826
|
+
{
|
|
4827
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } },
|
|
4828
|
+
body
|
|
4829
|
+
}
|
|
4830
|
+
)
|
|
4819
4831
|
);
|
|
4820
4832
|
}
|
|
4821
4833
|
/** Get the latest screenshot for a session */
|
|
4822
4834
|
async getScreenshot(sessionId) {
|
|
4823
4835
|
return extractData(
|
|
4824
|
-
await this.client.GET(
|
|
4825
|
-
|
|
4826
|
-
|
|
4836
|
+
await untypedClient(this.client).GET(
|
|
4837
|
+
"/v1/{workspace_id}/desktop-sessions/{session_id}/screenshot",
|
|
4838
|
+
{
|
|
4839
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
|
|
4840
|
+
}
|
|
4841
|
+
)
|
|
4827
4842
|
);
|
|
4828
4843
|
}
|
|
4829
4844
|
/** Get the session's current connection + activity status */
|
|
4830
4845
|
async getStatus(sessionId) {
|
|
4831
4846
|
return extractData(
|
|
4832
|
-
await this.client.GET(
|
|
4833
|
-
|
|
4834
|
-
|
|
4847
|
+
await untypedClient(this.client).GET(
|
|
4848
|
+
"/v1/{workspace_id}/desktop-sessions/{session_id}/status",
|
|
4849
|
+
{
|
|
4850
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } }
|
|
4851
|
+
}
|
|
4852
|
+
)
|
|
4835
4853
|
);
|
|
4836
4854
|
}
|
|
4837
4855
|
};
|
|
@@ -4978,17 +4996,23 @@ var TasksResource = class extends WorkspaceScopedResource {
|
|
|
4978
4996
|
/** Get the current state of a single task */
|
|
4979
4997
|
async get(taskId) {
|
|
4980
4998
|
return extractData(
|
|
4981
|
-
await this.client.GET(
|
|
4982
|
-
|
|
4983
|
-
|
|
4999
|
+
await untypedClient(this.client).GET(
|
|
5000
|
+
"/v1/{workspace_id}/tasks/{task_id}",
|
|
5001
|
+
{
|
|
5002
|
+
params: { path: { workspace_id: this.workspaceId, task_id: taskId } }
|
|
5003
|
+
}
|
|
5004
|
+
)
|
|
4984
5005
|
);
|
|
4985
5006
|
}
|
|
4986
5007
|
/** List every task associated with a call (by Twilio call sid) */
|
|
4987
5008
|
async listByCall(callSid) {
|
|
4988
5009
|
return extractData(
|
|
4989
|
-
await this.client.GET(
|
|
4990
|
-
|
|
4991
|
-
|
|
5010
|
+
await untypedClient(this.client).GET(
|
|
5011
|
+
"/v1/{workspace_id}/tasks/by-call/{call_sid}",
|
|
5012
|
+
{
|
|
5013
|
+
params: { path: { workspace_id: this.workspaceId, call_sid: callSid } }
|
|
5014
|
+
}
|
|
5015
|
+
)
|
|
4992
5016
|
);
|
|
4993
5017
|
}
|
|
4994
5018
|
};
|