@talqing/sdk 0.14.0 → 0.14.1
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.
|
@@ -3562,8 +3562,34 @@ export type CreateWebhookRequest = {
|
|
|
3562
3562
|
};
|
|
3563
3563
|
/**
|
|
3564
3564
|
* CreateWhatsAppBatchRequest
|
|
3565
|
+
*
|
|
3566
|
+
* The agent fields choose who answers replies; omit them for the number's agent.
|
|
3565
3567
|
*/
|
|
3566
3568
|
export type CreateWhatsAppBatchRequest = {
|
|
3569
|
+
/**
|
|
3570
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
3571
|
+
*/
|
|
3572
|
+
agent?: AgentConfig | null;
|
|
3573
|
+
/**
|
|
3574
|
+
* Agent Id
|
|
3575
|
+
*
|
|
3576
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
3577
|
+
*/
|
|
3578
|
+
agent_id?: string | null;
|
|
3579
|
+
/**
|
|
3580
|
+
* Changes layered on top of whichever base was named. Absent keys keep the base value, an explicit null clears the field, objects deep-merge and lists replace.
|
|
3581
|
+
*/
|
|
3582
|
+
agent_override?: AgentOverride | null;
|
|
3583
|
+
/**
|
|
3584
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
3585
|
+
*/
|
|
3586
|
+
agent_team?: AgentTeam | null;
|
|
3587
|
+
/**
|
|
3588
|
+
* Agent Version
|
|
3589
|
+
*
|
|
3590
|
+
* Which version of `agent_id` to run. Omit for the published one. `"draft"` runs the unpublished working copy — validated and tool-pinned at request time, and refused with the publish errors if it does not hold together.
|
|
3591
|
+
*/
|
|
3592
|
+
agent_version?: number | 'draft' | null;
|
|
3567
3593
|
/**
|
|
3568
3594
|
* Delivery Attempts
|
|
3569
3595
|
*
|
|
@@ -3626,6 +3652,14 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3626
3652
|
variable_map: {
|
|
3627
3653
|
[key: string]: string;
|
|
3628
3654
|
};
|
|
3655
|
+
/**
|
|
3656
|
+
* Vars
|
|
3657
|
+
*
|
|
3658
|
+
* Values for the variables the agents on this session declare, read as {{vars.name}} in a prompt, a greeting and a tool. They override each agent's declared default and reach every agent the session runs, including a handoff target. Unlike `userdata`, which describes the PERSON and is kept on their contact record, these describe THIS session and are gone with it. Strings only; an empty string is a deliberate blank, not a request for the default. The model can see them, so credentials go in `secrets` (this session's own, where the request takes them) or a workspace secret, read as {{secrets.NAME}} by a tool.
|
|
3659
|
+
*/
|
|
3660
|
+
vars?: {
|
|
3661
|
+
[key: string]: string;
|
|
3662
|
+
} | null;
|
|
3629
3663
|
window?: TimeWindow | null;
|
|
3630
3664
|
};
|
|
3631
3665
|
/**
|
|
@@ -8507,8 +8541,35 @@ export type PatchWebhookRequest = {
|
|
|
8507
8541
|
* PatchWhatsAppBatchRequest
|
|
8508
8542
|
*
|
|
8509
8543
|
* Edits. ``window``, ``start_at`` and ``send_daily_cap`` take ``null`` to clear.
|
|
8544
|
+
*
|
|
8545
|
+
* Any agent field replaces the batch's agent wholesale; all of them null returns
|
|
8546
|
+
* replies to the number's agent.
|
|
8510
8547
|
*/
|
|
8511
8548
|
export type PatchWhatsAppBatchRequest = {
|
|
8549
|
+
/**
|
|
8550
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
8551
|
+
*/
|
|
8552
|
+
agent?: AgentConfig | null;
|
|
8553
|
+
/**
|
|
8554
|
+
* Agent Id
|
|
8555
|
+
*
|
|
8556
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
8557
|
+
*/
|
|
8558
|
+
agent_id?: string | null;
|
|
8559
|
+
/**
|
|
8560
|
+
* Changes layered on top of whichever base was named. Absent keys keep the base value, an explicit null clears the field, objects deep-merge and lists replace.
|
|
8561
|
+
*/
|
|
8562
|
+
agent_override?: AgentOverride | null;
|
|
8563
|
+
/**
|
|
8564
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
8565
|
+
*/
|
|
8566
|
+
agent_team?: AgentTeam | null;
|
|
8567
|
+
/**
|
|
8568
|
+
* Agent Version
|
|
8569
|
+
*
|
|
8570
|
+
* Which version of `agent_id` to run. Omit for the published one. `"draft"` runs the unpublished working copy — validated and tool-pinned at request time, and refused with the publish errors if it does not hold together.
|
|
8571
|
+
*/
|
|
8572
|
+
agent_version?: number | 'draft' | null;
|
|
8512
8573
|
/**
|
|
8513
8574
|
* Delivery Attempts
|
|
8514
8575
|
*
|
|
@@ -8551,6 +8612,14 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8551
8612
|
variable_map?: {
|
|
8552
8613
|
[key: string]: string;
|
|
8553
8614
|
};
|
|
8615
|
+
/**
|
|
8616
|
+
* Vars
|
|
8617
|
+
*
|
|
8618
|
+
* Values for the variables the agents on this session declare, read as {{vars.name}} in a prompt, a greeting and a tool. They override each agent's declared default and reach every agent the session runs, including a handoff target. Unlike `userdata`, which describes the PERSON and is kept on their contact record, these describe THIS session and are gone with it. Strings only; an empty string is a deliberate blank, not a request for the default. The model can see them, so credentials go in `secrets` (this session's own, where the request takes them) or a workspace secret, read as {{secrets.NAME}} by a tool.
|
|
8619
|
+
*/
|
|
8620
|
+
vars?: {
|
|
8621
|
+
[key: string]: string;
|
|
8622
|
+
} | null;
|
|
8554
8623
|
window?: TimeWindow | null;
|
|
8555
8624
|
};
|
|
8556
8625
|
/**
|
|
@@ -8678,8 +8747,34 @@ export type PlatformFeePerMinute = {
|
|
|
8678
8747
|
};
|
|
8679
8748
|
/**
|
|
8680
8749
|
* PostItemRequest
|
|
8750
|
+
*
|
|
8751
|
+
* The agent fields make that agent answer this person; omit them to continue whatever runs.
|
|
8681
8752
|
*/
|
|
8682
8753
|
export type PostItemRequest = {
|
|
8754
|
+
/**
|
|
8755
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
8756
|
+
*/
|
|
8757
|
+
agent?: AgentConfig | null;
|
|
8758
|
+
/**
|
|
8759
|
+
* Agent Id
|
|
8760
|
+
*
|
|
8761
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
8762
|
+
*/
|
|
8763
|
+
agent_id?: string | null;
|
|
8764
|
+
/**
|
|
8765
|
+
* Changes layered on top of whichever base was named. Absent keys keep the base value, an explicit null clears the field, objects deep-merge and lists replace.
|
|
8766
|
+
*/
|
|
8767
|
+
agent_override?: AgentOverride | null;
|
|
8768
|
+
/**
|
|
8769
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
8770
|
+
*/
|
|
8771
|
+
agent_team?: AgentTeam | null;
|
|
8772
|
+
/**
|
|
8773
|
+
* Agent Version
|
|
8774
|
+
*
|
|
8775
|
+
* Which version of `agent_id` to run. Omit for the published one. `"draft"` runs the unpublished working copy — validated and tool-pinned at request time, and refused with the publish errors if it does not hold together.
|
|
8776
|
+
*/
|
|
8777
|
+
agent_version?: number | 'draft' | null;
|
|
8683
8778
|
/**
|
|
8684
8779
|
* Who at your business posted this; shown in transcripts, never sent to the person or shown to the agent.
|
|
8685
8780
|
*/
|
|
@@ -8694,6 +8789,14 @@ export type PostItemRequest = {
|
|
|
8694
8789
|
* fail refuses free text outside WhatsApp's 24h window; an opener sends that template and holds the message until they reply.
|
|
8695
8790
|
*/
|
|
8696
8791
|
on_window_closed?: 'fail' | OpenerPolicy;
|
|
8792
|
+
/**
|
|
8793
|
+
* Secrets
|
|
8794
|
+
*
|
|
8795
|
+
* Secrets for this session only, read by tools as {{secrets.NAME}}; a name here overrides the workspace secret. Never shown to the model or returned.
|
|
8796
|
+
*/
|
|
8797
|
+
secrets?: {
|
|
8798
|
+
[key: string]: string;
|
|
8799
|
+
} | null;
|
|
8697
8800
|
/**
|
|
8698
8801
|
* For `template` only.
|
|
8699
8802
|
*/
|
|
@@ -8722,6 +8825,14 @@ export type PostItemRequest = {
|
|
|
8722
8825
|
userdata?: {
|
|
8723
8826
|
[key: string]: unknown;
|
|
8724
8827
|
} | null;
|
|
8828
|
+
/**
|
|
8829
|
+
* Vars
|
|
8830
|
+
*
|
|
8831
|
+
* Values for the variables the agents on this session declare, read as {{vars.name}} in a prompt, a greeting and a tool. They override each agent's declared default and reach every agent the session runs, including a handoff target. Unlike `userdata`, which describes the PERSON and is kept on their contact record, these describe THIS session and are gone with it. Strings only; an empty string is a deliberate blank, not a request for the default. The model can see them, so credentials go in `secrets` (this session's own, where the request takes them) or a workspace secret, read as {{secrets.NAME}} by a tool.
|
|
8832
|
+
*/
|
|
8833
|
+
vars?: {
|
|
8834
|
+
[key: string]: string;
|
|
8835
|
+
} | null;
|
|
8725
8836
|
};
|
|
8726
8837
|
/**
|
|
8727
8838
|
* PostTarget
|
|
@@ -13198,6 +13309,7 @@ export type WhatsAppBatchResponse = {
|
|
|
13198
13309
|
* Agent Name
|
|
13199
13310
|
*/
|
|
13200
13311
|
agent_name: string | null;
|
|
13312
|
+
agent_plan: StoredAgentPlan | null;
|
|
13201
13313
|
counts: WhatsAppBatchCounts;
|
|
13202
13314
|
/**
|
|
13203
13315
|
* Created At
|
|
@@ -13247,6 +13359,10 @@ export type WhatsAppBatchResponse = {
|
|
|
13247
13359
|
* Next Send Reason
|
|
13248
13360
|
*/
|
|
13249
13361
|
next_send_reason: 'start' | 'window' | 'daily_cap' | 'retry' | 'gap' | null;
|
|
13362
|
+
/**
|
|
13363
|
+
* Own Agent
|
|
13364
|
+
*/
|
|
13365
|
+
own_agent: boolean;
|
|
13250
13366
|
/**
|
|
13251
13367
|
* Send Daily Cap
|
|
13252
13368
|
*/
|
|
@@ -13298,6 +13414,12 @@ export type WhatsAppBatchResponse = {
|
|
|
13298
13414
|
variable_map: {
|
|
13299
13415
|
[key: string]: string;
|
|
13300
13416
|
};
|
|
13417
|
+
/**
|
|
13418
|
+
* Vars
|
|
13419
|
+
*/
|
|
13420
|
+
vars: {
|
|
13421
|
+
[key: string]: string;
|
|
13422
|
+
} | null;
|
|
13301
13423
|
window: TimeWindow | null;
|
|
13302
13424
|
};
|
|
13303
13425
|
/**
|