@ravi-os/sdk 0.260724.1 → 0.260725.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/README.md +53 -0
- package/dist/channel-backend.d.ts +246 -0
- package/dist/channel-backend.d.ts.map +1 -0
- package/dist/channel-backend.js +193 -0
- package/dist/channel-backend.js.map +1 -0
- package/dist/channel-runtime-events.d.ts +801 -0
- package/dist/channel-runtime-events.d.ts.map +1 -0
- package/dist/channel-runtime-events.js +184 -0
- package/dist/channel-runtime-events.js.map +1 -0
- package/dist/client.d.ts +69 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +46 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/local-agent-reconciliation.d.ts +172 -0
- package/dist/local-agent-reconciliation.d.ts.map +1 -0
- package/dist/local-agent-reconciliation.js +597 -0
- package/dist/local-agent-reconciliation.js.map +1 -0
- package/dist/native-channel-driver.d.ts +199 -0
- package/dist/native-channel-driver.d.ts.map +1 -0
- package/dist/native-channel-driver.js +55 -0
- package/dist/native-channel-driver.js.map +1 -0
- package/dist/schemas.d.ts +910 -39
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1111 -5
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +218 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +17 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -9838,6 +9838,483 @@ export declare const CalendarsShowReturnSchema: {
|
|
|
9838
9838
|
readonly required: readonly ["calendar"];
|
|
9839
9839
|
readonly type: "object";
|
|
9840
9840
|
};
|
|
9841
|
+
/** JSON Schema for the input body of `channels.backend.ingress`. */
|
|
9842
|
+
export declare const ChannelsBackendIngressInputSchema: {
|
|
9843
|
+
readonly additionalProperties: false;
|
|
9844
|
+
readonly properties: {
|
|
9845
|
+
readonly agentId: {
|
|
9846
|
+
readonly description: "Concrete local agent id used for authorization";
|
|
9847
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9848
|
+
readonly type: "string";
|
|
9849
|
+
};
|
|
9850
|
+
readonly request: {
|
|
9851
|
+
readonly additionalProperties: false;
|
|
9852
|
+
readonly description: "Channel ingress request object (JSON when invoked from the CLI)";
|
|
9853
|
+
readonly properties: {
|
|
9854
|
+
readonly agentId: {
|
|
9855
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9856
|
+
readonly type: "string";
|
|
9857
|
+
};
|
|
9858
|
+
readonly channelInstanceId: {
|
|
9859
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9860
|
+
readonly type: "string";
|
|
9861
|
+
};
|
|
9862
|
+
readonly content: {
|
|
9863
|
+
readonly items: {
|
|
9864
|
+
readonly oneOf: readonly [{
|
|
9865
|
+
readonly additionalProperties: false;
|
|
9866
|
+
readonly properties: {
|
|
9867
|
+
readonly text: {
|
|
9868
|
+
readonly type: "string";
|
|
9869
|
+
};
|
|
9870
|
+
readonly type: {
|
|
9871
|
+
readonly const: "text";
|
|
9872
|
+
readonly type: "string";
|
|
9873
|
+
};
|
|
9874
|
+
};
|
|
9875
|
+
readonly required: readonly ["type", "text"];
|
|
9876
|
+
readonly type: "object";
|
|
9877
|
+
}, {
|
|
9878
|
+
readonly additionalProperties: false;
|
|
9879
|
+
readonly properties: {
|
|
9880
|
+
readonly artifactId: {
|
|
9881
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9882
|
+
readonly type: "string";
|
|
9883
|
+
};
|
|
9884
|
+
readonly mediaType: {
|
|
9885
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*\\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*$";
|
|
9886
|
+
readonly type: "string";
|
|
9887
|
+
};
|
|
9888
|
+
readonly name: {
|
|
9889
|
+
readonly type: "string";
|
|
9890
|
+
};
|
|
9891
|
+
readonly sizeBytes: {
|
|
9892
|
+
readonly maximum: 9007199254740991;
|
|
9893
|
+
readonly minimum: 0;
|
|
9894
|
+
readonly type: "integer";
|
|
9895
|
+
};
|
|
9896
|
+
readonly type: {
|
|
9897
|
+
readonly const: "artifact";
|
|
9898
|
+
readonly type: "string";
|
|
9899
|
+
};
|
|
9900
|
+
};
|
|
9901
|
+
readonly required: readonly ["type", "artifactId"];
|
|
9902
|
+
readonly type: "object";
|
|
9903
|
+
}];
|
|
9904
|
+
};
|
|
9905
|
+
readonly maxItems: 256;
|
|
9906
|
+
readonly minItems: 1;
|
|
9907
|
+
readonly type: "array";
|
|
9908
|
+
};
|
|
9909
|
+
readonly external: {
|
|
9910
|
+
readonly additionalProperties: false;
|
|
9911
|
+
readonly properties: {
|
|
9912
|
+
readonly channelKind: {
|
|
9913
|
+
readonly pattern: "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$";
|
|
9914
|
+
readonly type: "string";
|
|
9915
|
+
};
|
|
9916
|
+
readonly connectionId: {
|
|
9917
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9918
|
+
readonly type: "string";
|
|
9919
|
+
};
|
|
9920
|
+
readonly conversationId: {
|
|
9921
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9922
|
+
readonly type: "string";
|
|
9923
|
+
};
|
|
9924
|
+
readonly messageId: {
|
|
9925
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9926
|
+
readonly type: "string";
|
|
9927
|
+
};
|
|
9928
|
+
readonly senderId: {
|
|
9929
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9930
|
+
readonly type: "string";
|
|
9931
|
+
};
|
|
9932
|
+
};
|
|
9933
|
+
readonly required: readonly ["channelKind", "connectionId", "conversationId", "senderId", "messageId"];
|
|
9934
|
+
readonly type: "object";
|
|
9935
|
+
};
|
|
9936
|
+
readonly idempotencyKey: {
|
|
9937
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9938
|
+
readonly type: "string";
|
|
9939
|
+
};
|
|
9940
|
+
readonly localActorId: {
|
|
9941
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9942
|
+
readonly type: "string";
|
|
9943
|
+
};
|
|
9944
|
+
readonly protocol: {
|
|
9945
|
+
readonly const: "ravi.channel.backend";
|
|
9946
|
+
readonly type: "string";
|
|
9947
|
+
};
|
|
9948
|
+
readonly receivedAt: {
|
|
9949
|
+
readonly format: "date-time";
|
|
9950
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
9951
|
+
readonly type: "string";
|
|
9952
|
+
};
|
|
9953
|
+
readonly requestId: {
|
|
9954
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9955
|
+
readonly type: "string";
|
|
9956
|
+
};
|
|
9957
|
+
readonly schemaVersion: {
|
|
9958
|
+
readonly const: 1;
|
|
9959
|
+
readonly type: "number";
|
|
9960
|
+
};
|
|
9961
|
+
};
|
|
9962
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "idempotencyKey", "localActorId", "channelInstanceId", "agentId", "external", "content", "receivedAt"];
|
|
9963
|
+
readonly type: "object";
|
|
9964
|
+
};
|
|
9965
|
+
};
|
|
9966
|
+
readonly required: readonly ["agentId", "request"];
|
|
9967
|
+
readonly type: "object";
|
|
9968
|
+
};
|
|
9969
|
+
/** JSON Schema for the return shape of `channels.backend.ingress`. */
|
|
9970
|
+
export declare const ChannelsBackendIngressReturnSchema: {
|
|
9971
|
+
readonly additionalProperties: false;
|
|
9972
|
+
readonly properties: {
|
|
9973
|
+
readonly acceptedAt: {
|
|
9974
|
+
readonly format: "date-time";
|
|
9975
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
9976
|
+
readonly type: "string";
|
|
9977
|
+
};
|
|
9978
|
+
readonly binding: {
|
|
9979
|
+
readonly additionalProperties: false;
|
|
9980
|
+
readonly properties: {
|
|
9981
|
+
readonly agentId: {
|
|
9982
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9983
|
+
readonly type: "string";
|
|
9984
|
+
};
|
|
9985
|
+
readonly channelInstanceId: {
|
|
9986
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9987
|
+
readonly type: "string";
|
|
9988
|
+
};
|
|
9989
|
+
readonly chatId: {
|
|
9990
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9991
|
+
readonly type: "string";
|
|
9992
|
+
};
|
|
9993
|
+
readonly messageId: {
|
|
9994
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9995
|
+
readonly type: "string";
|
|
9996
|
+
};
|
|
9997
|
+
readonly sessionId: {
|
|
9998
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
9999
|
+
readonly type: "string";
|
|
10000
|
+
};
|
|
10001
|
+
readonly turnId: {
|
|
10002
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10003
|
+
readonly type: "string";
|
|
10004
|
+
};
|
|
10005
|
+
};
|
|
10006
|
+
readonly required: readonly ["channelInstanceId", "agentId", "chatId", "messageId", "sessionId", "turnId"];
|
|
10007
|
+
readonly type: "object";
|
|
10008
|
+
};
|
|
10009
|
+
readonly disposition: {
|
|
10010
|
+
readonly enum: readonly ["accepted", "duplicate", "rejected"];
|
|
10011
|
+
readonly type: "string";
|
|
10012
|
+
};
|
|
10013
|
+
readonly error: {
|
|
10014
|
+
readonly additionalProperties: false;
|
|
10015
|
+
readonly properties: {
|
|
10016
|
+
readonly category: {
|
|
10017
|
+
readonly enum: readonly ["validation", "authentication", "authorization", "capacity", "availability", "internal"];
|
|
10018
|
+
readonly type: "string";
|
|
10019
|
+
};
|
|
10020
|
+
readonly code: {
|
|
10021
|
+
readonly enum: readonly ["INVALID_REQUEST", "IDEMPOTENCY_CONFLICT", "UNAUTHENTICATED", "PERMISSION_DENIED", "LOCAL_PERMISSION_DENIED", "NOT_FOUND", "RATE_LIMITED", "OVERLOADED", "UNAVAILABLE", "INTERNAL"];
|
|
10022
|
+
readonly type: "string";
|
|
10023
|
+
};
|
|
10024
|
+
readonly correlationId: {
|
|
10025
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10026
|
+
readonly type: "string";
|
|
10027
|
+
};
|
|
10028
|
+
readonly retryAfterMs: {
|
|
10029
|
+
readonly exclusiveMinimum: 0;
|
|
10030
|
+
readonly maximum: 86400000;
|
|
10031
|
+
readonly type: "integer";
|
|
10032
|
+
};
|
|
10033
|
+
readonly retryable: {
|
|
10034
|
+
readonly type: "boolean";
|
|
10035
|
+
};
|
|
10036
|
+
};
|
|
10037
|
+
readonly required: readonly ["code", "category", "retryable"];
|
|
10038
|
+
readonly type: "object";
|
|
10039
|
+
};
|
|
10040
|
+
readonly protocol: {
|
|
10041
|
+
readonly const: "ravi.channel.backend";
|
|
10042
|
+
readonly type: "string";
|
|
10043
|
+
};
|
|
10044
|
+
readonly requestId: {
|
|
10045
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10046
|
+
readonly type: "string";
|
|
10047
|
+
};
|
|
10048
|
+
readonly schemaVersion: {
|
|
10049
|
+
readonly const: 1;
|
|
10050
|
+
readonly type: "number";
|
|
10051
|
+
};
|
|
10052
|
+
};
|
|
10053
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "disposition", "acceptedAt"];
|
|
10054
|
+
readonly type: "object";
|
|
10055
|
+
};
|
|
10056
|
+
/** JSON Schema for the input body of `channels.backend.runtime.interrupt`. */
|
|
10057
|
+
export declare const ChannelsBackendRuntimeInterruptInputSchema: {
|
|
10058
|
+
readonly additionalProperties: false;
|
|
10059
|
+
readonly properties: {
|
|
10060
|
+
readonly agentId: {
|
|
10061
|
+
readonly description: "Concrete local agent id used for authorization";
|
|
10062
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10063
|
+
readonly type: "string";
|
|
10064
|
+
};
|
|
10065
|
+
readonly request: {
|
|
10066
|
+
readonly additionalProperties: false;
|
|
10067
|
+
readonly description: "Channel runtime interrupt request object (JSON when invoked from the CLI)";
|
|
10068
|
+
readonly properties: {
|
|
10069
|
+
readonly binding: {
|
|
10070
|
+
readonly additionalProperties: false;
|
|
10071
|
+
readonly properties: {
|
|
10072
|
+
readonly agentId: {
|
|
10073
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10074
|
+
readonly type: "string";
|
|
10075
|
+
};
|
|
10076
|
+
readonly channelInstanceId: {
|
|
10077
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10078
|
+
readonly type: "string";
|
|
10079
|
+
};
|
|
10080
|
+
readonly chatId: {
|
|
10081
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10082
|
+
readonly type: "string";
|
|
10083
|
+
};
|
|
10084
|
+
readonly messageId: {
|
|
10085
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10086
|
+
readonly type: "string";
|
|
10087
|
+
};
|
|
10088
|
+
readonly sessionId: {
|
|
10089
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10090
|
+
readonly type: "string";
|
|
10091
|
+
};
|
|
10092
|
+
readonly turnId: {
|
|
10093
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10094
|
+
readonly type: "string";
|
|
10095
|
+
};
|
|
10096
|
+
};
|
|
10097
|
+
readonly required: readonly ["channelInstanceId", "agentId", "chatId", "messageId", "sessionId", "turnId"];
|
|
10098
|
+
readonly type: "object";
|
|
10099
|
+
};
|
|
10100
|
+
readonly idempotencyKey: {
|
|
10101
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10102
|
+
readonly type: "string";
|
|
10103
|
+
};
|
|
10104
|
+
readonly protocol: {
|
|
10105
|
+
readonly const: "ravi.channel.runtime-events";
|
|
10106
|
+
readonly type: "string";
|
|
10107
|
+
};
|
|
10108
|
+
readonly requestId: {
|
|
10109
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10110
|
+
readonly type: "string";
|
|
10111
|
+
};
|
|
10112
|
+
readonly requestedAt: {
|
|
10113
|
+
readonly format: "date-time";
|
|
10114
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
10115
|
+
readonly type: "string";
|
|
10116
|
+
};
|
|
10117
|
+
readonly schemaVersion: {
|
|
10118
|
+
readonly const: 1;
|
|
10119
|
+
readonly type: "number";
|
|
10120
|
+
};
|
|
10121
|
+
};
|
|
10122
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "idempotencyKey", "binding", "requestedAt"];
|
|
10123
|
+
readonly type: "object";
|
|
10124
|
+
};
|
|
10125
|
+
};
|
|
10126
|
+
readonly required: readonly ["agentId", "request"];
|
|
10127
|
+
readonly type: "object";
|
|
10128
|
+
};
|
|
10129
|
+
/** JSON Schema for the return shape of `channels.backend.runtime.interrupt`. */
|
|
10130
|
+
export declare const ChannelsBackendRuntimeInterruptReturnSchema: {
|
|
10131
|
+
readonly additionalProperties: false;
|
|
10132
|
+
readonly properties: {
|
|
10133
|
+
readonly acceptedAt: {
|
|
10134
|
+
readonly format: "date-time";
|
|
10135
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
10136
|
+
readonly type: "string";
|
|
10137
|
+
};
|
|
10138
|
+
readonly disposition: {
|
|
10139
|
+
readonly enum: readonly ["requested", "duplicate", "rejected"];
|
|
10140
|
+
readonly type: "string";
|
|
10141
|
+
};
|
|
10142
|
+
readonly error: {
|
|
10143
|
+
readonly additionalProperties: false;
|
|
10144
|
+
readonly properties: {
|
|
10145
|
+
readonly category: {
|
|
10146
|
+
readonly enum: readonly ["validation", "authentication", "authorization", "capacity", "availability", "internal"];
|
|
10147
|
+
readonly type: "string";
|
|
10148
|
+
};
|
|
10149
|
+
readonly code: {
|
|
10150
|
+
readonly enum: readonly ["INVALID_REQUEST", "IDEMPOTENCY_CONFLICT", "UNAUTHENTICATED", "PERMISSION_DENIED", "LOCAL_PERMISSION_DENIED", "NOT_FOUND", "RATE_LIMITED", "OVERLOADED", "UNAVAILABLE", "INTERNAL"];
|
|
10151
|
+
readonly type: "string";
|
|
10152
|
+
};
|
|
10153
|
+
readonly correlationId: {
|
|
10154
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10155
|
+
readonly type: "string";
|
|
10156
|
+
};
|
|
10157
|
+
readonly retryAfterMs: {
|
|
10158
|
+
readonly exclusiveMinimum: 0;
|
|
10159
|
+
readonly maximum: 86400000;
|
|
10160
|
+
readonly type: "integer";
|
|
10161
|
+
};
|
|
10162
|
+
readonly retryable: {
|
|
10163
|
+
readonly type: "boolean";
|
|
10164
|
+
};
|
|
10165
|
+
};
|
|
10166
|
+
readonly required: readonly ["code", "category", "retryable"];
|
|
10167
|
+
readonly type: "object";
|
|
10168
|
+
};
|
|
10169
|
+
readonly protocol: {
|
|
10170
|
+
readonly const: "ravi.channel.runtime-events";
|
|
10171
|
+
readonly type: "string";
|
|
10172
|
+
};
|
|
10173
|
+
readonly requestId: {
|
|
10174
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10175
|
+
readonly type: "string";
|
|
10176
|
+
};
|
|
10177
|
+
readonly schemaVersion: {
|
|
10178
|
+
readonly const: 1;
|
|
10179
|
+
readonly type: "number";
|
|
10180
|
+
};
|
|
10181
|
+
};
|
|
10182
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "disposition", "acceptedAt"];
|
|
10183
|
+
readonly type: "object";
|
|
10184
|
+
};
|
|
10185
|
+
/** JSON Schema for the input body of `channels.backend.runtime.readback`. */
|
|
10186
|
+
export declare const ChannelsBackendRuntimeReadbackInputSchema: {
|
|
10187
|
+
readonly additionalProperties: false;
|
|
10188
|
+
readonly properties: {
|
|
10189
|
+
readonly agentId: {
|
|
10190
|
+
readonly description: "Concrete local agent id used for authorization";
|
|
10191
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10192
|
+
readonly type: "string";
|
|
10193
|
+
};
|
|
10194
|
+
readonly request: {
|
|
10195
|
+
readonly additionalProperties: false;
|
|
10196
|
+
readonly description: "Channel runtime readback request object (JSON when invoked from the CLI)";
|
|
10197
|
+
readonly properties: {
|
|
10198
|
+
readonly binding: {
|
|
10199
|
+
readonly additionalProperties: false;
|
|
10200
|
+
readonly properties: {
|
|
10201
|
+
readonly agentId: {
|
|
10202
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10203
|
+
readonly type: "string";
|
|
10204
|
+
};
|
|
10205
|
+
readonly channelInstanceId: {
|
|
10206
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10207
|
+
readonly type: "string";
|
|
10208
|
+
};
|
|
10209
|
+
readonly chatId: {
|
|
10210
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10211
|
+
readonly type: "string";
|
|
10212
|
+
};
|
|
10213
|
+
readonly messageId: {
|
|
10214
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10215
|
+
readonly type: "string";
|
|
10216
|
+
};
|
|
10217
|
+
readonly sessionId: {
|
|
10218
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10219
|
+
readonly type: "string";
|
|
10220
|
+
};
|
|
10221
|
+
readonly turnId: {
|
|
10222
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10223
|
+
readonly type: "string";
|
|
10224
|
+
};
|
|
10225
|
+
};
|
|
10226
|
+
readonly required: readonly ["channelInstanceId", "agentId", "chatId", "messageId", "sessionId", "turnId"];
|
|
10227
|
+
readonly type: "object";
|
|
10228
|
+
};
|
|
10229
|
+
readonly protocol: {
|
|
10230
|
+
readonly const: "ravi.channel.runtime-events";
|
|
10231
|
+
readonly type: "string";
|
|
10232
|
+
};
|
|
10233
|
+
readonly requestId: {
|
|
10234
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10235
|
+
readonly type: "string";
|
|
10236
|
+
};
|
|
10237
|
+
readonly schemaVersion: {
|
|
10238
|
+
readonly const: 1;
|
|
10239
|
+
readonly type: "number";
|
|
10240
|
+
};
|
|
10241
|
+
};
|
|
10242
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "binding"];
|
|
10243
|
+
readonly type: "object";
|
|
10244
|
+
};
|
|
10245
|
+
};
|
|
10246
|
+
readonly required: readonly ["agentId", "request"];
|
|
10247
|
+
readonly type: "object";
|
|
10248
|
+
};
|
|
10249
|
+
/** JSON Schema for the return shape of `channels.backend.runtime.readback`. */
|
|
10250
|
+
export declare const ChannelsBackendRuntimeReadbackReturnSchema: {
|
|
10251
|
+
readonly additionalProperties: false;
|
|
10252
|
+
readonly properties: {
|
|
10253
|
+
readonly assistantMessageId: {
|
|
10254
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10255
|
+
readonly type: "string";
|
|
10256
|
+
};
|
|
10257
|
+
readonly binding: {
|
|
10258
|
+
readonly additionalProperties: false;
|
|
10259
|
+
readonly properties: {
|
|
10260
|
+
readonly agentId: {
|
|
10261
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10262
|
+
readonly type: "string";
|
|
10263
|
+
};
|
|
10264
|
+
readonly channelInstanceId: {
|
|
10265
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10266
|
+
readonly type: "string";
|
|
10267
|
+
};
|
|
10268
|
+
readonly chatId: {
|
|
10269
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10270
|
+
readonly type: "string";
|
|
10271
|
+
};
|
|
10272
|
+
readonly messageId: {
|
|
10273
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10274
|
+
readonly type: "string";
|
|
10275
|
+
};
|
|
10276
|
+
readonly sessionId: {
|
|
10277
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10278
|
+
readonly type: "string";
|
|
10279
|
+
};
|
|
10280
|
+
readonly turnId: {
|
|
10281
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10282
|
+
readonly type: "string";
|
|
10283
|
+
};
|
|
10284
|
+
};
|
|
10285
|
+
readonly required: readonly ["channelInstanceId", "agentId", "chatId", "messageId", "sessionId", "turnId"];
|
|
10286
|
+
readonly type: "object";
|
|
10287
|
+
};
|
|
10288
|
+
readonly lastSequence: {
|
|
10289
|
+
readonly maximum: 9007199254740991;
|
|
10290
|
+
readonly minimum: 0;
|
|
10291
|
+
readonly type: "integer";
|
|
10292
|
+
};
|
|
10293
|
+
readonly observedAt: {
|
|
10294
|
+
readonly format: "date-time";
|
|
10295
|
+
readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
|
|
10296
|
+
readonly type: "string";
|
|
10297
|
+
};
|
|
10298
|
+
readonly protocol: {
|
|
10299
|
+
readonly const: "ravi.channel.runtime-events";
|
|
10300
|
+
readonly type: "string";
|
|
10301
|
+
};
|
|
10302
|
+
readonly requestId: {
|
|
10303
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]*$";
|
|
10304
|
+
readonly type: "string";
|
|
10305
|
+
};
|
|
10306
|
+
readonly schemaVersion: {
|
|
10307
|
+
readonly const: 1;
|
|
10308
|
+
readonly type: "number";
|
|
10309
|
+
};
|
|
10310
|
+
readonly state: {
|
|
10311
|
+
readonly enum: readonly ["accepted", "running", "waiting_approval", "completed", "failed", "interrupted"];
|
|
10312
|
+
readonly type: "string";
|
|
10313
|
+
};
|
|
10314
|
+
};
|
|
10315
|
+
readonly required: readonly ["protocol", "schemaVersion", "requestId", "binding", "state", "lastSequence", "observedAt"];
|
|
10316
|
+
readonly type: "object";
|
|
10317
|
+
};
|
|
9841
10318
|
/** JSON Schema for the input body of `channels.create`. */
|
|
9842
10319
|
export declare const ChannelsCreateInputSchema: {
|
|
9843
10320
|
readonly additionalProperties: false;
|
|
@@ -11682,53 +12159,193 @@ export declare const ChannelsStopReturnSchema: {
|
|
|
11682
12159
|
readonly type: "null";
|
|
11683
12160
|
}];
|
|
11684
12161
|
};
|
|
11685
|
-
};
|
|
11686
|
-
readonly required: readonly ["pm2Available", "processName", "channels", "processes"];
|
|
11687
|
-
readonly type: "object";
|
|
11688
|
-
};
|
|
11689
|
-
readonly target: {
|
|
11690
|
-
readonly additionalProperties: false;
|
|
11691
|
-
readonly properties: {
|
|
11692
|
-
readonly bundlePath: {
|
|
12162
|
+
};
|
|
12163
|
+
readonly required: readonly ["pm2Available", "processName", "channels", "processes"];
|
|
12164
|
+
readonly type: "object";
|
|
12165
|
+
};
|
|
12166
|
+
readonly target: {
|
|
12167
|
+
readonly additionalProperties: false;
|
|
12168
|
+
readonly properties: {
|
|
12169
|
+
readonly bundlePath: {
|
|
12170
|
+
readonly type: "string";
|
|
12171
|
+
};
|
|
12172
|
+
readonly cwd: {
|
|
12173
|
+
readonly type: "string";
|
|
12174
|
+
};
|
|
12175
|
+
readonly sourceProjectRoot: {
|
|
12176
|
+
readonly type: "string";
|
|
12177
|
+
};
|
|
12178
|
+
};
|
|
12179
|
+
readonly required: readonly ["bundlePath", "cwd"];
|
|
12180
|
+
readonly type: "object";
|
|
12181
|
+
};
|
|
12182
|
+
};
|
|
12183
|
+
readonly required: readonly ["action", "changed"];
|
|
12184
|
+
readonly type: "object";
|
|
12185
|
+
};
|
|
12186
|
+
/** JSON Schema for the input body of `chats.backfill-provider-timestamps`. */
|
|
12187
|
+
export declare const ChatsBackfillProviderTimestampsInputSchema: {
|
|
12188
|
+
readonly additionalProperties: false;
|
|
12189
|
+
readonly properties: {
|
|
12190
|
+
readonly apply: {
|
|
12191
|
+
readonly description: "Write corrected provider timestamps. Without this, runs dry-run.";
|
|
12192
|
+
readonly type: "boolean";
|
|
12193
|
+
};
|
|
12194
|
+
readonly dryRun: {
|
|
12195
|
+
readonly description: "Force preview mode even if --apply is present";
|
|
12196
|
+
readonly type: "boolean";
|
|
12197
|
+
};
|
|
12198
|
+
readonly limit: {
|
|
12199
|
+
readonly description: "Maximum matching messages to inspect/apply";
|
|
12200
|
+
readonly type: "string";
|
|
12201
|
+
};
|
|
12202
|
+
};
|
|
12203
|
+
readonly type: "object";
|
|
12204
|
+
};
|
|
12205
|
+
/** JSON Schema for the return shape of `chats.backfill-provider-timestamps`. */
|
|
12206
|
+
export declare const ChatsBackfillProviderTimestampsReturnSchema: {
|
|
12207
|
+
readonly additionalProperties: {};
|
|
12208
|
+
readonly properties: {};
|
|
12209
|
+
readonly type: "object";
|
|
12210
|
+
};
|
|
12211
|
+
/** JSON Schema for the input body of `chats.ensure`. */
|
|
12212
|
+
export declare const ChatsEnsureInputSchema: {
|
|
12213
|
+
readonly additionalProperties: false;
|
|
12214
|
+
readonly properties: {
|
|
12215
|
+
readonly actorId: {
|
|
12216
|
+
readonly description: "Canonical actor id";
|
|
12217
|
+
readonly maxLength: 128;
|
|
12218
|
+
readonly minLength: 1;
|
|
12219
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$";
|
|
12220
|
+
readonly type: "string";
|
|
12221
|
+
};
|
|
12222
|
+
readonly agentId: {
|
|
12223
|
+
readonly description: "Target agent id";
|
|
12224
|
+
readonly maxLength: 128;
|
|
12225
|
+
readonly minLength: 1;
|
|
12226
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$";
|
|
12227
|
+
readonly type: "string";
|
|
12228
|
+
};
|
|
12229
|
+
readonly clientRequestId: {
|
|
12230
|
+
readonly description: "Caller-owned request id";
|
|
12231
|
+
readonly maxLength: 128;
|
|
12232
|
+
readonly minLength: 1;
|
|
12233
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$";
|
|
12234
|
+
readonly type: "string";
|
|
12235
|
+
};
|
|
12236
|
+
};
|
|
12237
|
+
readonly required: readonly ["actorId", "agentId", "clientRequestId"];
|
|
12238
|
+
readonly type: "object";
|
|
12239
|
+
};
|
|
12240
|
+
/** JSON Schema for the return shape of `chats.ensure`. */
|
|
12241
|
+
export declare const ChatsEnsureReturnSchema: {
|
|
12242
|
+
readonly $defs: {
|
|
12243
|
+
readonly __schema0: {
|
|
12244
|
+
readonly anyOf: readonly [{
|
|
12245
|
+
readonly anyOf: readonly [{
|
|
12246
|
+
readonly type: "string";
|
|
12247
|
+
}, {
|
|
12248
|
+
readonly type: "number";
|
|
12249
|
+
}, {
|
|
12250
|
+
readonly type: "boolean";
|
|
12251
|
+
}, {
|
|
12252
|
+
readonly type: "null";
|
|
12253
|
+
}];
|
|
12254
|
+
}, {
|
|
12255
|
+
readonly items: {
|
|
12256
|
+
readonly $ref: "#/$defs/__schema0";
|
|
12257
|
+
};
|
|
12258
|
+
readonly type: "array";
|
|
12259
|
+
}, {
|
|
12260
|
+
readonly additionalProperties: {
|
|
12261
|
+
readonly $ref: "#/$defs/__schema0";
|
|
12262
|
+
};
|
|
12263
|
+
readonly propertyNames: {
|
|
12264
|
+
readonly type: "string";
|
|
12265
|
+
};
|
|
12266
|
+
readonly type: "object";
|
|
12267
|
+
}];
|
|
12268
|
+
};
|
|
12269
|
+
};
|
|
12270
|
+
readonly additionalProperties: false;
|
|
12271
|
+
readonly properties: {
|
|
12272
|
+
readonly chat: {
|
|
12273
|
+
readonly additionalProperties: false;
|
|
12274
|
+
readonly properties: {
|
|
12275
|
+
readonly actorId: {
|
|
12276
|
+
readonly type: "string";
|
|
12277
|
+
};
|
|
12278
|
+
readonly agentId: {
|
|
12279
|
+
readonly type: "string";
|
|
12280
|
+
};
|
|
12281
|
+
readonly avatarUrl: {
|
|
12282
|
+
readonly type: "string";
|
|
12283
|
+
};
|
|
12284
|
+
readonly channel: {
|
|
12285
|
+
readonly type: "string";
|
|
12286
|
+
};
|
|
12287
|
+
readonly chatType: {
|
|
12288
|
+
readonly enum: readonly ["dm", "group", "room", "thread", "channel", "unknown"];
|
|
12289
|
+
readonly type: "string";
|
|
12290
|
+
};
|
|
12291
|
+
readonly createdAt: {
|
|
12292
|
+
readonly type: "number";
|
|
12293
|
+
};
|
|
12294
|
+
readonly firstSeenAt: {
|
|
12295
|
+
readonly type: "number";
|
|
12296
|
+
};
|
|
12297
|
+
readonly id: {
|
|
12298
|
+
readonly type: "string";
|
|
12299
|
+
};
|
|
12300
|
+
readonly instanceId: {
|
|
12301
|
+
readonly type: "string";
|
|
12302
|
+
};
|
|
12303
|
+
readonly lastSeenAt: {
|
|
12304
|
+
readonly type: "number";
|
|
12305
|
+
};
|
|
12306
|
+
readonly metadata: {
|
|
12307
|
+
readonly additionalProperties: {
|
|
12308
|
+
readonly $ref: "#/$defs/__schema0";
|
|
12309
|
+
};
|
|
12310
|
+
readonly propertyNames: {
|
|
12311
|
+
readonly type: "string";
|
|
12312
|
+
};
|
|
12313
|
+
readonly type: "object";
|
|
12314
|
+
};
|
|
12315
|
+
readonly normalizedChatId: {
|
|
11693
12316
|
readonly type: "string";
|
|
11694
12317
|
};
|
|
11695
|
-
readonly
|
|
12318
|
+
readonly platformChatId: {
|
|
11696
12319
|
readonly type: "string";
|
|
11697
12320
|
};
|
|
11698
|
-
readonly
|
|
12321
|
+
readonly rawProvenance: {
|
|
12322
|
+
readonly additionalProperties: {
|
|
12323
|
+
readonly $ref: "#/$defs/__schema0";
|
|
12324
|
+
};
|
|
12325
|
+
readonly propertyNames: {
|
|
12326
|
+
readonly type: "string";
|
|
12327
|
+
};
|
|
12328
|
+
readonly type: "object";
|
|
12329
|
+
};
|
|
12330
|
+
readonly title: {
|
|
11699
12331
|
readonly type: "string";
|
|
11700
12332
|
};
|
|
12333
|
+
readonly updatedAt: {
|
|
12334
|
+
readonly type: "number";
|
|
12335
|
+
};
|
|
11701
12336
|
};
|
|
11702
|
-
readonly required: readonly ["
|
|
12337
|
+
readonly required: readonly ["id", "channel", "instanceId", "actorId", "agentId", "chatType", "firstSeenAt", "lastSeenAt", "createdAt", "updatedAt"];
|
|
11703
12338
|
readonly type: "object";
|
|
11704
12339
|
};
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
readonly type: "object";
|
|
11708
|
-
};
|
|
11709
|
-
/** JSON Schema for the input body of `chats.backfill-provider-timestamps`. */
|
|
11710
|
-
export declare const ChatsBackfillProviderTimestampsInputSchema: {
|
|
11711
|
-
readonly additionalProperties: false;
|
|
11712
|
-
readonly properties: {
|
|
11713
|
-
readonly apply: {
|
|
11714
|
-
readonly description: "Write corrected provider timestamps. Without this, runs dry-run.";
|
|
11715
|
-
readonly type: "boolean";
|
|
11716
|
-
};
|
|
11717
|
-
readonly dryRun: {
|
|
11718
|
-
readonly description: "Force preview mode even if --apply is present";
|
|
11719
|
-
readonly type: "boolean";
|
|
12340
|
+
readonly clientRequestId: {
|
|
12341
|
+
readonly type: "string";
|
|
11720
12342
|
};
|
|
11721
|
-
readonly
|
|
11722
|
-
readonly
|
|
12343
|
+
readonly disposition: {
|
|
12344
|
+
readonly enum: readonly ["created", "existing"];
|
|
11723
12345
|
readonly type: "string";
|
|
11724
12346
|
};
|
|
11725
12347
|
};
|
|
11726
|
-
readonly
|
|
11727
|
-
};
|
|
11728
|
-
/** JSON Schema for the return shape of `chats.backfill-provider-timestamps`. */
|
|
11729
|
-
export declare const ChatsBackfillProviderTimestampsReturnSchema: {
|
|
11730
|
-
readonly additionalProperties: {};
|
|
11731
|
-
readonly properties: {};
|
|
12348
|
+
readonly required: readonly ["disposition", "clientRequestId", "chat"];
|
|
11732
12349
|
readonly type: "object";
|
|
11733
12350
|
};
|
|
11734
12351
|
/** JSON Schema for the input body of `chats.list`. */
|
|
@@ -11813,6 +12430,12 @@ export declare const ChatsListReturnSchema: {
|
|
|
11813
12430
|
readonly chat: {
|
|
11814
12431
|
readonly additionalProperties: false;
|
|
11815
12432
|
readonly properties: {
|
|
12433
|
+
readonly actorId: {
|
|
12434
|
+
readonly type: "string";
|
|
12435
|
+
};
|
|
12436
|
+
readonly agentId: {
|
|
12437
|
+
readonly type: "string";
|
|
12438
|
+
};
|
|
11816
12439
|
readonly avatarUrl: {
|
|
11817
12440
|
readonly type: "string";
|
|
11818
12441
|
};
|
|
@@ -11876,6 +12499,9 @@ export declare const ChatsListReturnSchema: {
|
|
|
11876
12499
|
readonly anyOf: readonly [{
|
|
11877
12500
|
readonly additionalProperties: false;
|
|
11878
12501
|
readonly properties: {
|
|
12502
|
+
readonly actorId: {
|
|
12503
|
+
readonly type: "string";
|
|
12504
|
+
};
|
|
11879
12505
|
readonly actorType: {
|
|
11880
12506
|
readonly type: "string";
|
|
11881
12507
|
};
|
|
@@ -11888,6 +12514,9 @@ export declare const ChatsListReturnSchema: {
|
|
|
11888
12514
|
readonly chatId: {
|
|
11889
12515
|
readonly type: "string";
|
|
11890
12516
|
};
|
|
12517
|
+
readonly clientMessageId: {
|
|
12518
|
+
readonly type: "string";
|
|
12519
|
+
};
|
|
11891
12520
|
readonly contactId: {
|
|
11892
12521
|
readonly type: "string";
|
|
11893
12522
|
};
|
|
@@ -11942,9 +12571,17 @@ export declare const ChatsListReturnSchema: {
|
|
|
11942
12571
|
readonly rawSenderId: {
|
|
11943
12572
|
readonly type: "string";
|
|
11944
12573
|
};
|
|
12574
|
+
readonly revision: {
|
|
12575
|
+
readonly exclusiveMinimum: 0;
|
|
12576
|
+
readonly maximum: 9007199254740991;
|
|
12577
|
+
readonly type: "integer";
|
|
12578
|
+
};
|
|
11945
12579
|
readonly sortKey: {
|
|
11946
12580
|
readonly type: "string";
|
|
11947
12581
|
};
|
|
12582
|
+
readonly state: {
|
|
12583
|
+
readonly type: "string";
|
|
12584
|
+
};
|
|
11948
12585
|
readonly updatedAt: {
|
|
11949
12586
|
readonly type: "number";
|
|
11950
12587
|
};
|
|
@@ -11974,6 +12611,12 @@ export declare const ChatsListReturnSchema: {
|
|
|
11974
12611
|
readonly chat: {
|
|
11975
12612
|
readonly additionalProperties: false;
|
|
11976
12613
|
readonly properties: {
|
|
12614
|
+
readonly actorId: {
|
|
12615
|
+
readonly type: "string";
|
|
12616
|
+
};
|
|
12617
|
+
readonly agentId: {
|
|
12618
|
+
readonly type: "string";
|
|
12619
|
+
};
|
|
11977
12620
|
readonly avatarUrl: {
|
|
11978
12621
|
readonly type: "string";
|
|
11979
12622
|
};
|
|
@@ -12037,6 +12680,9 @@ export declare const ChatsListReturnSchema: {
|
|
|
12037
12680
|
readonly anyOf: readonly [{
|
|
12038
12681
|
readonly additionalProperties: false;
|
|
12039
12682
|
readonly properties: {
|
|
12683
|
+
readonly actorId: {
|
|
12684
|
+
readonly type: "string";
|
|
12685
|
+
};
|
|
12040
12686
|
readonly actorType: {
|
|
12041
12687
|
readonly type: "string";
|
|
12042
12688
|
};
|
|
@@ -12049,6 +12695,9 @@ export declare const ChatsListReturnSchema: {
|
|
|
12049
12695
|
readonly chatId: {
|
|
12050
12696
|
readonly type: "string";
|
|
12051
12697
|
};
|
|
12698
|
+
readonly clientMessageId: {
|
|
12699
|
+
readonly type: "string";
|
|
12700
|
+
};
|
|
12052
12701
|
readonly contactId: {
|
|
12053
12702
|
readonly type: "string";
|
|
12054
12703
|
};
|
|
@@ -12103,9 +12752,17 @@ export declare const ChatsListReturnSchema: {
|
|
|
12103
12752
|
readonly rawSenderId: {
|
|
12104
12753
|
readonly type: "string";
|
|
12105
12754
|
};
|
|
12755
|
+
readonly revision: {
|
|
12756
|
+
readonly exclusiveMinimum: 0;
|
|
12757
|
+
readonly maximum: 9007199254740991;
|
|
12758
|
+
readonly type: "integer";
|
|
12759
|
+
};
|
|
12106
12760
|
readonly sortKey: {
|
|
12107
12761
|
readonly type: "string";
|
|
12108
12762
|
};
|
|
12763
|
+
readonly state: {
|
|
12764
|
+
readonly type: "string";
|
|
12765
|
+
};
|
|
12109
12766
|
readonly updatedAt: {
|
|
12110
12767
|
readonly type: "number";
|
|
12111
12768
|
};
|
|
@@ -12937,6 +13594,179 @@ export declare const ChatsListsShowReturnSchema: {
|
|
|
12937
13594
|
readonly required: readonly ["list", "validation", "current"];
|
|
12938
13595
|
readonly type: "object";
|
|
12939
13596
|
};
|
|
13597
|
+
/** JSON Schema for the input body of `chats.messages.create`. */
|
|
13598
|
+
export declare const ChatsMessagesCreateInputSchema: {
|
|
13599
|
+
readonly additionalProperties: false;
|
|
13600
|
+
readonly properties: {
|
|
13601
|
+
readonly actorId: {
|
|
13602
|
+
readonly description: "Canonical actor id";
|
|
13603
|
+
readonly maxLength: 128;
|
|
13604
|
+
readonly minLength: 1;
|
|
13605
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$";
|
|
13606
|
+
readonly type: "string";
|
|
13607
|
+
};
|
|
13608
|
+
readonly chatId: {
|
|
13609
|
+
readonly description: "Canonical chat id";
|
|
13610
|
+
readonly pattern: "^chat_[0-9a-f]{24}$";
|
|
13611
|
+
readonly type: "string";
|
|
13612
|
+
};
|
|
13613
|
+
readonly clientMessageId: {
|
|
13614
|
+
readonly description: "Caller-owned message id";
|
|
13615
|
+
readonly maxLength: 128;
|
|
13616
|
+
readonly minLength: 1;
|
|
13617
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~-]{0,127}$";
|
|
13618
|
+
readonly type: "string";
|
|
13619
|
+
};
|
|
13620
|
+
readonly content: {
|
|
13621
|
+
readonly description: "Message text";
|
|
13622
|
+
readonly maxLength: 1000000;
|
|
13623
|
+
readonly minLength: 1;
|
|
13624
|
+
readonly type: "string";
|
|
13625
|
+
};
|
|
13626
|
+
};
|
|
13627
|
+
readonly required: readonly ["actorId", "chatId", "clientMessageId", "content"];
|
|
13628
|
+
readonly type: "object";
|
|
13629
|
+
};
|
|
13630
|
+
/** JSON Schema for the return shape of `chats.messages.create`. */
|
|
13631
|
+
export declare const ChatsMessagesCreateReturnSchema: {
|
|
13632
|
+
readonly $defs: {
|
|
13633
|
+
readonly __schema0: {
|
|
13634
|
+
readonly anyOf: readonly [{
|
|
13635
|
+
readonly anyOf: readonly [{
|
|
13636
|
+
readonly type: "string";
|
|
13637
|
+
}, {
|
|
13638
|
+
readonly type: "number";
|
|
13639
|
+
}, {
|
|
13640
|
+
readonly type: "boolean";
|
|
13641
|
+
}, {
|
|
13642
|
+
readonly type: "null";
|
|
13643
|
+
}];
|
|
13644
|
+
}, {
|
|
13645
|
+
readonly items: {
|
|
13646
|
+
readonly $ref: "#/$defs/__schema0";
|
|
13647
|
+
};
|
|
13648
|
+
readonly type: "array";
|
|
13649
|
+
}, {
|
|
13650
|
+
readonly additionalProperties: {
|
|
13651
|
+
readonly $ref: "#/$defs/__schema0";
|
|
13652
|
+
};
|
|
13653
|
+
readonly propertyNames: {
|
|
13654
|
+
readonly type: "string";
|
|
13655
|
+
};
|
|
13656
|
+
readonly type: "object";
|
|
13657
|
+
}];
|
|
13658
|
+
};
|
|
13659
|
+
};
|
|
13660
|
+
readonly additionalProperties: false;
|
|
13661
|
+
readonly properties: {
|
|
13662
|
+
readonly clientMessageId: {
|
|
13663
|
+
readonly type: "string";
|
|
13664
|
+
};
|
|
13665
|
+
readonly disposition: {
|
|
13666
|
+
readonly enum: readonly ["created", "duplicate"];
|
|
13667
|
+
readonly type: "string";
|
|
13668
|
+
};
|
|
13669
|
+
readonly message: {
|
|
13670
|
+
readonly additionalProperties: false;
|
|
13671
|
+
readonly properties: {
|
|
13672
|
+
readonly actorId: {
|
|
13673
|
+
readonly type: "string";
|
|
13674
|
+
};
|
|
13675
|
+
readonly actorType: {
|
|
13676
|
+
readonly const: "actor";
|
|
13677
|
+
readonly type: "string";
|
|
13678
|
+
};
|
|
13679
|
+
readonly agentId: {
|
|
13680
|
+
readonly type: "string";
|
|
13681
|
+
};
|
|
13682
|
+
readonly channel: {
|
|
13683
|
+
readonly type: "string";
|
|
13684
|
+
};
|
|
13685
|
+
readonly chatId: {
|
|
13686
|
+
readonly type: "string";
|
|
13687
|
+
};
|
|
13688
|
+
readonly clientMessageId: {
|
|
13689
|
+
readonly type: "string";
|
|
13690
|
+
};
|
|
13691
|
+
readonly contactId: {
|
|
13692
|
+
readonly type: "string";
|
|
13693
|
+
};
|
|
13694
|
+
readonly content: {
|
|
13695
|
+
readonly additionalProperties: {
|
|
13696
|
+
readonly $ref: "#/$defs/__schema0";
|
|
13697
|
+
};
|
|
13698
|
+
readonly propertyNames: {
|
|
13699
|
+
readonly type: "string";
|
|
13700
|
+
};
|
|
13701
|
+
readonly type: "object";
|
|
13702
|
+
};
|
|
13703
|
+
readonly createdAt: {
|
|
13704
|
+
readonly type: "number";
|
|
13705
|
+
};
|
|
13706
|
+
readonly id: {
|
|
13707
|
+
readonly type: "string";
|
|
13708
|
+
};
|
|
13709
|
+
readonly ingestedAt: {
|
|
13710
|
+
readonly type: "number";
|
|
13711
|
+
};
|
|
13712
|
+
readonly instanceId: {
|
|
13713
|
+
readonly type: "string";
|
|
13714
|
+
};
|
|
13715
|
+
readonly messageType: {
|
|
13716
|
+
readonly type: "string";
|
|
13717
|
+
};
|
|
13718
|
+
readonly normalizedSenderId: {
|
|
13719
|
+
readonly type: "string";
|
|
13720
|
+
};
|
|
13721
|
+
readonly platformIdentityId: {
|
|
13722
|
+
readonly type: "string";
|
|
13723
|
+
};
|
|
13724
|
+
readonly providerMessageId: {
|
|
13725
|
+
readonly type: "string";
|
|
13726
|
+
};
|
|
13727
|
+
readonly providerTimestamp: {
|
|
13728
|
+
readonly type: "number";
|
|
13729
|
+
};
|
|
13730
|
+
readonly rawChatId: {
|
|
13731
|
+
readonly type: "string";
|
|
13732
|
+
};
|
|
13733
|
+
readonly rawProvenance: {
|
|
13734
|
+
readonly additionalProperties: {
|
|
13735
|
+
readonly $ref: "#/$defs/__schema0";
|
|
13736
|
+
};
|
|
13737
|
+
readonly propertyNames: {
|
|
13738
|
+
readonly type: "string";
|
|
13739
|
+
};
|
|
13740
|
+
readonly type: "object";
|
|
13741
|
+
};
|
|
13742
|
+
readonly rawSenderId: {
|
|
13743
|
+
readonly type: "string";
|
|
13744
|
+
};
|
|
13745
|
+
readonly revision: {
|
|
13746
|
+
readonly const: 1;
|
|
13747
|
+
readonly type: "number";
|
|
13748
|
+
};
|
|
13749
|
+
readonly sortKey: {
|
|
13750
|
+
readonly type: "string";
|
|
13751
|
+
};
|
|
13752
|
+
readonly state: {
|
|
13753
|
+
readonly const: "created";
|
|
13754
|
+
readonly type: "string";
|
|
13755
|
+
};
|
|
13756
|
+
readonly updatedAt: {
|
|
13757
|
+
readonly type: "number";
|
|
13758
|
+
};
|
|
13759
|
+
};
|
|
13760
|
+
readonly required: readonly ["id", "chatId", "clientMessageId", "actorType", "actorId", "content", "revision", "state", "ingestedAt", "sortKey", "createdAt", "updatedAt"];
|
|
13761
|
+
readonly type: "object";
|
|
13762
|
+
};
|
|
13763
|
+
readonly messageId: {
|
|
13764
|
+
readonly type: "string";
|
|
13765
|
+
};
|
|
13766
|
+
};
|
|
13767
|
+
readonly required: readonly ["disposition", "clientMessageId", "messageId", "message"];
|
|
13768
|
+
readonly type: "object";
|
|
13769
|
+
};
|
|
12940
13770
|
/** JSON Schema for the input body of `chats.read`. */
|
|
12941
13771
|
export declare const ChatsReadInputSchema: {
|
|
12942
13772
|
readonly additionalProperties: false;
|
|
@@ -13012,6 +13842,12 @@ export declare const ChatsReadReturnSchema: {
|
|
|
13012
13842
|
readonly chat: {
|
|
13013
13843
|
readonly additionalProperties: false;
|
|
13014
13844
|
readonly properties: {
|
|
13845
|
+
readonly actorId: {
|
|
13846
|
+
readonly type: "string";
|
|
13847
|
+
};
|
|
13848
|
+
readonly agentId: {
|
|
13849
|
+
readonly type: "string";
|
|
13850
|
+
};
|
|
13015
13851
|
readonly avatarUrl: {
|
|
13016
13852
|
readonly type: "string";
|
|
13017
13853
|
};
|
|
@@ -13075,6 +13911,9 @@ export declare const ChatsReadReturnSchema: {
|
|
|
13075
13911
|
readonly items: {
|
|
13076
13912
|
readonly additionalProperties: false;
|
|
13077
13913
|
readonly properties: {
|
|
13914
|
+
readonly actorId: {
|
|
13915
|
+
readonly type: "string";
|
|
13916
|
+
};
|
|
13078
13917
|
readonly actorType: {
|
|
13079
13918
|
readonly type: "string";
|
|
13080
13919
|
};
|
|
@@ -13087,6 +13926,9 @@ export declare const ChatsReadReturnSchema: {
|
|
|
13087
13926
|
readonly chatId: {
|
|
13088
13927
|
readonly type: "string";
|
|
13089
13928
|
};
|
|
13929
|
+
readonly clientMessageId: {
|
|
13930
|
+
readonly type: "string";
|
|
13931
|
+
};
|
|
13090
13932
|
readonly contactId: {
|
|
13091
13933
|
readonly type: "string";
|
|
13092
13934
|
};
|
|
@@ -13141,9 +13983,17 @@ export declare const ChatsReadReturnSchema: {
|
|
|
13141
13983
|
readonly rawSenderId: {
|
|
13142
13984
|
readonly type: "string";
|
|
13143
13985
|
};
|
|
13986
|
+
readonly revision: {
|
|
13987
|
+
readonly exclusiveMinimum: 0;
|
|
13988
|
+
readonly maximum: 9007199254740991;
|
|
13989
|
+
readonly type: "integer";
|
|
13990
|
+
};
|
|
13144
13991
|
readonly sortKey: {
|
|
13145
13992
|
readonly type: "string";
|
|
13146
13993
|
};
|
|
13994
|
+
readonly state: {
|
|
13995
|
+
readonly type: "string";
|
|
13996
|
+
};
|
|
13147
13997
|
readonly updatedAt: {
|
|
13148
13998
|
readonly type: "number";
|
|
13149
13999
|
};
|
|
@@ -37752,6 +38602,25 @@ export declare const ReactSendReturnSchema: {
|
|
|
37752
38602
|
readonly required: readonly ["channel", "accountId", "chatId", "messageId", "emoji"];
|
|
37753
38603
|
readonly type: "object";
|
|
37754
38604
|
};
|
|
38605
|
+
readonly executionMode: {
|
|
38606
|
+
readonly enum: readonly ["durable", "legacy"];
|
|
38607
|
+
readonly type: "string";
|
|
38608
|
+
};
|
|
38609
|
+
readonly idempotencyKey: {
|
|
38610
|
+
readonly type: "string";
|
|
38611
|
+
};
|
|
38612
|
+
readonly nextAttemptAt: {
|
|
38613
|
+
readonly type: "number";
|
|
38614
|
+
};
|
|
38615
|
+
readonly publishPending: {
|
|
38616
|
+
readonly type: "boolean";
|
|
38617
|
+
};
|
|
38618
|
+
readonly publishedNow: {
|
|
38619
|
+
readonly type: "boolean";
|
|
38620
|
+
};
|
|
38621
|
+
readonly queued: {
|
|
38622
|
+
readonly type: "boolean";
|
|
38623
|
+
};
|
|
37755
38624
|
readonly reaction: {
|
|
37756
38625
|
readonly additionalProperties: false;
|
|
37757
38626
|
readonly properties: {
|
|
@@ -37765,9 +38634,12 @@ export declare const ReactSendReturnSchema: {
|
|
|
37765
38634
|
readonly required: readonly ["messageId", "emoji"];
|
|
37766
38635
|
readonly type: "object";
|
|
37767
38636
|
};
|
|
37768
|
-
readonly
|
|
37769
|
-
readonly
|
|
37770
|
-
|
|
38637
|
+
readonly requestId: {
|
|
38638
|
+
readonly type: "string";
|
|
38639
|
+
};
|
|
38640
|
+
readonly status: {
|
|
38641
|
+
readonly enum: readonly ["queued", "accepted"];
|
|
38642
|
+
readonly type: "string";
|
|
37771
38643
|
};
|
|
37772
38644
|
readonly target: {
|
|
37773
38645
|
readonly additionalProperties: false;
|
|
@@ -37786,11 +38658,10 @@ export declare const ReactSendReturnSchema: {
|
|
|
37786
38658
|
readonly type: "object";
|
|
37787
38659
|
};
|
|
37788
38660
|
readonly topic: {
|
|
37789
|
-
readonly const: "ravi.outbound.reaction";
|
|
37790
38661
|
readonly type: "string";
|
|
37791
38662
|
};
|
|
37792
38663
|
};
|
|
37793
|
-
readonly required: readonly ["
|
|
38664
|
+
readonly required: readonly ["status", "queued", "executionMode", "topic", "reaction", "target", "event"];
|
|
37794
38665
|
readonly type: "object";
|
|
37795
38666
|
};
|
|
37796
38667
|
/** JSON Schema for the input body of `routes.explain`. */
|