@talqing/sdk 0.22.4 → 0.23.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 +2 -5
- package/dist/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +9 -99
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +12 -188
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +5 -492
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/cjs/vocabulary.d.ts +1 -6
- package/dist/cjs/vocabulary.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +9 -99
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +8 -180
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +5 -492
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/vocabulary.d.ts +1 -6
- package/dist/esm/vocabulary.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +13 -214
- package/src/gen/types.gen.ts +5 -530
- package/src/vocabulary.ts +0 -7
|
@@ -2461,7 +2461,7 @@ export type ConversationItemResponse = {
|
|
|
2461
2461
|
*
|
|
2462
2462
|
* How this item reached us or the person; null for notes and instructions.
|
|
2463
2463
|
*/
|
|
2464
|
-
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' |
|
|
2464
|
+
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' | null;
|
|
2465
2465
|
/**
|
|
2466
2466
|
* Client Message Id
|
|
2467
2467
|
*/
|
|
@@ -2885,142 +2885,6 @@ export type ConversationTraceResponse = {
|
|
|
2885
2885
|
*/
|
|
2886
2886
|
events: Array<ConversationTraceEventResponse>;
|
|
2887
2887
|
};
|
|
2888
|
-
/**
|
|
2889
|
-
* CopilotFunctionCallItem
|
|
2890
|
-
*
|
|
2891
|
-
* The CoPilot calling one of its tools. `arguments` is JSON, as a string,
|
|
2892
|
-
* because that is what the model emitted and what a replay must re-send.
|
|
2893
|
-
*/
|
|
2894
|
-
export type CopilotFunctionCallItem = {
|
|
2895
|
-
/**
|
|
2896
|
-
* Arguments
|
|
2897
|
-
*/
|
|
2898
|
-
arguments: string;
|
|
2899
|
-
/**
|
|
2900
|
-
* Call Id
|
|
2901
|
-
*/
|
|
2902
|
-
call_id: string;
|
|
2903
|
-
/**
|
|
2904
|
-
* Name
|
|
2905
|
-
*/
|
|
2906
|
-
name: string;
|
|
2907
|
-
/**
|
|
2908
|
-
* Type
|
|
2909
|
-
*/
|
|
2910
|
-
type: 'function_call';
|
|
2911
|
-
};
|
|
2912
|
-
/**
|
|
2913
|
-
* CopilotFunctionCallOutputItem
|
|
2914
|
-
*
|
|
2915
|
-
* What that tool answered.
|
|
2916
|
-
*/
|
|
2917
|
-
export type CopilotFunctionCallOutputItem = {
|
|
2918
|
-
/**
|
|
2919
|
-
* Call Id
|
|
2920
|
-
*/
|
|
2921
|
-
call_id: string;
|
|
2922
|
-
/**
|
|
2923
|
-
* Output
|
|
2924
|
-
*/
|
|
2925
|
-
output: string;
|
|
2926
|
-
/**
|
|
2927
|
-
* Type
|
|
2928
|
-
*/
|
|
2929
|
-
type: 'function_call_output';
|
|
2930
|
-
};
|
|
2931
|
-
/**
|
|
2932
|
-
* CopilotMessageEvent
|
|
2933
|
-
*
|
|
2934
|
-
* One new message on the rail — the person's, or the CoPilot's.
|
|
2935
|
-
*/
|
|
2936
|
-
export type CopilotMessageEvent = {
|
|
2937
|
-
/**
|
|
2938
|
-
* Content
|
|
2939
|
-
*/
|
|
2940
|
-
content: string | null;
|
|
2941
|
-
/**
|
|
2942
|
-
* Created At
|
|
2943
|
-
*/
|
|
2944
|
-
created_at: string;
|
|
2945
|
-
/**
|
|
2946
|
-
* Event
|
|
2947
|
-
*/
|
|
2948
|
-
event: 'message';
|
|
2949
|
-
/**
|
|
2950
|
-
* Id
|
|
2951
|
-
*/
|
|
2952
|
-
id: string;
|
|
2953
|
-
/**
|
|
2954
|
-
* Item
|
|
2955
|
-
*/
|
|
2956
|
-
item: ({
|
|
2957
|
-
type: 'message';
|
|
2958
|
-
} & CopilotTextItem) | ({
|
|
2959
|
-
type: 'function_call';
|
|
2960
|
-
} & CopilotFunctionCallItem) | ({
|
|
2961
|
-
type: 'function_call_output';
|
|
2962
|
-
} & CopilotFunctionCallOutputItem);
|
|
2963
|
-
/**
|
|
2964
|
-
* Name
|
|
2965
|
-
*/
|
|
2966
|
-
name: string | null;
|
|
2967
|
-
/**
|
|
2968
|
-
* Role
|
|
2969
|
-
*/
|
|
2970
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
2971
|
-
/**
|
|
2972
|
-
* Tool Call Id
|
|
2973
|
-
*/
|
|
2974
|
-
tool_call_id: string | null;
|
|
2975
|
-
/**
|
|
2976
|
-
* Tool Calls
|
|
2977
|
-
*/
|
|
2978
|
-
tool_calls: Array<{
|
|
2979
|
-
[key: string]: string;
|
|
2980
|
-
}> | null;
|
|
2981
|
-
};
|
|
2982
|
-
/**
|
|
2983
|
-
* CopilotSnapshotEvent
|
|
2984
|
-
*
|
|
2985
|
-
* The whole conversation. First frame, and again on every reconnect.
|
|
2986
|
-
*/
|
|
2987
|
-
export type CopilotSnapshotEvent = {
|
|
2988
|
-
/**
|
|
2989
|
-
* Busy
|
|
2990
|
-
*/
|
|
2991
|
-
busy: boolean;
|
|
2992
|
-
/**
|
|
2993
|
-
* Error
|
|
2994
|
-
*/
|
|
2995
|
-
error: string | null;
|
|
2996
|
-
/**
|
|
2997
|
-
* Event
|
|
2998
|
-
*/
|
|
2999
|
-
event: 'snapshot';
|
|
3000
|
-
/**
|
|
3001
|
-
* Messages
|
|
3002
|
-
*/
|
|
3003
|
-
messages: Array<PublicMessage>;
|
|
3004
|
-
};
|
|
3005
|
-
/**
|
|
3006
|
-
* CopilotTextItem
|
|
3007
|
-
*
|
|
3008
|
-
* A plain message on the rail: the person's, or the CoPilot's reply.
|
|
3009
|
-
*/
|
|
3010
|
-
export type CopilotTextItem = {
|
|
3011
|
-
/**
|
|
3012
|
-
* Content
|
|
3013
|
-
*/
|
|
3014
|
-
content: string;
|
|
3015
|
-
/**
|
|
3016
|
-
* Role
|
|
3017
|
-
*/
|
|
3018
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
3019
|
-
/**
|
|
3020
|
-
* Type
|
|
3021
|
-
*/
|
|
3022
|
-
type: 'message';
|
|
3023
|
-
};
|
|
3024
2888
|
/**
|
|
3025
2889
|
* CostDetailResponse
|
|
3026
2890
|
*
|
|
@@ -5898,7 +5762,7 @@ export type IntegrationMcpToolsResponse = {
|
|
|
5898
5762
|
/**
|
|
5899
5763
|
* IntegrationResponse
|
|
5900
5764
|
*
|
|
5901
|
-
* Public API representation of an integration
|
|
5765
|
+
* Public API representation of an integration.
|
|
5902
5766
|
*/
|
|
5903
5767
|
export type IntegrationResponse = {
|
|
5904
5768
|
/**
|
|
@@ -6035,7 +5899,7 @@ export type IntegrationTriggerCapability = {
|
|
|
6035
5899
|
/**
|
|
6036
5900
|
* IntegrationTriggerResponse
|
|
6037
5901
|
*
|
|
6038
|
-
* Public API representation of an integration trigger
|
|
5902
|
+
* Public API representation of an integration trigger.
|
|
6039
5903
|
*/
|
|
6040
5904
|
export type IntegrationTriggerResponse = {
|
|
6041
5905
|
/**
|
|
@@ -6241,7 +6105,7 @@ export type ItemCreatedEvent = {
|
|
|
6241
6105
|
*
|
|
6242
6106
|
* How this item reached us or the person; null for notes and instructions.
|
|
6243
6107
|
*/
|
|
6244
|
-
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' |
|
|
6108
|
+
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' | null;
|
|
6245
6109
|
/**
|
|
6246
6110
|
* Client Message Id
|
|
6247
6111
|
*/
|
|
@@ -9598,53 +9462,6 @@ export type ProviderKeysResponse = {
|
|
|
9598
9462
|
*/
|
|
9599
9463
|
items: Array<ProviderKeyResponse>;
|
|
9600
9464
|
};
|
|
9601
|
-
/**
|
|
9602
|
-
* PublicMessage
|
|
9603
|
-
*
|
|
9604
|
-
* Dashboard SSE/message payload for one CoPilot timeline row.
|
|
9605
|
-
*/
|
|
9606
|
-
export type PublicMessage = {
|
|
9607
|
-
/**
|
|
9608
|
-
* Content
|
|
9609
|
-
*/
|
|
9610
|
-
content: string | null;
|
|
9611
|
-
/**
|
|
9612
|
-
* Created At
|
|
9613
|
-
*/
|
|
9614
|
-
created_at: string;
|
|
9615
|
-
/**
|
|
9616
|
-
* Id
|
|
9617
|
-
*/
|
|
9618
|
-
id: string;
|
|
9619
|
-
/**
|
|
9620
|
-
* Item
|
|
9621
|
-
*/
|
|
9622
|
-
item: ({
|
|
9623
|
-
type: 'message';
|
|
9624
|
-
} & CopilotTextItem) | ({
|
|
9625
|
-
type: 'function_call';
|
|
9626
|
-
} & CopilotFunctionCallItem) | ({
|
|
9627
|
-
type: 'function_call_output';
|
|
9628
|
-
} & CopilotFunctionCallOutputItem);
|
|
9629
|
-
/**
|
|
9630
|
-
* Name
|
|
9631
|
-
*/
|
|
9632
|
-
name: string | null;
|
|
9633
|
-
/**
|
|
9634
|
-
* Role
|
|
9635
|
-
*/
|
|
9636
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
9637
|
-
/**
|
|
9638
|
-
* Tool Call Id
|
|
9639
|
-
*/
|
|
9640
|
-
tool_call_id: string | null;
|
|
9641
|
-
/**
|
|
9642
|
-
* Tool Calls
|
|
9643
|
-
*/
|
|
9644
|
-
tool_calls: Array<{
|
|
9645
|
-
[key: string]: string;
|
|
9646
|
-
}> | null;
|
|
9647
|
-
};
|
|
9648
9465
|
/**
|
|
9649
9466
|
* PublishAgentResponse
|
|
9650
9467
|
*/
|
|
@@ -10891,28 +10708,6 @@ export type SendDtmfOperation = {
|
|
|
10891
10708
|
*/
|
|
10892
10709
|
on_error?: 'abort' | 'continue';
|
|
10893
10710
|
};
|
|
10894
|
-
/**
|
|
10895
|
-
* SendMessageRequest
|
|
10896
|
-
*/
|
|
10897
|
-
export type SendMessageRequest = {
|
|
10898
|
-
/**
|
|
10899
|
-
* Text
|
|
10900
|
-
*/
|
|
10901
|
-
text: string;
|
|
10902
|
-
};
|
|
10903
|
-
/**
|
|
10904
|
-
* SendMessageResponse
|
|
10905
|
-
*/
|
|
10906
|
-
export type SendMessageResponse = {
|
|
10907
|
-
/**
|
|
10908
|
-
* Conversation Id
|
|
10909
|
-
*/
|
|
10910
|
-
conversation_id: string;
|
|
10911
|
-
/**
|
|
10912
|
-
* Turn Id
|
|
10913
|
-
*/
|
|
10914
|
-
turn_id: string;
|
|
10915
|
-
};
|
|
10916
10711
|
/**
|
|
10917
10712
|
* SendTestEmailRequest
|
|
10918
10713
|
*
|
|
@@ -13425,7 +13220,7 @@ export type TurnMetrics = {
|
|
|
13425
13220
|
/**
|
|
13426
13221
|
* TurnPayload
|
|
13427
13222
|
*
|
|
13428
|
-
*
|
|
13223
|
+
* A turn's lifecycle, as the conversation's SSE stream carries it.
|
|
13429
13224
|
*
|
|
13430
13225
|
* The `event` field is the discriminator every SSE payload on this API carries:
|
|
13431
13226
|
* it repeats the frame's `event:` line inside the JSON, so a generated client
|
|
@@ -17680,288 +17475,6 @@ export type ConversationsTraceResults = {
|
|
|
17680
17475
|
200: ConversationTraceResponse;
|
|
17681
17476
|
};
|
|
17682
17477
|
export type ConversationsTraceResult = ConversationsTraceResults[keyof ConversationsTraceResults];
|
|
17683
|
-
export type CopilotAgentsSendData = {
|
|
17684
|
-
body: SendMessageRequest;
|
|
17685
|
-
path: {
|
|
17686
|
-
/**
|
|
17687
|
-
* Agent Id
|
|
17688
|
-
*/
|
|
17689
|
-
agent_id: string;
|
|
17690
|
-
};
|
|
17691
|
-
query?: never;
|
|
17692
|
-
url: '/v1/copilot/agents/{agent_id}/messages';
|
|
17693
|
-
};
|
|
17694
|
-
export type CopilotAgentsSendErrors = {
|
|
17695
|
-
/**
|
|
17696
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
17697
|
-
*/
|
|
17698
|
-
400: ErrorResponse;
|
|
17699
|
-
/**
|
|
17700
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17701
|
-
*/
|
|
17702
|
-
401: ErrorResponse;
|
|
17703
|
-
/**
|
|
17704
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
17705
|
-
*/
|
|
17706
|
-
403: ErrorResponse;
|
|
17707
|
-
/**
|
|
17708
|
-
* No such resource in this organization.
|
|
17709
|
-
*/
|
|
17710
|
-
404: ErrorResponse;
|
|
17711
|
-
/**
|
|
17712
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
17713
|
-
*/
|
|
17714
|
-
409: ErrorResponse;
|
|
17715
|
-
/**
|
|
17716
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17717
|
-
*/
|
|
17718
|
-
422: ErrorResponse;
|
|
17719
|
-
/**
|
|
17720
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17721
|
-
*/
|
|
17722
|
-
default: ErrorResponse;
|
|
17723
|
-
};
|
|
17724
|
-
export type CopilotAgentsSendError = CopilotAgentsSendErrors[keyof CopilotAgentsSendErrors];
|
|
17725
|
-
export type CopilotAgentsSendResults = {
|
|
17726
|
-
/**
|
|
17727
|
-
* Successful Response
|
|
17728
|
-
*/
|
|
17729
|
-
200: SendMessageResponse;
|
|
17730
|
-
};
|
|
17731
|
-
export type CopilotAgentsSendResult = CopilotAgentsSendResults[keyof CopilotAgentsSendResults];
|
|
17732
|
-
export type CopilotAgentsStreamData = {
|
|
17733
|
-
body?: never;
|
|
17734
|
-
path: {
|
|
17735
|
-
/**
|
|
17736
|
-
* Agent Id
|
|
17737
|
-
*/
|
|
17738
|
-
agent_id: string;
|
|
17739
|
-
};
|
|
17740
|
-
query?: never;
|
|
17741
|
-
url: '/v1/copilot/agents/{agent_id}/stream';
|
|
17742
|
-
};
|
|
17743
|
-
export type CopilotAgentsStreamErrors = {
|
|
17744
|
-
/**
|
|
17745
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17746
|
-
*/
|
|
17747
|
-
401: ErrorResponse;
|
|
17748
|
-
/**
|
|
17749
|
-
* No such resource in this organization.
|
|
17750
|
-
*/
|
|
17751
|
-
404: ErrorResponse;
|
|
17752
|
-
/**
|
|
17753
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17754
|
-
*/
|
|
17755
|
-
422: ErrorResponse;
|
|
17756
|
-
/**
|
|
17757
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17758
|
-
*/
|
|
17759
|
-
default: ErrorResponse;
|
|
17760
|
-
};
|
|
17761
|
-
export type CopilotAgentsStreamError = CopilotAgentsStreamErrors[keyof CopilotAgentsStreamErrors];
|
|
17762
|
-
export type CopilotAgentsStreamResults = {
|
|
17763
|
-
/**
|
|
17764
|
-
* Response 200 Copilot.Agents.Stream
|
|
17765
|
-
*
|
|
17766
|
-
* A `text/event-stream` that stays open. Each frame is `event: <name>` followed by `data: <json>`, and the JSON repeats the name in its `event` field so one value identifies the frame. A line starting `:` is a keep-alive, sent every 15s so idle proxies do not close the connection. Read it with an SSE client (`EventSource`, `httpx-sse`) — the body is never a single JSON document.
|
|
17767
|
-
*/
|
|
17768
|
-
200: ({
|
|
17769
|
-
event: 'snapshot';
|
|
17770
|
-
} & CopilotSnapshotEvent) | ({
|
|
17771
|
-
event: 'message';
|
|
17772
|
-
} & CopilotMessageEvent) | ({
|
|
17773
|
-
event: 'turn';
|
|
17774
|
-
} & TurnPayload);
|
|
17775
|
-
};
|
|
17776
|
-
export type CopilotAgentsStreamResult = CopilotAgentsStreamResults[keyof CopilotAgentsStreamResults];
|
|
17777
|
-
export type CopilotTasksSendData = {
|
|
17778
|
-
body: SendMessageRequest;
|
|
17779
|
-
path: {
|
|
17780
|
-
/**
|
|
17781
|
-
* Task Id
|
|
17782
|
-
*/
|
|
17783
|
-
task_id: string;
|
|
17784
|
-
};
|
|
17785
|
-
query?: never;
|
|
17786
|
-
url: '/v1/copilot/tasks/{task_id}/messages';
|
|
17787
|
-
};
|
|
17788
|
-
export type CopilotTasksSendErrors = {
|
|
17789
|
-
/**
|
|
17790
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
17791
|
-
*/
|
|
17792
|
-
400: ErrorResponse;
|
|
17793
|
-
/**
|
|
17794
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17795
|
-
*/
|
|
17796
|
-
401: ErrorResponse;
|
|
17797
|
-
/**
|
|
17798
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
17799
|
-
*/
|
|
17800
|
-
403: ErrorResponse;
|
|
17801
|
-
/**
|
|
17802
|
-
* No such resource in this organization.
|
|
17803
|
-
*/
|
|
17804
|
-
404: ErrorResponse;
|
|
17805
|
-
/**
|
|
17806
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
17807
|
-
*/
|
|
17808
|
-
409: ErrorResponse;
|
|
17809
|
-
/**
|
|
17810
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17811
|
-
*/
|
|
17812
|
-
422: ErrorResponse;
|
|
17813
|
-
/**
|
|
17814
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17815
|
-
*/
|
|
17816
|
-
default: ErrorResponse;
|
|
17817
|
-
};
|
|
17818
|
-
export type CopilotTasksSendError = CopilotTasksSendErrors[keyof CopilotTasksSendErrors];
|
|
17819
|
-
export type CopilotTasksSendResults = {
|
|
17820
|
-
/**
|
|
17821
|
-
* Successful Response
|
|
17822
|
-
*/
|
|
17823
|
-
200: SendMessageResponse;
|
|
17824
|
-
};
|
|
17825
|
-
export type CopilotTasksSendResult = CopilotTasksSendResults[keyof CopilotTasksSendResults];
|
|
17826
|
-
export type CopilotTasksStreamData = {
|
|
17827
|
-
body?: never;
|
|
17828
|
-
path: {
|
|
17829
|
-
/**
|
|
17830
|
-
* Task Id
|
|
17831
|
-
*/
|
|
17832
|
-
task_id: string;
|
|
17833
|
-
};
|
|
17834
|
-
query?: never;
|
|
17835
|
-
url: '/v1/copilot/tasks/{task_id}/stream';
|
|
17836
|
-
};
|
|
17837
|
-
export type CopilotTasksStreamErrors = {
|
|
17838
|
-
/**
|
|
17839
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17840
|
-
*/
|
|
17841
|
-
401: ErrorResponse;
|
|
17842
|
-
/**
|
|
17843
|
-
* No such resource in this organization.
|
|
17844
|
-
*/
|
|
17845
|
-
404: ErrorResponse;
|
|
17846
|
-
/**
|
|
17847
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17848
|
-
*/
|
|
17849
|
-
422: ErrorResponse;
|
|
17850
|
-
/**
|
|
17851
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17852
|
-
*/
|
|
17853
|
-
default: ErrorResponse;
|
|
17854
|
-
};
|
|
17855
|
-
export type CopilotTasksStreamError = CopilotTasksStreamErrors[keyof CopilotTasksStreamErrors];
|
|
17856
|
-
export type CopilotTasksStreamResults = {
|
|
17857
|
-
/**
|
|
17858
|
-
* Response 200 Copilot.Tasks.Stream
|
|
17859
|
-
*
|
|
17860
|
-
* A `text/event-stream` that stays open. Each frame is `event: <name>` followed by `data: <json>`, and the JSON repeats the name in its `event` field so one value identifies the frame. A line starting `:` is a keep-alive, sent every 15s so idle proxies do not close the connection. Read it with an SSE client (`EventSource`, `httpx-sse`) — the body is never a single JSON document.
|
|
17861
|
-
*/
|
|
17862
|
-
200: ({
|
|
17863
|
-
event: 'snapshot';
|
|
17864
|
-
} & CopilotSnapshotEvent) | ({
|
|
17865
|
-
event: 'message';
|
|
17866
|
-
} & CopilotMessageEvent) | ({
|
|
17867
|
-
event: 'turn';
|
|
17868
|
-
} & TurnPayload);
|
|
17869
|
-
};
|
|
17870
|
-
export type CopilotTasksStreamResult = CopilotTasksStreamResults[keyof CopilotTasksStreamResults];
|
|
17871
|
-
export type CopilotToolsSendData = {
|
|
17872
|
-
body: SendMessageRequest;
|
|
17873
|
-
path: {
|
|
17874
|
-
/**
|
|
17875
|
-
* Tool Id
|
|
17876
|
-
*/
|
|
17877
|
-
tool_id: string;
|
|
17878
|
-
};
|
|
17879
|
-
query?: never;
|
|
17880
|
-
url: '/v1/copilot/tools/{tool_id}/messages';
|
|
17881
|
-
};
|
|
17882
|
-
export type CopilotToolsSendErrors = {
|
|
17883
|
-
/**
|
|
17884
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
17885
|
-
*/
|
|
17886
|
-
400: ErrorResponse;
|
|
17887
|
-
/**
|
|
17888
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17889
|
-
*/
|
|
17890
|
-
401: ErrorResponse;
|
|
17891
|
-
/**
|
|
17892
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
17893
|
-
*/
|
|
17894
|
-
403: ErrorResponse;
|
|
17895
|
-
/**
|
|
17896
|
-
* No such resource in this organization.
|
|
17897
|
-
*/
|
|
17898
|
-
404: ErrorResponse;
|
|
17899
|
-
/**
|
|
17900
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
17901
|
-
*/
|
|
17902
|
-
409: ErrorResponse;
|
|
17903
|
-
/**
|
|
17904
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17905
|
-
*/
|
|
17906
|
-
422: ErrorResponse;
|
|
17907
|
-
/**
|
|
17908
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17909
|
-
*/
|
|
17910
|
-
default: ErrorResponse;
|
|
17911
|
-
};
|
|
17912
|
-
export type CopilotToolsSendError = CopilotToolsSendErrors[keyof CopilotToolsSendErrors];
|
|
17913
|
-
export type CopilotToolsSendResults = {
|
|
17914
|
-
/**
|
|
17915
|
-
* Successful Response
|
|
17916
|
-
*/
|
|
17917
|
-
200: SendMessageResponse;
|
|
17918
|
-
};
|
|
17919
|
-
export type CopilotToolsSendResult = CopilotToolsSendResults[keyof CopilotToolsSendResults];
|
|
17920
|
-
export type CopilotToolsStreamData = {
|
|
17921
|
-
body?: never;
|
|
17922
|
-
path: {
|
|
17923
|
-
/**
|
|
17924
|
-
* Tool Id
|
|
17925
|
-
*/
|
|
17926
|
-
tool_id: string;
|
|
17927
|
-
};
|
|
17928
|
-
query?: never;
|
|
17929
|
-
url: '/v1/copilot/tools/{tool_id}/stream';
|
|
17930
|
-
};
|
|
17931
|
-
export type CopilotToolsStreamErrors = {
|
|
17932
|
-
/**
|
|
17933
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
17934
|
-
*/
|
|
17935
|
-
401: ErrorResponse;
|
|
17936
|
-
/**
|
|
17937
|
-
* No such resource in this organization.
|
|
17938
|
-
*/
|
|
17939
|
-
404: ErrorResponse;
|
|
17940
|
-
/**
|
|
17941
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
17942
|
-
*/
|
|
17943
|
-
422: ErrorResponse;
|
|
17944
|
-
/**
|
|
17945
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
17946
|
-
*/
|
|
17947
|
-
default: ErrorResponse;
|
|
17948
|
-
};
|
|
17949
|
-
export type CopilotToolsStreamError = CopilotToolsStreamErrors[keyof CopilotToolsStreamErrors];
|
|
17950
|
-
export type CopilotToolsStreamResults = {
|
|
17951
|
-
/**
|
|
17952
|
-
* Response 200 Copilot.Tools.Stream
|
|
17953
|
-
*
|
|
17954
|
-
* A `text/event-stream` that stays open. Each frame is `event: <name>` followed by `data: <json>`, and the JSON repeats the name in its `event` field so one value identifies the frame. A line starting `:` is a keep-alive, sent every 15s so idle proxies do not close the connection. Read it with an SSE client (`EventSource`, `httpx-sse`) — the body is never a single JSON document.
|
|
17955
|
-
*/
|
|
17956
|
-
200: ({
|
|
17957
|
-
event: 'snapshot';
|
|
17958
|
-
} & CopilotSnapshotEvent) | ({
|
|
17959
|
-
event: 'message';
|
|
17960
|
-
} & CopilotMessageEvent) | ({
|
|
17961
|
-
event: 'turn';
|
|
17962
|
-
} & TurnPayload);
|
|
17963
|
-
};
|
|
17964
|
-
export type CopilotToolsStreamResult = CopilotToolsStreamResults[keyof CopilotToolsStreamResults];
|
|
17965
17478
|
export type EmailBatchesListData = {
|
|
17966
17479
|
body?: never;
|
|
17967
17480
|
path?: never;
|