@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.
package/package.json
CHANGED
package/src/gen/types.gen.ts
CHANGED
|
@@ -3668,8 +3668,34 @@ export type CreateWebhookRequest = {
|
|
|
3668
3668
|
|
|
3669
3669
|
/**
|
|
3670
3670
|
* CreateWhatsAppBatchRequest
|
|
3671
|
+
*
|
|
3672
|
+
* The agent fields choose who answers replies; omit them for the number's agent.
|
|
3671
3673
|
*/
|
|
3672
3674
|
export type CreateWhatsAppBatchRequest = {
|
|
3675
|
+
/**
|
|
3676
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
3677
|
+
*/
|
|
3678
|
+
agent?: AgentConfig | null;
|
|
3679
|
+
/**
|
|
3680
|
+
* Agent Id
|
|
3681
|
+
*
|
|
3682
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
3683
|
+
*/
|
|
3684
|
+
agent_id?: string | null;
|
|
3685
|
+
/**
|
|
3686
|
+
* 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.
|
|
3687
|
+
*/
|
|
3688
|
+
agent_override?: AgentOverride | null;
|
|
3689
|
+
/**
|
|
3690
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
3691
|
+
*/
|
|
3692
|
+
agent_team?: AgentTeam | null;
|
|
3693
|
+
/**
|
|
3694
|
+
* Agent Version
|
|
3695
|
+
*
|
|
3696
|
+
* 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.
|
|
3697
|
+
*/
|
|
3698
|
+
agent_version?: number | 'draft' | null;
|
|
3673
3699
|
/**
|
|
3674
3700
|
* Delivery Attempts
|
|
3675
3701
|
*
|
|
@@ -3732,6 +3758,14 @@ export type CreateWhatsAppBatchRequest = {
|
|
|
3732
3758
|
variable_map: {
|
|
3733
3759
|
[key: string]: string;
|
|
3734
3760
|
};
|
|
3761
|
+
/**
|
|
3762
|
+
* Vars
|
|
3763
|
+
*
|
|
3764
|
+
* 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.
|
|
3765
|
+
*/
|
|
3766
|
+
vars?: {
|
|
3767
|
+
[key: string]: string;
|
|
3768
|
+
} | null;
|
|
3735
3769
|
window?: TimeWindow | null;
|
|
3736
3770
|
};
|
|
3737
3771
|
|
|
@@ -8783,8 +8817,35 @@ export type PatchWebhookRequest = {
|
|
|
8783
8817
|
* PatchWhatsAppBatchRequest
|
|
8784
8818
|
*
|
|
8785
8819
|
* Edits. ``window``, ``start_at`` and ``send_daily_cap`` take ``null`` to clear.
|
|
8820
|
+
*
|
|
8821
|
+
* Any agent field replaces the batch's agent wholesale; all of them null returns
|
|
8822
|
+
* replies to the number's agent.
|
|
8786
8823
|
*/
|
|
8787
8824
|
export type PatchWhatsAppBatchRequest = {
|
|
8825
|
+
/**
|
|
8826
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
8827
|
+
*/
|
|
8828
|
+
agent?: AgentConfig | null;
|
|
8829
|
+
/**
|
|
8830
|
+
* Agent Id
|
|
8831
|
+
*
|
|
8832
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
8833
|
+
*/
|
|
8834
|
+
agent_id?: string | null;
|
|
8835
|
+
/**
|
|
8836
|
+
* 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.
|
|
8837
|
+
*/
|
|
8838
|
+
agent_override?: AgentOverride | null;
|
|
8839
|
+
/**
|
|
8840
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
8841
|
+
*/
|
|
8842
|
+
agent_team?: AgentTeam | null;
|
|
8843
|
+
/**
|
|
8844
|
+
* Agent Version
|
|
8845
|
+
*
|
|
8846
|
+
* 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.
|
|
8847
|
+
*/
|
|
8848
|
+
agent_version?: number | 'draft' | null;
|
|
8788
8849
|
/**
|
|
8789
8850
|
* Delivery Attempts
|
|
8790
8851
|
*
|
|
@@ -8827,6 +8888,14 @@ export type PatchWhatsAppBatchRequest = {
|
|
|
8827
8888
|
variable_map?: {
|
|
8828
8889
|
[key: string]: string;
|
|
8829
8890
|
};
|
|
8891
|
+
/**
|
|
8892
|
+
* Vars
|
|
8893
|
+
*
|
|
8894
|
+
* 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.
|
|
8895
|
+
*/
|
|
8896
|
+
vars?: {
|
|
8897
|
+
[key: string]: string;
|
|
8898
|
+
} | null;
|
|
8830
8899
|
window?: TimeWindow | null;
|
|
8831
8900
|
};
|
|
8832
8901
|
|
|
@@ -8959,8 +9028,34 @@ export type PlatformFeePerMinute = {
|
|
|
8959
9028
|
|
|
8960
9029
|
/**
|
|
8961
9030
|
* PostItemRequest
|
|
9031
|
+
*
|
|
9032
|
+
* The agent fields make that agent answer this person; omit them to continue whatever runs.
|
|
8962
9033
|
*/
|
|
8963
9034
|
export type PostItemRequest = {
|
|
9035
|
+
/**
|
|
9036
|
+
* A complete agent definition, run for this call and stored nowhere. Mutually exclusive with `agent_id`.
|
|
9037
|
+
*/
|
|
9038
|
+
agent?: AgentConfig | null;
|
|
9039
|
+
/**
|
|
9040
|
+
* Agent Id
|
|
9041
|
+
*
|
|
9042
|
+
* An agent in this workspace. Mutually exclusive with `agent`.
|
|
9043
|
+
*/
|
|
9044
|
+
agent_id?: string | null;
|
|
9045
|
+
/**
|
|
9046
|
+
* 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.
|
|
9047
|
+
*/
|
|
9048
|
+
agent_override?: AgentOverride | null;
|
|
9049
|
+
/**
|
|
9050
|
+
* Run several agents on this call, defined here. Mutually exclusive with `agent_id` / `agent` / `agent_version` / `agent_override`.
|
|
9051
|
+
*/
|
|
9052
|
+
agent_team?: AgentTeam | null;
|
|
9053
|
+
/**
|
|
9054
|
+
* Agent Version
|
|
9055
|
+
*
|
|
9056
|
+
* 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.
|
|
9057
|
+
*/
|
|
9058
|
+
agent_version?: number | 'draft' | null;
|
|
8964
9059
|
/**
|
|
8965
9060
|
* Who at your business posted this; shown in transcripts, never sent to the person or shown to the agent.
|
|
8966
9061
|
*/
|
|
@@ -8975,6 +9070,14 @@ export type PostItemRequest = {
|
|
|
8975
9070
|
* fail refuses free text outside WhatsApp's 24h window; an opener sends that template and holds the message until they reply.
|
|
8976
9071
|
*/
|
|
8977
9072
|
on_window_closed?: 'fail' | OpenerPolicy;
|
|
9073
|
+
/**
|
|
9074
|
+
* Secrets
|
|
9075
|
+
*
|
|
9076
|
+
* 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.
|
|
9077
|
+
*/
|
|
9078
|
+
secrets?: {
|
|
9079
|
+
[key: string]: string;
|
|
9080
|
+
} | null;
|
|
8978
9081
|
/**
|
|
8979
9082
|
* For `template` only.
|
|
8980
9083
|
*/
|
|
@@ -9003,6 +9106,14 @@ export type PostItemRequest = {
|
|
|
9003
9106
|
userdata?: {
|
|
9004
9107
|
[key: string]: unknown;
|
|
9005
9108
|
} | null;
|
|
9109
|
+
/**
|
|
9110
|
+
* Vars
|
|
9111
|
+
*
|
|
9112
|
+
* 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.
|
|
9113
|
+
*/
|
|
9114
|
+
vars?: {
|
|
9115
|
+
[key: string]: string;
|
|
9116
|
+
} | null;
|
|
9006
9117
|
};
|
|
9007
9118
|
|
|
9008
9119
|
/**
|
|
@@ -13630,6 +13741,7 @@ export type WhatsAppBatchResponse = {
|
|
|
13630
13741
|
* Agent Name
|
|
13631
13742
|
*/
|
|
13632
13743
|
agent_name: string | null;
|
|
13744
|
+
agent_plan: StoredAgentPlan | null;
|
|
13633
13745
|
counts: WhatsAppBatchCounts;
|
|
13634
13746
|
/**
|
|
13635
13747
|
* Created At
|
|
@@ -13679,6 +13791,10 @@ export type WhatsAppBatchResponse = {
|
|
|
13679
13791
|
* Next Send Reason
|
|
13680
13792
|
*/
|
|
13681
13793
|
next_send_reason: 'start' | 'window' | 'daily_cap' | 'retry' | 'gap' | null;
|
|
13794
|
+
/**
|
|
13795
|
+
* Own Agent
|
|
13796
|
+
*/
|
|
13797
|
+
own_agent: boolean;
|
|
13682
13798
|
/**
|
|
13683
13799
|
* Send Daily Cap
|
|
13684
13800
|
*/
|
|
@@ -13730,6 +13846,12 @@ export type WhatsAppBatchResponse = {
|
|
|
13730
13846
|
variable_map: {
|
|
13731
13847
|
[key: string]: string;
|
|
13732
13848
|
};
|
|
13849
|
+
/**
|
|
13850
|
+
* Vars
|
|
13851
|
+
*/
|
|
13852
|
+
vars: {
|
|
13853
|
+
[key: string]: string;
|
|
13854
|
+
} | null;
|
|
13733
13855
|
window: TimeWindow | null;
|
|
13734
13856
|
};
|
|
13735
13857
|
|