@automagik/omni 2.260830.2 → 2.260901.2
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/db/drizzle/0052_webhook_source_signature.sql +26 -0
- package/db/drizzle/meta/_journal.json +7 -0
- package/dist/commands/webhooks.d.ts.map +1 -1
- package/dist/index.js +49 -8
- package/dist/sdk/client.d.ts +14 -0
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/types.generated.d.ts +90 -0
- package/dist/sdk/types.generated.d.ts.map +1 -1
- package/dist/server/index.js +10337 -9598
- package/package.json +1 -1
|
@@ -2999,6 +2999,11 @@ export interface components {
|
|
|
2999
2999
|
to?: string;
|
|
3000
3000
|
/** @description Media type if applicable */
|
|
3001
3001
|
mediaType?: string;
|
|
3002
|
+
/**
|
|
3003
|
+
* Format: uuid
|
|
3004
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
3005
|
+
*/
|
|
3006
|
+
senderAgentId?: string | null;
|
|
3002
3007
|
};
|
|
3003
3008
|
SendTextRequest: {
|
|
3004
3009
|
/**
|
|
@@ -3037,6 +3042,11 @@ export interface components {
|
|
|
3037
3042
|
};
|
|
3038
3043
|
/** @description Ask the user to share their location (WhatsApp Cloud: native "Send location" button under the text) */
|
|
3039
3044
|
requestLocation?: boolean;
|
|
3045
|
+
/**
|
|
3046
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3047
|
+
* @enum {string}
|
|
3048
|
+
*/
|
|
3049
|
+
sentBy?: "agent" | "user";
|
|
3040
3050
|
};
|
|
3041
3051
|
TTSVoice: {
|
|
3042
3052
|
/** @description ElevenLabs voice ID */
|
|
@@ -3074,6 +3084,11 @@ export interface components {
|
|
|
3074
3084
|
similarityBoost?: number;
|
|
3075
3085
|
/** @description Recording presence duration in ms */
|
|
3076
3086
|
presenceDelay?: number;
|
|
3087
|
+
/**
|
|
3088
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3089
|
+
* @enum {string}
|
|
3090
|
+
*/
|
|
3091
|
+
sentBy?: "agent" | "user";
|
|
3077
3092
|
};
|
|
3078
3093
|
TtsResponse: {
|
|
3079
3094
|
/** @description Internal message ID */
|
|
@@ -3120,6 +3135,11 @@ export interface components {
|
|
|
3120
3135
|
caption?: string;
|
|
3121
3136
|
/** @description Send audio as voice note */
|
|
3122
3137
|
voiceNote?: boolean;
|
|
3138
|
+
/**
|
|
3139
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3140
|
+
* @enum {string}
|
|
3141
|
+
*/
|
|
3142
|
+
sentBy?: "agent" | "user";
|
|
3123
3143
|
};
|
|
3124
3144
|
SendReactionRequest: {
|
|
3125
3145
|
/**
|
|
@@ -3149,6 +3169,11 @@ export interface components {
|
|
|
3149
3169
|
url?: string;
|
|
3150
3170
|
/** @description Base64 encoded sticker */
|
|
3151
3171
|
base64?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3174
|
+
* @enum {string}
|
|
3175
|
+
*/
|
|
3176
|
+
sentBy?: "agent" | "user";
|
|
3152
3177
|
};
|
|
3153
3178
|
SendContactRequest: {
|
|
3154
3179
|
/**
|
|
@@ -3171,6 +3196,11 @@ export interface components {
|
|
|
3171
3196
|
/** @description Organization */
|
|
3172
3197
|
organization?: string;
|
|
3173
3198
|
};
|
|
3199
|
+
/**
|
|
3200
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3201
|
+
* @enum {string}
|
|
3202
|
+
*/
|
|
3203
|
+
sentBy?: "agent" | "user";
|
|
3174
3204
|
};
|
|
3175
3205
|
SendLocationRequest: {
|
|
3176
3206
|
/**
|
|
@@ -3188,6 +3218,11 @@ export interface components {
|
|
|
3188
3218
|
name?: string;
|
|
3189
3219
|
/** @description Address */
|
|
3190
3220
|
address?: string;
|
|
3221
|
+
/**
|
|
3222
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
3223
|
+
* @enum {string}
|
|
3224
|
+
*/
|
|
3225
|
+
sentBy?: "agent" | "user";
|
|
3191
3226
|
};
|
|
3192
3227
|
SendPresenceRequest: {
|
|
3193
3228
|
/**
|
|
@@ -7725,6 +7760,11 @@ export interface operations {
|
|
|
7725
7760
|
};
|
|
7726
7761
|
/** @description Ask the user to share their location (WhatsApp Cloud: native "Send location" button under the text) */
|
|
7727
7762
|
requestLocation?: boolean;
|
|
7763
|
+
/**
|
|
7764
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
7765
|
+
* @enum {string}
|
|
7766
|
+
*/
|
|
7767
|
+
sentBy?: "agent" | "user";
|
|
7728
7768
|
};
|
|
7729
7769
|
};
|
|
7730
7770
|
};
|
|
@@ -7752,6 +7792,11 @@ export interface operations {
|
|
|
7752
7792
|
to?: string;
|
|
7753
7793
|
/** @description Media type if applicable */
|
|
7754
7794
|
mediaType?: string;
|
|
7795
|
+
/**
|
|
7796
|
+
* Format: uuid
|
|
7797
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
7798
|
+
*/
|
|
7799
|
+
senderAgentId?: string | null;
|
|
7755
7800
|
};
|
|
7756
7801
|
};
|
|
7757
7802
|
};
|
|
@@ -7835,6 +7880,11 @@ export interface operations {
|
|
|
7835
7880
|
caption?: string;
|
|
7836
7881
|
/** @description Send audio as voice note */
|
|
7837
7882
|
voiceNote?: boolean;
|
|
7883
|
+
/**
|
|
7884
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
7885
|
+
* @enum {string}
|
|
7886
|
+
*/
|
|
7887
|
+
sentBy?: "agent" | "user";
|
|
7838
7888
|
};
|
|
7839
7889
|
};
|
|
7840
7890
|
};
|
|
@@ -7862,6 +7912,11 @@ export interface operations {
|
|
|
7862
7912
|
to?: string;
|
|
7863
7913
|
/** @description Media type if applicable */
|
|
7864
7914
|
mediaType?: string;
|
|
7915
|
+
/**
|
|
7916
|
+
* Format: uuid
|
|
7917
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
7918
|
+
*/
|
|
7919
|
+
senderAgentId?: string | null;
|
|
7865
7920
|
};
|
|
7866
7921
|
};
|
|
7867
7922
|
};
|
|
@@ -8017,6 +8072,11 @@ export interface operations {
|
|
|
8017
8072
|
url?: string;
|
|
8018
8073
|
/** @description Base64 encoded sticker */
|
|
8019
8074
|
base64?: string;
|
|
8075
|
+
/**
|
|
8076
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
8077
|
+
* @enum {string}
|
|
8078
|
+
*/
|
|
8079
|
+
sentBy?: "agent" | "user";
|
|
8020
8080
|
};
|
|
8021
8081
|
};
|
|
8022
8082
|
};
|
|
@@ -8044,6 +8104,11 @@ export interface operations {
|
|
|
8044
8104
|
to?: string;
|
|
8045
8105
|
/** @description Media type if applicable */
|
|
8046
8106
|
mediaType?: string;
|
|
8107
|
+
/**
|
|
8108
|
+
* Format: uuid
|
|
8109
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
8110
|
+
*/
|
|
8111
|
+
senderAgentId?: string | null;
|
|
8047
8112
|
};
|
|
8048
8113
|
};
|
|
8049
8114
|
};
|
|
@@ -8122,6 +8187,11 @@ export interface operations {
|
|
|
8122
8187
|
/** @description Organization */
|
|
8123
8188
|
organization?: string;
|
|
8124
8189
|
};
|
|
8190
|
+
/**
|
|
8191
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
8192
|
+
* @enum {string}
|
|
8193
|
+
*/
|
|
8194
|
+
sentBy?: "agent" | "user";
|
|
8125
8195
|
};
|
|
8126
8196
|
};
|
|
8127
8197
|
};
|
|
@@ -8149,6 +8219,11 @@ export interface operations {
|
|
|
8149
8219
|
to?: string;
|
|
8150
8220
|
/** @description Media type if applicable */
|
|
8151
8221
|
mediaType?: string;
|
|
8222
|
+
/**
|
|
8223
|
+
* Format: uuid
|
|
8224
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
8225
|
+
*/
|
|
8226
|
+
senderAgentId?: string | null;
|
|
8152
8227
|
};
|
|
8153
8228
|
};
|
|
8154
8229
|
};
|
|
@@ -8222,6 +8297,11 @@ export interface operations {
|
|
|
8222
8297
|
name?: string;
|
|
8223
8298
|
/** @description Address */
|
|
8224
8299
|
address?: string;
|
|
8300
|
+
/**
|
|
8301
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
8302
|
+
* @enum {string}
|
|
8303
|
+
*/
|
|
8304
|
+
sentBy?: "agent" | "user";
|
|
8225
8305
|
};
|
|
8226
8306
|
};
|
|
8227
8307
|
};
|
|
@@ -8249,6 +8329,11 @@ export interface operations {
|
|
|
8249
8329
|
to?: string;
|
|
8250
8330
|
/** @description Media type if applicable */
|
|
8251
8331
|
mediaType?: string;
|
|
8332
|
+
/**
|
|
8333
|
+
* Format: uuid
|
|
8334
|
+
* @description Present when the request set sentBy: 'agent' — the agent the send was attributed to, or null when the instance has no configured agent (attribution did not happen)
|
|
8335
|
+
*/
|
|
8336
|
+
senderAgentId?: string | null;
|
|
8252
8337
|
};
|
|
8253
8338
|
};
|
|
8254
8339
|
};
|
|
@@ -8775,6 +8860,11 @@ export interface operations {
|
|
|
8775
8860
|
similarityBoost?: number;
|
|
8776
8861
|
/** @description Recording presence duration in ms */
|
|
8777
8862
|
presenceDelay?: number;
|
|
8863
|
+
/**
|
|
8864
|
+
* @description Authorship of this send. 'agent' attributes the message to the instance's configured agent (persists sender_agent_id), so agent replay and follow-up scheduling treat the turn as agent-answered. The response echoes the resolved senderAgentId (null when the instance has no configured agent). Default: unattributed.
|
|
8865
|
+
* @enum {string}
|
|
8866
|
+
*/
|
|
8867
|
+
sentBy?: "agent" | "user";
|
|
8778
8868
|
};
|
|
8779
8869
|
};
|
|
8780
8870
|
};
|