@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
package/src/gen/types.gen.ts
CHANGED
|
@@ -2535,7 +2535,7 @@ export type ConversationItemResponse = {
|
|
|
2535
2535
|
*
|
|
2536
2536
|
* How this item reached us or the person; null for notes and instructions.
|
|
2537
2537
|
*/
|
|
2538
|
-
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' |
|
|
2538
|
+
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' | null;
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Client Message Id
|
|
2541
2541
|
*/
|
|
@@ -2968,147 +2968,6 @@ export type ConversationTraceResponse = {
|
|
|
2968
2968
|
events: Array<ConversationTraceEventResponse>;
|
|
2969
2969
|
};
|
|
2970
2970
|
|
|
2971
|
-
/**
|
|
2972
|
-
* CopilotFunctionCallItem
|
|
2973
|
-
*
|
|
2974
|
-
* The CoPilot calling one of its tools. `arguments` is JSON, as a string,
|
|
2975
|
-
* because that is what the model emitted and what a replay must re-send.
|
|
2976
|
-
*/
|
|
2977
|
-
export type CopilotFunctionCallItem = {
|
|
2978
|
-
/**
|
|
2979
|
-
* Arguments
|
|
2980
|
-
*/
|
|
2981
|
-
arguments: string;
|
|
2982
|
-
/**
|
|
2983
|
-
* Call Id
|
|
2984
|
-
*/
|
|
2985
|
-
call_id: string;
|
|
2986
|
-
/**
|
|
2987
|
-
* Name
|
|
2988
|
-
*/
|
|
2989
|
-
name: string;
|
|
2990
|
-
/**
|
|
2991
|
-
* Type
|
|
2992
|
-
*/
|
|
2993
|
-
type: 'function_call';
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
* CopilotFunctionCallOutputItem
|
|
2998
|
-
*
|
|
2999
|
-
* What that tool answered.
|
|
3000
|
-
*/
|
|
3001
|
-
export type CopilotFunctionCallOutputItem = {
|
|
3002
|
-
/**
|
|
3003
|
-
* Call Id
|
|
3004
|
-
*/
|
|
3005
|
-
call_id: string;
|
|
3006
|
-
/**
|
|
3007
|
-
* Output
|
|
3008
|
-
*/
|
|
3009
|
-
output: string;
|
|
3010
|
-
/**
|
|
3011
|
-
* Type
|
|
3012
|
-
*/
|
|
3013
|
-
type: 'function_call_output';
|
|
3014
|
-
};
|
|
3015
|
-
|
|
3016
|
-
/**
|
|
3017
|
-
* CopilotMessageEvent
|
|
3018
|
-
*
|
|
3019
|
-
* One new message on the rail — the person's, or the CoPilot's.
|
|
3020
|
-
*/
|
|
3021
|
-
export type CopilotMessageEvent = {
|
|
3022
|
-
/**
|
|
3023
|
-
* Content
|
|
3024
|
-
*/
|
|
3025
|
-
content: string | null;
|
|
3026
|
-
/**
|
|
3027
|
-
* Created At
|
|
3028
|
-
*/
|
|
3029
|
-
created_at: string;
|
|
3030
|
-
/**
|
|
3031
|
-
* Event
|
|
3032
|
-
*/
|
|
3033
|
-
event: 'message';
|
|
3034
|
-
/**
|
|
3035
|
-
* Id
|
|
3036
|
-
*/
|
|
3037
|
-
id: string;
|
|
3038
|
-
/**
|
|
3039
|
-
* Item
|
|
3040
|
-
*/
|
|
3041
|
-
item: ({
|
|
3042
|
-
type: 'message';
|
|
3043
|
-
} & CopilotTextItem) | ({
|
|
3044
|
-
type: 'function_call';
|
|
3045
|
-
} & CopilotFunctionCallItem) | ({
|
|
3046
|
-
type: 'function_call_output';
|
|
3047
|
-
} & CopilotFunctionCallOutputItem);
|
|
3048
|
-
/**
|
|
3049
|
-
* Name
|
|
3050
|
-
*/
|
|
3051
|
-
name: string | null;
|
|
3052
|
-
/**
|
|
3053
|
-
* Role
|
|
3054
|
-
*/
|
|
3055
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
3056
|
-
/**
|
|
3057
|
-
* Tool Call Id
|
|
3058
|
-
*/
|
|
3059
|
-
tool_call_id: string | null;
|
|
3060
|
-
/**
|
|
3061
|
-
* Tool Calls
|
|
3062
|
-
*/
|
|
3063
|
-
tool_calls: Array<{
|
|
3064
|
-
[key: string]: string;
|
|
3065
|
-
}> | null;
|
|
3066
|
-
};
|
|
3067
|
-
|
|
3068
|
-
/**
|
|
3069
|
-
* CopilotSnapshotEvent
|
|
3070
|
-
*
|
|
3071
|
-
* The whole conversation. First frame, and again on every reconnect.
|
|
3072
|
-
*/
|
|
3073
|
-
export type CopilotSnapshotEvent = {
|
|
3074
|
-
/**
|
|
3075
|
-
* Busy
|
|
3076
|
-
*/
|
|
3077
|
-
busy: boolean;
|
|
3078
|
-
/**
|
|
3079
|
-
* Error
|
|
3080
|
-
*/
|
|
3081
|
-
error: string | null;
|
|
3082
|
-
/**
|
|
3083
|
-
* Event
|
|
3084
|
-
*/
|
|
3085
|
-
event: 'snapshot';
|
|
3086
|
-
/**
|
|
3087
|
-
* Messages
|
|
3088
|
-
*/
|
|
3089
|
-
messages: Array<PublicMessage>;
|
|
3090
|
-
};
|
|
3091
|
-
|
|
3092
|
-
/**
|
|
3093
|
-
* CopilotTextItem
|
|
3094
|
-
*
|
|
3095
|
-
* A plain message on the rail: the person's, or the CoPilot's reply.
|
|
3096
|
-
*/
|
|
3097
|
-
export type CopilotTextItem = {
|
|
3098
|
-
/**
|
|
3099
|
-
* Content
|
|
3100
|
-
*/
|
|
3101
|
-
content: string;
|
|
3102
|
-
/**
|
|
3103
|
-
* Role
|
|
3104
|
-
*/
|
|
3105
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
3106
|
-
/**
|
|
3107
|
-
* Type
|
|
3108
|
-
*/
|
|
3109
|
-
type: 'message';
|
|
3110
|
-
};
|
|
3111
|
-
|
|
3112
2971
|
/**
|
|
3113
2972
|
* CostDetailResponse
|
|
3114
2973
|
*
|
|
@@ -6078,7 +5937,7 @@ export type IntegrationMcpToolsResponse = {
|
|
|
6078
5937
|
/**
|
|
6079
5938
|
* IntegrationResponse
|
|
6080
5939
|
*
|
|
6081
|
-
* Public API representation of an integration
|
|
5940
|
+
* Public API representation of an integration.
|
|
6082
5941
|
*/
|
|
6083
5942
|
export type IntegrationResponse = {
|
|
6084
5943
|
/**
|
|
@@ -6218,7 +6077,7 @@ export type IntegrationTriggerCapability = {
|
|
|
6218
6077
|
/**
|
|
6219
6078
|
* IntegrationTriggerResponse
|
|
6220
6079
|
*
|
|
6221
|
-
* Public API representation of an integration trigger
|
|
6080
|
+
* Public API representation of an integration trigger.
|
|
6222
6081
|
*/
|
|
6223
6082
|
export type IntegrationTriggerResponse = {
|
|
6224
6083
|
/**
|
|
@@ -6429,7 +6288,7 @@ export type ItemCreatedEvent = {
|
|
|
6429
6288
|
*
|
|
6430
6289
|
* How this item reached us or the person; null for notes and instructions.
|
|
6431
6290
|
*/
|
|
6432
|
-
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' |
|
|
6291
|
+
channel: 'phone_call' | 'whatsapp_call' | 'whatsapp_message' | 'web_call' | 'chat' | 'telegram' | 'stream' | null;
|
|
6433
6292
|
/**
|
|
6434
6293
|
* Client Message Id
|
|
6435
6294
|
*/
|
|
@@ -9901,54 +9760,6 @@ export type ProviderKeysResponse = {
|
|
|
9901
9760
|
items: Array<ProviderKeyResponse>;
|
|
9902
9761
|
};
|
|
9903
9762
|
|
|
9904
|
-
/**
|
|
9905
|
-
* PublicMessage
|
|
9906
|
-
*
|
|
9907
|
-
* Dashboard SSE/message payload for one CoPilot timeline row.
|
|
9908
|
-
*/
|
|
9909
|
-
export type PublicMessage = {
|
|
9910
|
-
/**
|
|
9911
|
-
* Content
|
|
9912
|
-
*/
|
|
9913
|
-
content: string | null;
|
|
9914
|
-
/**
|
|
9915
|
-
* Created At
|
|
9916
|
-
*/
|
|
9917
|
-
created_at: string;
|
|
9918
|
-
/**
|
|
9919
|
-
* Id
|
|
9920
|
-
*/
|
|
9921
|
-
id: string;
|
|
9922
|
-
/**
|
|
9923
|
-
* Item
|
|
9924
|
-
*/
|
|
9925
|
-
item: ({
|
|
9926
|
-
type: 'message';
|
|
9927
|
-
} & CopilotTextItem) | ({
|
|
9928
|
-
type: 'function_call';
|
|
9929
|
-
} & CopilotFunctionCallItem) | ({
|
|
9930
|
-
type: 'function_call_output';
|
|
9931
|
-
} & CopilotFunctionCallOutputItem);
|
|
9932
|
-
/**
|
|
9933
|
-
* Name
|
|
9934
|
-
*/
|
|
9935
|
-
name: string | null;
|
|
9936
|
-
/**
|
|
9937
|
-
* Role
|
|
9938
|
-
*/
|
|
9939
|
-
role: 'developer' | 'system' | 'user' | 'assistant' | 'tool';
|
|
9940
|
-
/**
|
|
9941
|
-
* Tool Call Id
|
|
9942
|
-
*/
|
|
9943
|
-
tool_call_id: string | null;
|
|
9944
|
-
/**
|
|
9945
|
-
* Tool Calls
|
|
9946
|
-
*/
|
|
9947
|
-
tool_calls: Array<{
|
|
9948
|
-
[key: string]: string;
|
|
9949
|
-
}> | null;
|
|
9950
|
-
};
|
|
9951
|
-
|
|
9952
9763
|
/**
|
|
9953
9764
|
* PublishAgentResponse
|
|
9954
9765
|
*/
|
|
@@ -11244,30 +11055,6 @@ export type SendDtmfOperation = {
|
|
|
11244
11055
|
on_error?: 'abort' | 'continue';
|
|
11245
11056
|
};
|
|
11246
11057
|
|
|
11247
|
-
/**
|
|
11248
|
-
* SendMessageRequest
|
|
11249
|
-
*/
|
|
11250
|
-
export type SendMessageRequest = {
|
|
11251
|
-
/**
|
|
11252
|
-
* Text
|
|
11253
|
-
*/
|
|
11254
|
-
text: string;
|
|
11255
|
-
};
|
|
11256
|
-
|
|
11257
|
-
/**
|
|
11258
|
-
* SendMessageResponse
|
|
11259
|
-
*/
|
|
11260
|
-
export type SendMessageResponse = {
|
|
11261
|
-
/**
|
|
11262
|
-
* Conversation Id
|
|
11263
|
-
*/
|
|
11264
|
-
conversation_id: string;
|
|
11265
|
-
/**
|
|
11266
|
-
* Turn Id
|
|
11267
|
-
*/
|
|
11268
|
-
turn_id: string;
|
|
11269
|
-
};
|
|
11270
|
-
|
|
11271
11058
|
/**
|
|
11272
11059
|
* SendTestEmailRequest
|
|
11273
11060
|
*
|
|
@@ -13852,7 +13639,7 @@ export type TurnMetrics = {
|
|
|
13852
13639
|
/**
|
|
13853
13640
|
* TurnPayload
|
|
13854
13641
|
*
|
|
13855
|
-
*
|
|
13642
|
+
* A turn's lifecycle, as the conversation's SSE stream carries it.
|
|
13856
13643
|
*
|
|
13857
13644
|
* The `event` field is the discriminator every SSE payload on this API carries:
|
|
13858
13645
|
* it repeats the frame's `event:` line inside the JSON, so a generated client
|
|
@@ -18492,318 +18279,6 @@ export type ConversationsTraceResults = {
|
|
|
18492
18279
|
|
|
18493
18280
|
export type ConversationsTraceResult = ConversationsTraceResults[keyof ConversationsTraceResults];
|
|
18494
18281
|
|
|
18495
|
-
export type CopilotAgentsSendData = {
|
|
18496
|
-
body: SendMessageRequest;
|
|
18497
|
-
path: {
|
|
18498
|
-
/**
|
|
18499
|
-
* Agent Id
|
|
18500
|
-
*/
|
|
18501
|
-
agent_id: string;
|
|
18502
|
-
};
|
|
18503
|
-
query?: never;
|
|
18504
|
-
url: '/v1/copilot/agents/{agent_id}/messages';
|
|
18505
|
-
};
|
|
18506
|
-
|
|
18507
|
-
export type CopilotAgentsSendErrors = {
|
|
18508
|
-
/**
|
|
18509
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18510
|
-
*/
|
|
18511
|
-
400: ErrorResponse;
|
|
18512
|
-
/**
|
|
18513
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18514
|
-
*/
|
|
18515
|
-
401: ErrorResponse;
|
|
18516
|
-
/**
|
|
18517
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
18518
|
-
*/
|
|
18519
|
-
403: ErrorResponse;
|
|
18520
|
-
/**
|
|
18521
|
-
* No such resource in this organization.
|
|
18522
|
-
*/
|
|
18523
|
-
404: ErrorResponse;
|
|
18524
|
-
/**
|
|
18525
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18526
|
-
*/
|
|
18527
|
-
409: ErrorResponse;
|
|
18528
|
-
/**
|
|
18529
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18530
|
-
*/
|
|
18531
|
-
422: ErrorResponse;
|
|
18532
|
-
/**
|
|
18533
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18534
|
-
*/
|
|
18535
|
-
default: ErrorResponse;
|
|
18536
|
-
};
|
|
18537
|
-
|
|
18538
|
-
export type CopilotAgentsSendError = CopilotAgentsSendErrors[keyof CopilotAgentsSendErrors];
|
|
18539
|
-
|
|
18540
|
-
export type CopilotAgentsSendResults = {
|
|
18541
|
-
/**
|
|
18542
|
-
* Successful Response
|
|
18543
|
-
*/
|
|
18544
|
-
200: SendMessageResponse;
|
|
18545
|
-
};
|
|
18546
|
-
|
|
18547
|
-
export type CopilotAgentsSendResult = CopilotAgentsSendResults[keyof CopilotAgentsSendResults];
|
|
18548
|
-
|
|
18549
|
-
export type CopilotAgentsStreamData = {
|
|
18550
|
-
body?: never;
|
|
18551
|
-
path: {
|
|
18552
|
-
/**
|
|
18553
|
-
* Agent Id
|
|
18554
|
-
*/
|
|
18555
|
-
agent_id: string;
|
|
18556
|
-
};
|
|
18557
|
-
query?: never;
|
|
18558
|
-
url: '/v1/copilot/agents/{agent_id}/stream';
|
|
18559
|
-
};
|
|
18560
|
-
|
|
18561
|
-
export type CopilotAgentsStreamErrors = {
|
|
18562
|
-
/**
|
|
18563
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18564
|
-
*/
|
|
18565
|
-
401: ErrorResponse;
|
|
18566
|
-
/**
|
|
18567
|
-
* No such resource in this organization.
|
|
18568
|
-
*/
|
|
18569
|
-
404: ErrorResponse;
|
|
18570
|
-
/**
|
|
18571
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18572
|
-
*/
|
|
18573
|
-
422: ErrorResponse;
|
|
18574
|
-
/**
|
|
18575
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18576
|
-
*/
|
|
18577
|
-
default: ErrorResponse;
|
|
18578
|
-
};
|
|
18579
|
-
|
|
18580
|
-
export type CopilotAgentsStreamError = CopilotAgentsStreamErrors[keyof CopilotAgentsStreamErrors];
|
|
18581
|
-
|
|
18582
|
-
export type CopilotAgentsStreamResults = {
|
|
18583
|
-
/**
|
|
18584
|
-
* Response 200 Copilot.Agents.Stream
|
|
18585
|
-
*
|
|
18586
|
-
* 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.
|
|
18587
|
-
*/
|
|
18588
|
-
200: ({
|
|
18589
|
-
event: 'snapshot';
|
|
18590
|
-
} & CopilotSnapshotEvent) | ({
|
|
18591
|
-
event: 'message';
|
|
18592
|
-
} & CopilotMessageEvent) | ({
|
|
18593
|
-
event: 'turn';
|
|
18594
|
-
} & TurnPayload);
|
|
18595
|
-
};
|
|
18596
|
-
|
|
18597
|
-
export type CopilotAgentsStreamResult = CopilotAgentsStreamResults[keyof CopilotAgentsStreamResults];
|
|
18598
|
-
|
|
18599
|
-
export type CopilotTasksSendData = {
|
|
18600
|
-
body: SendMessageRequest;
|
|
18601
|
-
path: {
|
|
18602
|
-
/**
|
|
18603
|
-
* Task Id
|
|
18604
|
-
*/
|
|
18605
|
-
task_id: string;
|
|
18606
|
-
};
|
|
18607
|
-
query?: never;
|
|
18608
|
-
url: '/v1/copilot/tasks/{task_id}/messages';
|
|
18609
|
-
};
|
|
18610
|
-
|
|
18611
|
-
export type CopilotTasksSendErrors = {
|
|
18612
|
-
/**
|
|
18613
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18614
|
-
*/
|
|
18615
|
-
400: ErrorResponse;
|
|
18616
|
-
/**
|
|
18617
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18618
|
-
*/
|
|
18619
|
-
401: ErrorResponse;
|
|
18620
|
-
/**
|
|
18621
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
18622
|
-
*/
|
|
18623
|
-
403: ErrorResponse;
|
|
18624
|
-
/**
|
|
18625
|
-
* No such resource in this organization.
|
|
18626
|
-
*/
|
|
18627
|
-
404: ErrorResponse;
|
|
18628
|
-
/**
|
|
18629
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18630
|
-
*/
|
|
18631
|
-
409: ErrorResponse;
|
|
18632
|
-
/**
|
|
18633
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18634
|
-
*/
|
|
18635
|
-
422: ErrorResponse;
|
|
18636
|
-
/**
|
|
18637
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18638
|
-
*/
|
|
18639
|
-
default: ErrorResponse;
|
|
18640
|
-
};
|
|
18641
|
-
|
|
18642
|
-
export type CopilotTasksSendError = CopilotTasksSendErrors[keyof CopilotTasksSendErrors];
|
|
18643
|
-
|
|
18644
|
-
export type CopilotTasksSendResults = {
|
|
18645
|
-
/**
|
|
18646
|
-
* Successful Response
|
|
18647
|
-
*/
|
|
18648
|
-
200: SendMessageResponse;
|
|
18649
|
-
};
|
|
18650
|
-
|
|
18651
|
-
export type CopilotTasksSendResult = CopilotTasksSendResults[keyof CopilotTasksSendResults];
|
|
18652
|
-
|
|
18653
|
-
export type CopilotTasksStreamData = {
|
|
18654
|
-
body?: never;
|
|
18655
|
-
path: {
|
|
18656
|
-
/**
|
|
18657
|
-
* Task Id
|
|
18658
|
-
*/
|
|
18659
|
-
task_id: string;
|
|
18660
|
-
};
|
|
18661
|
-
query?: never;
|
|
18662
|
-
url: '/v1/copilot/tasks/{task_id}/stream';
|
|
18663
|
-
};
|
|
18664
|
-
|
|
18665
|
-
export type CopilotTasksStreamErrors = {
|
|
18666
|
-
/**
|
|
18667
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18668
|
-
*/
|
|
18669
|
-
401: ErrorResponse;
|
|
18670
|
-
/**
|
|
18671
|
-
* No such resource in this organization.
|
|
18672
|
-
*/
|
|
18673
|
-
404: ErrorResponse;
|
|
18674
|
-
/**
|
|
18675
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18676
|
-
*/
|
|
18677
|
-
422: ErrorResponse;
|
|
18678
|
-
/**
|
|
18679
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18680
|
-
*/
|
|
18681
|
-
default: ErrorResponse;
|
|
18682
|
-
};
|
|
18683
|
-
|
|
18684
|
-
export type CopilotTasksStreamError = CopilotTasksStreamErrors[keyof CopilotTasksStreamErrors];
|
|
18685
|
-
|
|
18686
|
-
export type CopilotTasksStreamResults = {
|
|
18687
|
-
/**
|
|
18688
|
-
* Response 200 Copilot.Tasks.Stream
|
|
18689
|
-
*
|
|
18690
|
-
* 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.
|
|
18691
|
-
*/
|
|
18692
|
-
200: ({
|
|
18693
|
-
event: 'snapshot';
|
|
18694
|
-
} & CopilotSnapshotEvent) | ({
|
|
18695
|
-
event: 'message';
|
|
18696
|
-
} & CopilotMessageEvent) | ({
|
|
18697
|
-
event: 'turn';
|
|
18698
|
-
} & TurnPayload);
|
|
18699
|
-
};
|
|
18700
|
-
|
|
18701
|
-
export type CopilotTasksStreamResult = CopilotTasksStreamResults[keyof CopilotTasksStreamResults];
|
|
18702
|
-
|
|
18703
|
-
export type CopilotToolsSendData = {
|
|
18704
|
-
body: SendMessageRequest;
|
|
18705
|
-
path: {
|
|
18706
|
-
/**
|
|
18707
|
-
* Tool Id
|
|
18708
|
-
*/
|
|
18709
|
-
tool_id: string;
|
|
18710
|
-
};
|
|
18711
|
-
query?: never;
|
|
18712
|
-
url: '/v1/copilot/tools/{tool_id}/messages';
|
|
18713
|
-
};
|
|
18714
|
-
|
|
18715
|
-
export type CopilotToolsSendErrors = {
|
|
18716
|
-
/**
|
|
18717
|
-
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
18718
|
-
*/
|
|
18719
|
-
400: ErrorResponse;
|
|
18720
|
-
/**
|
|
18721
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18722
|
-
*/
|
|
18723
|
-
401: ErrorResponse;
|
|
18724
|
-
/**
|
|
18725
|
-
* Authenticated, but this organization role may not perform the operation.
|
|
18726
|
-
*/
|
|
18727
|
-
403: ErrorResponse;
|
|
18728
|
-
/**
|
|
18729
|
-
* No such resource in this organization.
|
|
18730
|
-
*/
|
|
18731
|
-
404: ErrorResponse;
|
|
18732
|
-
/**
|
|
18733
|
-
* The resource's current state forbids this — a name already taken, a job already running.
|
|
18734
|
-
*/
|
|
18735
|
-
409: ErrorResponse;
|
|
18736
|
-
/**
|
|
18737
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18738
|
-
*/
|
|
18739
|
-
422: ErrorResponse;
|
|
18740
|
-
/**
|
|
18741
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18742
|
-
*/
|
|
18743
|
-
default: ErrorResponse;
|
|
18744
|
-
};
|
|
18745
|
-
|
|
18746
|
-
export type CopilotToolsSendError = CopilotToolsSendErrors[keyof CopilotToolsSendErrors];
|
|
18747
|
-
|
|
18748
|
-
export type CopilotToolsSendResults = {
|
|
18749
|
-
/**
|
|
18750
|
-
* Successful Response
|
|
18751
|
-
*/
|
|
18752
|
-
200: SendMessageResponse;
|
|
18753
|
-
};
|
|
18754
|
-
|
|
18755
|
-
export type CopilotToolsSendResult = CopilotToolsSendResults[keyof CopilotToolsSendResults];
|
|
18756
|
-
|
|
18757
|
-
export type CopilotToolsStreamData = {
|
|
18758
|
-
body?: never;
|
|
18759
|
-
path: {
|
|
18760
|
-
/**
|
|
18761
|
-
* Tool Id
|
|
18762
|
-
*/
|
|
18763
|
-
tool_id: string;
|
|
18764
|
-
};
|
|
18765
|
-
query?: never;
|
|
18766
|
-
url: '/v1/copilot/tools/{tool_id}/stream';
|
|
18767
|
-
};
|
|
18768
|
-
|
|
18769
|
-
export type CopilotToolsStreamErrors = {
|
|
18770
|
-
/**
|
|
18771
|
-
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
18772
|
-
*/
|
|
18773
|
-
401: ErrorResponse;
|
|
18774
|
-
/**
|
|
18775
|
-
* No such resource in this organization.
|
|
18776
|
-
*/
|
|
18777
|
-
404: ErrorResponse;
|
|
18778
|
-
/**
|
|
18779
|
-
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
18780
|
-
*/
|
|
18781
|
-
422: ErrorResponse;
|
|
18782
|
-
/**
|
|
18783
|
-
* Unexpected error. Every error this API returns carries this body.
|
|
18784
|
-
*/
|
|
18785
|
-
default: ErrorResponse;
|
|
18786
|
-
};
|
|
18787
|
-
|
|
18788
|
-
export type CopilotToolsStreamError = CopilotToolsStreamErrors[keyof CopilotToolsStreamErrors];
|
|
18789
|
-
|
|
18790
|
-
export type CopilotToolsStreamResults = {
|
|
18791
|
-
/**
|
|
18792
|
-
* Response 200 Copilot.Tools.Stream
|
|
18793
|
-
*
|
|
18794
|
-
* 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.
|
|
18795
|
-
*/
|
|
18796
|
-
200: ({
|
|
18797
|
-
event: 'snapshot';
|
|
18798
|
-
} & CopilotSnapshotEvent) | ({
|
|
18799
|
-
event: 'message';
|
|
18800
|
-
} & CopilotMessageEvent) | ({
|
|
18801
|
-
event: 'turn';
|
|
18802
|
-
} & TurnPayload);
|
|
18803
|
-
};
|
|
18804
|
-
|
|
18805
|
-
export type CopilotToolsStreamResult = CopilotToolsStreamResults[keyof CopilotToolsStreamResults];
|
|
18806
|
-
|
|
18807
18282
|
export type EmailBatchesListData = {
|
|
18808
18283
|
body?: never;
|
|
18809
18284
|
path?: never;
|
package/src/vocabulary.ts
CHANGED
|
@@ -30,7 +30,6 @@ import type {
|
|
|
30
30
|
LLMPriceLine,
|
|
31
31
|
LLMPricing,
|
|
32
32
|
PhoneNumberResponse,
|
|
33
|
-
PublicMessage,
|
|
34
33
|
NoiseCancellationCatalogEntryResponse,
|
|
35
34
|
RealtimeCatalogEntryResponse,
|
|
36
35
|
RealtimePriceLine,
|
|
@@ -92,12 +91,6 @@ export type ConversationItemVisibility = ConversationItemResponse["visibility"];
|
|
|
92
91
|
/** A file a person sent: a photo, a document, a voice note, a contact card, or any other file, by `kind`. */
|
|
93
92
|
export type ConversationAttachment = ConversationItemResponse["attachments"][number];
|
|
94
93
|
|
|
95
|
-
/** One item on a CoPilot rail: a message, a tool call, or its output. A union
|
|
96
|
-
* alias has no schema of its own, so this is the only one of the three that
|
|
97
|
-
* the generator cannot name — `TurnMetrics` and `StoredAgentPlan` come
|
|
98
|
-
* straight out of `./gen`. */
|
|
99
|
-
export type CopilotItem = PublicMessage["item"];
|
|
100
|
-
|
|
101
94
|
/** One priced line on a call's bill. The document has one shape per stage —
|
|
102
95
|
* they share `kind`, which is what a reader switches on. */
|
|
103
96
|
export type PriceLine =
|