@m6d/cortex 0.3.0 → 0.4.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/dist/index.d.ts CHANGED
@@ -15,6 +15,15 @@ declare const serverVariableSchema: z.ZodObject<{
15
15
  }>;
16
16
  }, z.core.$strip>;
17
17
  export type ServerVariable = z.infer<typeof serverVariableSchema>;
18
+ declare const serverToolSchema: z.ZodObject<{
19
+ name: z.ZodString;
20
+ description: z.ZodString;
21
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23
+ readOnly: z.ZodBoolean;
24
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
25
+ }, z.core.$strip>;
26
+ export type ServerTool = z.infer<typeof serverToolSchema>;
18
27
  declare const approvalRequestedEventSchema: z.ZodObject<{
19
28
  event: z.ZodLiteral<"approval_requested">;
20
29
  agentSlug: z.ZodString;
@@ -80,14 +89,14 @@ export type VariableDefinition = {
80
89
  resolve: (request: WithToken<VariablesRequest>) => Awaitable<ValueOf<TType>>;
81
90
  };
82
91
  }[ServerVariable["type"]];
83
- /** A tool the agents call; its result is the `output` Cortex hands the model. */
84
- export type ToolDefinition<TInput extends z.ZodType> = {
85
- description: string;
92
+ /**
93
+ * A tool the agents call; its result is the `output` Cortex hands the model.
94
+ * With `requiresApproval`, every call parks until the end user approves it,
95
+ * on a card whose title the model writes for that call.
96
+ */
97
+ export type ToolDefinition<TInput extends z.ZodType> = Pick<ServerTool, "description" | "readOnly" | "requiresApproval"> & {
86
98
  input: TInput;
87
99
  output?: z.ZodType;
88
- readOnly: boolean;
89
- /** Every call parks until the end user approves it, on a card whose title the model writes for that call. */
90
- requiresApproval?: boolean;
91
100
  run(input: z.output<TInput>, context: WithToken<ToolRequest["context"]>): Awaitable<unknown>;
92
101
  };
93
102
  export type ServerOptions<TInputs extends Record<string, z.ZodType>> = {
@@ -255,7 +264,8 @@ export type DatasetCondition = {
255
264
  * A condition, a group of filters that must all hold (`all`) or of which one
256
265
  * must hold (`any`), or the negation of one (`not`, with SQL's null
257
266
  * semantics: a row whose comparison is unknown is left out either way). A
258
- * filter list is an `all`.
267
+ * filter list is an `all`. An object carrying `col` is a condition, whatever
268
+ * else it carries; any other is an `any`, else an `all`, else a `not` group.
259
269
  */
260
270
  export type DatasetFilter = DatasetCondition | {
261
271
  any: DatasetFilter[];
@@ -699,10 +709,456 @@ declare const datasetQuerySchema: z.ZodPipe<z.ZodCustom<{
699
709
  desc: "desc";
700
710
  }>;
701
711
  }, z.core.$strip>>>;
702
- limit: z.ZodOptional<z.ZodNumber>;
703
- offset: z.ZodOptional<z.ZodNumber>;
712
+ limit: z.ZodOptional<z.ZodInt32>;
713
+ offset: z.ZodOptional<z.ZodInt32>;
704
714
  }, z.core.$strip>>;
705
715
  export type DatasetQuery = z.infer<typeof datasetQuerySchema>;
716
+ declare const datasetRequestSchema: z.ZodObject<{
717
+ query: z.ZodPipe<z.ZodCustom<{
718
+ from: string;
719
+ join?: string[] | undefined;
720
+ select?: (string | {
721
+ expr: DatasetOperand;
722
+ as: string;
723
+ })[] | undefined;
724
+ filter?: DatasetFilter[] | undefined;
725
+ groupBy?: (string | {
726
+ expr: DatasetOperand;
727
+ as: string;
728
+ })[] | undefined;
729
+ aggregate?: {
730
+ fn: "count" | "countDistinct" | "sum" | "avg" | "min" | "max";
731
+ as: string;
732
+ col?: string | {
733
+ value: string | boolean;
734
+ } | {
735
+ op: DatasetArithmeticOp;
736
+ left: DatasetOperand;
737
+ right: DatasetOperand;
738
+ } | {
739
+ fn: "dateTrunc";
740
+ unit: DatasetBucket;
741
+ of: DatasetOperand;
742
+ } | {
743
+ fn: "datePart";
744
+ unit: DatasetDatePart;
745
+ of: DatasetOperand;
746
+ } | {
747
+ fn: DatasetFunction;
748
+ args: DatasetOperand[];
749
+ } | {
750
+ case: {
751
+ when: DatasetFilter;
752
+ then: DatasetOperand;
753
+ }[];
754
+ else?: DatasetOperand;
755
+ } | undefined;
756
+ filter?: DatasetFilter[] | undefined;
757
+ }[] | undefined;
758
+ window?: {
759
+ fn: "count" | "countDistinct" | "sum" | "avg" | "min" | "max";
760
+ as: string;
761
+ col?: string | {
762
+ value: string | boolean;
763
+ } | {
764
+ op: DatasetArithmeticOp;
765
+ left: DatasetOperand;
766
+ right: DatasetOperand;
767
+ } | {
768
+ fn: "dateTrunc";
769
+ unit: DatasetBucket;
770
+ of: DatasetOperand;
771
+ } | {
772
+ fn: "datePart";
773
+ unit: DatasetDatePart;
774
+ of: DatasetOperand;
775
+ } | {
776
+ fn: DatasetFunction;
777
+ args: DatasetOperand[];
778
+ } | {
779
+ case: {
780
+ when: DatasetFilter;
781
+ then: DatasetOperand;
782
+ }[];
783
+ else?: DatasetOperand;
784
+ } | undefined;
785
+ filter?: DatasetFilter[] | undefined;
786
+ partitionBy?: string[] | undefined;
787
+ }[] | undefined;
788
+ compute?: {
789
+ expr: DatasetOperand;
790
+ as: string;
791
+ }[] | undefined;
792
+ having?: DatasetFilter[] | undefined;
793
+ qualify?: DatasetFilter[] | undefined;
794
+ rank?: {
795
+ partitionBy: string[];
796
+ sort: {
797
+ col: string;
798
+ dir: "asc" | "desc";
799
+ }[];
800
+ limit: number;
801
+ } | undefined;
802
+ sort?: {
803
+ col: string;
804
+ dir: "asc" | "desc";
805
+ }[] | undefined;
806
+ limit?: number | undefined;
807
+ offset?: number | undefined;
808
+ }, {
809
+ from: string;
810
+ join?: string[] | undefined;
811
+ select?: (string | {
812
+ expr: DatasetOperand;
813
+ as: string;
814
+ })[] | undefined;
815
+ filter?: DatasetFilter[] | undefined;
816
+ groupBy?: (string | {
817
+ expr: DatasetOperand;
818
+ as: string;
819
+ })[] | undefined;
820
+ aggregate?: {
821
+ fn: "count" | "countDistinct" | "sum" | "avg" | "min" | "max";
822
+ as: string;
823
+ col?: string | {
824
+ value: string | boolean;
825
+ } | {
826
+ op: DatasetArithmeticOp;
827
+ left: DatasetOperand;
828
+ right: DatasetOperand;
829
+ } | {
830
+ fn: "dateTrunc";
831
+ unit: DatasetBucket;
832
+ of: DatasetOperand;
833
+ } | {
834
+ fn: "datePart";
835
+ unit: DatasetDatePart;
836
+ of: DatasetOperand;
837
+ } | {
838
+ fn: DatasetFunction;
839
+ args: DatasetOperand[];
840
+ } | {
841
+ case: {
842
+ when: DatasetFilter;
843
+ then: DatasetOperand;
844
+ }[];
845
+ else?: DatasetOperand;
846
+ } | undefined;
847
+ filter?: DatasetFilter[] | undefined;
848
+ }[] | undefined;
849
+ window?: {
850
+ fn: "count" | "countDistinct" | "sum" | "avg" | "min" | "max";
851
+ as: string;
852
+ col?: string | {
853
+ value: string | boolean;
854
+ } | {
855
+ op: DatasetArithmeticOp;
856
+ left: DatasetOperand;
857
+ right: DatasetOperand;
858
+ } | {
859
+ fn: "dateTrunc";
860
+ unit: DatasetBucket;
861
+ of: DatasetOperand;
862
+ } | {
863
+ fn: "datePart";
864
+ unit: DatasetDatePart;
865
+ of: DatasetOperand;
866
+ } | {
867
+ fn: DatasetFunction;
868
+ args: DatasetOperand[];
869
+ } | {
870
+ case: {
871
+ when: DatasetFilter;
872
+ then: DatasetOperand;
873
+ }[];
874
+ else?: DatasetOperand;
875
+ } | undefined;
876
+ filter?: DatasetFilter[] | undefined;
877
+ partitionBy?: string[] | undefined;
878
+ }[] | undefined;
879
+ compute?: {
880
+ expr: DatasetOperand;
881
+ as: string;
882
+ }[] | undefined;
883
+ having?: DatasetFilter[] | undefined;
884
+ qualify?: DatasetFilter[] | undefined;
885
+ rank?: {
886
+ partitionBy: string[];
887
+ sort: {
888
+ col: string;
889
+ dir: "asc" | "desc";
890
+ }[];
891
+ limit: number;
892
+ } | undefined;
893
+ sort?: {
894
+ col: string;
895
+ dir: "asc" | "desc";
896
+ }[] | undefined;
897
+ limit?: number | undefined;
898
+ offset?: number | undefined;
899
+ }>, z.ZodObject<{
900
+ from: z.ZodString;
901
+ join: z.ZodDefault<z.ZodArray<z.ZodString>>;
902
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [
903
+ z.ZodString,
904
+ z.ZodObject<{
905
+ expr: z.ZodType<DatasetOperand, DatasetOperand, z.core.$ZodTypeInternals<DatasetOperand, DatasetOperand>>;
906
+ as: z.ZodString;
907
+ }, z.core.$strip>
908
+ ]>>>;
909
+ filter: z.ZodDefault<z.ZodArray<z.ZodType<DatasetFilter, DatasetFilter, z.core.$ZodTypeInternals<DatasetFilter, DatasetFilter>>>>;
910
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [
911
+ z.ZodString,
912
+ z.ZodObject<{
913
+ expr: z.ZodType<DatasetOperand, DatasetOperand, z.core.$ZodTypeInternals<DatasetOperand, DatasetOperand>>;
914
+ as: z.ZodString;
915
+ }, z.core.$strip>
916
+ ]>>>;
917
+ aggregate: z.ZodDefault<z.ZodArray<z.ZodObject<{
918
+ fn: z.ZodEnum<{
919
+ count: "count";
920
+ countDistinct: "countDistinct";
921
+ sum: "sum";
922
+ avg: "avg";
923
+ min: "min";
924
+ max: "max";
925
+ }>;
926
+ col: z.ZodOptional<z.ZodType<string | {
927
+ value: string | boolean;
928
+ } | {
929
+ op: DatasetArithmeticOp;
930
+ left: DatasetOperand;
931
+ right: DatasetOperand;
932
+ } | {
933
+ fn: "dateTrunc";
934
+ unit: DatasetBucket;
935
+ of: DatasetOperand;
936
+ } | {
937
+ fn: "datePart";
938
+ unit: DatasetDatePart;
939
+ of: DatasetOperand;
940
+ } | {
941
+ fn: DatasetFunction;
942
+ args: DatasetOperand[];
943
+ } | {
944
+ case: {
945
+ when: DatasetFilter;
946
+ then: DatasetOperand;
947
+ }[];
948
+ else?: DatasetOperand;
949
+ }, string | {
950
+ value: string | boolean;
951
+ } | {
952
+ op: DatasetArithmeticOp;
953
+ left: DatasetOperand;
954
+ right: DatasetOperand;
955
+ } | {
956
+ fn: "dateTrunc";
957
+ unit: DatasetBucket;
958
+ of: DatasetOperand;
959
+ } | {
960
+ fn: "datePart";
961
+ unit: DatasetDatePart;
962
+ of: DatasetOperand;
963
+ } | {
964
+ fn: DatasetFunction;
965
+ args: DatasetOperand[];
966
+ } | {
967
+ case: {
968
+ when: DatasetFilter;
969
+ then: DatasetOperand;
970
+ }[];
971
+ else?: DatasetOperand;
972
+ }, z.core.$ZodTypeInternals<string | {
973
+ value: string | boolean;
974
+ } | {
975
+ op: DatasetArithmeticOp;
976
+ left: DatasetOperand;
977
+ right: DatasetOperand;
978
+ } | {
979
+ fn: "dateTrunc";
980
+ unit: DatasetBucket;
981
+ of: DatasetOperand;
982
+ } | {
983
+ fn: "datePart";
984
+ unit: DatasetDatePart;
985
+ of: DatasetOperand;
986
+ } | {
987
+ fn: DatasetFunction;
988
+ args: DatasetOperand[];
989
+ } | {
990
+ case: {
991
+ when: DatasetFilter;
992
+ then: DatasetOperand;
993
+ }[];
994
+ else?: DatasetOperand;
995
+ }, string | {
996
+ value: string | boolean;
997
+ } | {
998
+ op: DatasetArithmeticOp;
999
+ left: DatasetOperand;
1000
+ right: DatasetOperand;
1001
+ } | {
1002
+ fn: "dateTrunc";
1003
+ unit: DatasetBucket;
1004
+ of: DatasetOperand;
1005
+ } | {
1006
+ fn: "datePart";
1007
+ unit: DatasetDatePart;
1008
+ of: DatasetOperand;
1009
+ } | {
1010
+ fn: DatasetFunction;
1011
+ args: DatasetOperand[];
1012
+ } | {
1013
+ case: {
1014
+ when: DatasetFilter;
1015
+ then: DatasetOperand;
1016
+ }[];
1017
+ else?: DatasetOperand;
1018
+ }>>>;
1019
+ as: z.ZodString;
1020
+ filter: z.ZodDefault<z.ZodArray<z.ZodType<DatasetFilter, DatasetFilter, z.core.$ZodTypeInternals<DatasetFilter, DatasetFilter>>>>;
1021
+ }, z.core.$strip>>>;
1022
+ window: z.ZodDefault<z.ZodArray<z.ZodObject<{
1023
+ fn: z.ZodEnum<{
1024
+ count: "count";
1025
+ countDistinct: "countDistinct";
1026
+ sum: "sum";
1027
+ avg: "avg";
1028
+ min: "min";
1029
+ max: "max";
1030
+ }>;
1031
+ col: z.ZodOptional<z.ZodType<string | {
1032
+ value: string | boolean;
1033
+ } | {
1034
+ op: DatasetArithmeticOp;
1035
+ left: DatasetOperand;
1036
+ right: DatasetOperand;
1037
+ } | {
1038
+ fn: "dateTrunc";
1039
+ unit: DatasetBucket;
1040
+ of: DatasetOperand;
1041
+ } | {
1042
+ fn: "datePart";
1043
+ unit: DatasetDatePart;
1044
+ of: DatasetOperand;
1045
+ } | {
1046
+ fn: DatasetFunction;
1047
+ args: DatasetOperand[];
1048
+ } | {
1049
+ case: {
1050
+ when: DatasetFilter;
1051
+ then: DatasetOperand;
1052
+ }[];
1053
+ else?: DatasetOperand;
1054
+ }, string | {
1055
+ value: string | boolean;
1056
+ } | {
1057
+ op: DatasetArithmeticOp;
1058
+ left: DatasetOperand;
1059
+ right: DatasetOperand;
1060
+ } | {
1061
+ fn: "dateTrunc";
1062
+ unit: DatasetBucket;
1063
+ of: DatasetOperand;
1064
+ } | {
1065
+ fn: "datePart";
1066
+ unit: DatasetDatePart;
1067
+ of: DatasetOperand;
1068
+ } | {
1069
+ fn: DatasetFunction;
1070
+ args: DatasetOperand[];
1071
+ } | {
1072
+ case: {
1073
+ when: DatasetFilter;
1074
+ then: DatasetOperand;
1075
+ }[];
1076
+ else?: DatasetOperand;
1077
+ }, z.core.$ZodTypeInternals<string | {
1078
+ value: string | boolean;
1079
+ } | {
1080
+ op: DatasetArithmeticOp;
1081
+ left: DatasetOperand;
1082
+ right: DatasetOperand;
1083
+ } | {
1084
+ fn: "dateTrunc";
1085
+ unit: DatasetBucket;
1086
+ of: DatasetOperand;
1087
+ } | {
1088
+ fn: "datePart";
1089
+ unit: DatasetDatePart;
1090
+ of: DatasetOperand;
1091
+ } | {
1092
+ fn: DatasetFunction;
1093
+ args: DatasetOperand[];
1094
+ } | {
1095
+ case: {
1096
+ when: DatasetFilter;
1097
+ then: DatasetOperand;
1098
+ }[];
1099
+ else?: DatasetOperand;
1100
+ }, string | {
1101
+ value: string | boolean;
1102
+ } | {
1103
+ op: DatasetArithmeticOp;
1104
+ left: DatasetOperand;
1105
+ right: DatasetOperand;
1106
+ } | {
1107
+ fn: "dateTrunc";
1108
+ unit: DatasetBucket;
1109
+ of: DatasetOperand;
1110
+ } | {
1111
+ fn: "datePart";
1112
+ unit: DatasetDatePart;
1113
+ of: DatasetOperand;
1114
+ } | {
1115
+ fn: DatasetFunction;
1116
+ args: DatasetOperand[];
1117
+ } | {
1118
+ case: {
1119
+ when: DatasetFilter;
1120
+ then: DatasetOperand;
1121
+ }[];
1122
+ else?: DatasetOperand;
1123
+ }>>>;
1124
+ as: z.ZodString;
1125
+ filter: z.ZodDefault<z.ZodArray<z.ZodType<DatasetFilter, DatasetFilter, z.core.$ZodTypeInternals<DatasetFilter, DatasetFilter>>>>;
1126
+ partitionBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
1127
+ }, z.core.$strip>>>;
1128
+ compute: z.ZodDefault<z.ZodArray<z.ZodObject<{
1129
+ expr: z.ZodType<DatasetOperand, DatasetOperand, z.core.$ZodTypeInternals<DatasetOperand, DatasetOperand>>;
1130
+ as: z.ZodString;
1131
+ }, z.core.$strip>>>;
1132
+ having: z.ZodDefault<z.ZodArray<z.ZodType<DatasetFilter, DatasetFilter, z.core.$ZodTypeInternals<DatasetFilter, DatasetFilter>>>>;
1133
+ qualify: z.ZodDefault<z.ZodArray<z.ZodType<DatasetFilter, DatasetFilter, z.core.$ZodTypeInternals<DatasetFilter, DatasetFilter>>>>;
1134
+ rank: z.ZodOptional<z.ZodObject<{
1135
+ partitionBy: z.ZodArray<z.ZodString>;
1136
+ sort: z.ZodArray<z.ZodObject<{
1137
+ col: z.ZodString;
1138
+ dir: z.ZodEnum<{
1139
+ asc: "asc";
1140
+ desc: "desc";
1141
+ }>;
1142
+ }, z.core.$strip>>;
1143
+ limit: z.ZodNumber;
1144
+ }, z.core.$strip>>;
1145
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1146
+ col: z.ZodString;
1147
+ dir: z.ZodEnum<{
1148
+ asc: "asc";
1149
+ desc: "desc";
1150
+ }>;
1151
+ }, z.core.$strip>>>;
1152
+ limit: z.ZodOptional<z.ZodInt32>;
1153
+ offset: z.ZodOptional<z.ZodInt32>;
1154
+ }, z.core.$strip>>;
1155
+ context: z.ZodObject<{
1156
+ threadId: z.ZodString;
1157
+ requestId: z.ZodOptional<z.ZodString>;
1158
+ timeZone: z.ZodOptional<z.ZodString>;
1159
+ }, z.core.$strip>;
1160
+ }, z.core.$strip>;
1161
+ export type DatasetRequest = z.infer<typeof datasetRequestSchema>;
706
1162
  /** The header the end user's token arrives in, and what precedes it there (`"Bearer "`, say). */
707
1163
  export type UserTokenHeader = {
708
1164
  header: string;
@@ -716,14 +1172,17 @@ export type DatasetRequestIdentity = {
716
1172
  /**
717
1173
  * One dataset the host exposes. `run` receives a query already validated
718
1174
  * against the host's own manifest, with `limit` set to one more than the
719
- * rows to return, so a full page means more matched.
1175
+ * rows to return, so a full page means more matched, and the request's
1176
+ * context: the thread and request it came from, and `timeZone`, the IANA
1177
+ * zone of the user the query runs for. A drizzle dataset reads its instants
1178
+ * on that zone's clock; a custom source may ignore it.
720
1179
  */
721
1180
  export type DatasetSource<TUser> = {
722
1181
  /** As authored: `description` and `maxRows` may be left out and take the contract's defaults. */
723
1182
  definition: DatasetDefinitionInput;
724
1183
  run(query: DatasetQuery & {
725
1184
  limit: number;
726
- }, user: TUser, signal: AbortSignal): Promise<ReadonlyArray<Record<string, unknown>>>;
1185
+ }, user: TUser, signal: AbortSignal, context: DatasetRequest["context"]): Promise<ReadonlyArray<Record<string, unknown>>>;
727
1186
  };
728
1187
  export type DatasetHostOptions<TUser> = {
729
1188
  expose: ReadonlyArray<DatasetSource<TUser>>;
@@ -781,7 +1240,17 @@ declare const triggerFiringResponseSchema: z.ZodDiscriminatedUnion<[
781
1240
  outcome: z.ZodLiteral<"failed">;
782
1241
  threadId: z.ZodUUID;
783
1242
  runId: z.ZodString;
784
- reason: z.ZodNullable<z.ZodString>;
1243
+ reason: z.ZodNullable<z.ZodEnum<{
1244
+ busy: "busy";
1245
+ approval_pending: "approval_pending";
1246
+ budget: "budget";
1247
+ rate_limited: "rate_limited";
1248
+ invalid_payload: "invalid_payload";
1249
+ missing_thread_key: "missing_thread_key";
1250
+ no_turn: "no_turn";
1251
+ no_output: "no_output";
1252
+ invalid_output: "invalid_output";
1253
+ }>>;
785
1254
  }, z.core.$strip>,
786
1255
  z.ZodObject<{
787
1256
  firingId: z.ZodUUID;
@@ -817,12 +1286,22 @@ declare const triggerFiringRecordSchema: z.ZodObject<{
817
1286
  outcome: z.ZodEnum<{
818
1287
  completed: "completed";
819
1288
  failed: "failed";
1289
+ dropped: "dropped";
820
1290
  started: "started";
821
1291
  awaiting_approval: "awaiting_approval";
822
1292
  rejected: "rejected";
823
- dropped: "dropped";
824
1293
  }>;
825
- reason: z.ZodNullable<z.ZodString>;
1294
+ reason: z.ZodNullable<z.ZodEnum<{
1295
+ busy: "busy";
1296
+ approval_pending: "approval_pending";
1297
+ budget: "budget";
1298
+ rate_limited: "rate_limited";
1299
+ invalid_payload: "invalid_payload";
1300
+ missing_thread_key: "missing_thread_key";
1301
+ no_turn: "no_turn";
1302
+ no_output: "no_output";
1303
+ invalid_output: "invalid_output";
1304
+ }>>;
826
1305
  output: z.ZodUnknown;
827
1306
  approvals: z.ZodArray<z.ZodObject<{
828
1307
  toolCallId: z.ZodString;
@@ -884,7 +1363,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
884
1363
  outcome: "failed";
885
1364
  threadId: string;
886
1365
  runId: string;
887
- reason: string | null;
1366
+ reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
888
1367
  } | {
889
1368
  firingId: string;
890
1369
  outcome: "dropped";
@@ -931,7 +1410,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
931
1410
  outcome: "failed";
932
1411
  threadId: string;
933
1412
  runId: string;
934
- reason: string | null;
1413
+ reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
935
1414
  } | {
936
1415
  firingId: string;
937
1416
  outcome: "dropped";
@@ -953,8 +1432,8 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
953
1432
  triggerName: string;
954
1433
  threadId: string | null;
955
1434
  runId: string | null;
956
- outcome: "completed" | "failed" | "started" | "awaiting_approval" | "rejected" | "dropped";
957
- reason: string | null;
1435
+ outcome: "completed" | "failed" | "dropped" | "started" | "awaiting_approval" | "rejected";
1436
+ reason: "busy" | "approval_pending" | "budget" | "rate_limited" | "invalid_payload" | "missing_thread_key" | "no_turn" | "no_output" | "invalid_output" | null;
958
1437
  output: unknown;
959
1438
  approvals: {
960
1439
  toolCallId: string;
@@ -998,6 +1477,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
998
1477
  ]>>>;
999
1478
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1000
1479
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1480
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1001
1481
  items: z.ZodOptional<z.ZodObject<{
1002
1482
  type: z.ZodEnum<{
1003
1483
  string: "string";
@@ -1008,6 +1488,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1008
1488
  }>;
1009
1489
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1010
1490
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1491
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1011
1492
  }, z.core.$strict>>;
1012
1493
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1013
1494
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1079,6 +1560,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1079
1560
  ], "kind">>;
1080
1561
  }, z.core.$strict>>>;
1081
1562
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1563
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1082
1564
  }, z.core.$strict>>;
1083
1565
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1084
1566
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -1107,6 +1589,23 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1107
1589
  }>>>;
1108
1590
  name: z.ZodString;
1109
1591
  description: z.ZodString;
1592
+ url: z.ZodURL;
1593
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1594
+ header: z.ZodString;
1595
+ prefix: z.ZodDefault<z.ZodString>;
1596
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1597
+ }, z.core.$strict>>>;
1598
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
1599
+ responseWrap: z.ZodOptional<z.ZodEnum<{
1600
+ value: "value";
1601
+ items: "items";
1602
+ }>>;
1603
+ requestMediaType: z.ZodOptional<z.ZodEnum<{
1604
+ "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
1605
+ "multipart/form-data": "multipart/form-data";
1606
+ }>>;
1607
+ resultPath: z.ZodOptional<z.ZodString>;
1608
+ type: z.ZodLiteral<"http">;
1110
1609
  inputSchema: z.ZodDefault<z.ZodObject<{
1111
1610
  type: z.ZodLiteral<"object">;
1112
1611
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1138,6 +1637,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1138
1637
  ]>>>;
1139
1638
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1140
1639
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1640
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1141
1641
  items: z.ZodOptional<z.ZodObject<{
1142
1642
  type: z.ZodEnum<{
1143
1643
  string: "string";
@@ -1148,6 +1648,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1148
1648
  }>;
1149
1649
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1150
1650
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1651
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1151
1652
  }, z.core.$strict>>;
1152
1653
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1153
1654
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1219,24 +1720,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1219
1720
  ], "kind">>;
1220
1721
  }, z.core.$strict>>>;
1221
1722
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1723
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1222
1724
  }, z.core.$strict>>;
1223
- url: z.ZodURL;
1224
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1225
- header: z.ZodString;
1226
- prefix: z.ZodDefault<z.ZodString>;
1227
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1228
- }, z.core.$strict>>>;
1229
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
1230
- responseWrap: z.ZodOptional<z.ZodEnum<{
1231
- value: "value";
1232
- items: "items";
1233
- }>>;
1234
- requestMediaType: z.ZodOptional<z.ZodEnum<{
1235
- "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
1236
- "multipart/form-data": "multipart/form-data";
1237
- }>>;
1238
- resultPath: z.ZodOptional<z.ZodString>;
1239
- type: z.ZodLiteral<"http">;
1240
1725
  method: z.ZodEnum<{
1241
1726
  DELETE: "DELETE";
1242
1727
  POST: "POST";
@@ -1247,6 +1732,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1247
1732
  readOnly: z.ZodBoolean;
1248
1733
  }, z.core.$strict>,
1249
1734
  z.ZodObject<{
1735
+ name: z.ZodString;
1736
+ description: z.ZodString;
1250
1737
  outputSchema: z.ZodDefault<z.ZodObject<{
1251
1738
  type: z.ZodLiteral<"object">;
1252
1739
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1278,6 +1765,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1278
1765
  ]>>>;
1279
1766
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1280
1767
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1768
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1281
1769
  items: z.ZodOptional<z.ZodObject<{
1282
1770
  type: z.ZodEnum<{
1283
1771
  string: "string";
@@ -1288,6 +1776,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1288
1776
  }>;
1289
1777
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1290
1778
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1779
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1291
1780
  }, z.core.$strict>>;
1292
1781
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1293
1782
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1359,11 +1848,18 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1359
1848
  ], "kind">>;
1360
1849
  }, z.core.$strict>>>;
1361
1850
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1851
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1362
1852
  }, z.core.$strict>>;
1853
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1854
+ header: z.ZodString;
1855
+ prefix: z.ZodDefault<z.ZodString>;
1856
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1857
+ }, z.core.$strict>>>;
1363
1858
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1364
1859
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1365
1860
  rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1366
1861
  rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
1862
+ url: z.ZodURL;
1367
1863
  projectOutput: z.ZodDefault<z.ZodBoolean>;
1368
1864
  pinned: z.ZodDefault<z.ZodBoolean>;
1369
1865
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1385,8 +1881,12 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1385
1881
  pinned: "pinned";
1386
1882
  tags: "tags";
1387
1883
  }>>>;
1388
- name: z.ZodString;
1389
- description: z.ZodString;
1884
+ embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
1885
+ surface: z.ZodEnum<{
1886
+ inline: "inline";
1887
+ modal: "modal";
1888
+ }>;
1889
+ type: z.ZodLiteral<"embedded">;
1390
1890
  inputSchema: z.ZodDefault<z.ZodObject<{
1391
1891
  type: z.ZodLiteral<"object">;
1392
1892
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1418,6 +1918,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1418
1918
  ]>>>;
1419
1919
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1420
1920
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1921
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1421
1922
  items: z.ZodOptional<z.ZodObject<{
1422
1923
  type: z.ZodEnum<{
1423
1924
  string: "string";
@@ -1428,6 +1929,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1428
1929
  }>;
1429
1930
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1430
1931
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1932
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
1933
  }, z.core.$strict>>;
1432
1934
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1433
1935
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1499,20 +2001,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1499
2001
  ], "kind">>;
1500
2002
  }, z.core.$strict>>>;
1501
2003
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2004
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1502
2005
  }, z.core.$strict>>;
1503
- url: z.ZodURL;
1504
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1505
- header: z.ZodString;
1506
- prefix: z.ZodDefault<z.ZodString>;
1507
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1508
- }, z.core.$strict>>>;
1509
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
1510
- embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
1511
- surface: z.ZodEnum<{
1512
- inline: "inline";
1513
- modal: "modal";
1514
- }>;
1515
- type: z.ZodLiteral<"embedded">;
1516
2006
  method: z.ZodEnum<{
1517
2007
  DELETE: "DELETE";
1518
2008
  POST: "POST";
@@ -1553,6 +2043,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1553
2043
  ]>>>;
1554
2044
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1555
2045
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2046
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1556
2047
  items: z.ZodOptional<z.ZodObject<{
1557
2048
  type: z.ZodEnum<{
1558
2049
  string: "string";
@@ -1563,6 +2054,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1563
2054
  }>;
1564
2055
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1565
2056
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2057
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1566
2058
  }, z.core.$strict>>;
1567
2059
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1568
2060
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1634,6 +2126,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1634
2126
  ], "kind">>;
1635
2127
  }, z.core.$strict>>>;
1636
2128
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2129
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1637
2130
  }, z.core.$strict>>;
1638
2131
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1639
2132
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -1662,6 +2155,25 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1662
2155
  }>>>;
1663
2156
  name: z.ZodString;
1664
2157
  description: z.ZodString;
2158
+ url: z.ZodURL;
2159
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
2160
+ header: z.ZodString;
2161
+ prefix: z.ZodDefault<z.ZodString>;
2162
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
2163
+ }, z.core.$strict>>>;
2164
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
2165
+ soapVersion: z.ZodEnum<{
2166
+ 1.1: "1.1";
2167
+ 1.2: "1.2";
2168
+ }>;
2169
+ soapAction: z.ZodString;
2170
+ envelopeTemplate: z.ZodString;
2171
+ tokenCall: z.ZodOptional<z.ZodObject<{
2172
+ envelopeTemplate: z.ZodString;
2173
+ soapAction: z.ZodString;
2174
+ tokenPath: z.ZodString;
2175
+ }, z.core.$strip>>;
2176
+ type: z.ZodLiteral<"soap">;
1665
2177
  inputSchema: z.ZodDefault<z.ZodObject<{
1666
2178
  type: z.ZodLiteral<"object">;
1667
2179
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1693,6 +2205,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1693
2205
  ]>>>;
1694
2206
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1695
2207
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2208
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1696
2209
  items: z.ZodOptional<z.ZodObject<{
1697
2210
  type: z.ZodEnum<{
1698
2211
  string: "string";
@@ -1703,6 +2216,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1703
2216
  }>;
1704
2217
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1705
2218
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2219
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1706
2220
  }, z.core.$strict>>;
1707
2221
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1708
2222
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1774,26 +2288,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1774
2288
  ], "kind">>;
1775
2289
  }, z.core.$strict>>>;
1776
2290
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2291
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1777
2292
  }, z.core.$strict>>;
1778
- url: z.ZodURL;
1779
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
1780
- header: z.ZodString;
1781
- prefix: z.ZodDefault<z.ZodString>;
1782
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
1783
- }, z.core.$strict>>>;
1784
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
1785
- soapVersion: z.ZodEnum<{
1786
- 1.1: "1.1";
1787
- 1.2: "1.2";
1788
- }>;
1789
- soapAction: z.ZodString;
1790
- envelopeTemplate: z.ZodString;
1791
- tokenCall: z.ZodOptional<z.ZodObject<{
1792
- envelopeTemplate: z.ZodString;
1793
- soapAction: z.ZodString;
1794
- tokenPath: z.ZodString;
1795
- }, z.core.$strip>>;
1796
- type: z.ZodLiteral<"soap">;
1797
2293
  readOnly: z.ZodBoolean;
1798
2294
  }, z.core.$strict>,
1799
2295
  z.ZodObject<{
@@ -1828,6 +2324,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1828
2324
  ]>>>;
1829
2325
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1830
2326
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2327
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1831
2328
  items: z.ZodOptional<z.ZodObject<{
1832
2329
  type: z.ZodEnum<{
1833
2330
  string: "string";
@@ -1838,6 +2335,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1838
2335
  }>;
1839
2336
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1840
2337
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2338
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1841
2339
  }, z.core.$strict>>;
1842
2340
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1843
2341
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1909,6 +2407,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1909
2407
  ], "kind">>;
1910
2408
  }, z.core.$strict>>>;
1911
2409
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2410
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1912
2411
  }, z.core.$strict>>;
1913
2412
  outputSchema: z.ZodDefault<z.ZodObject<{
1914
2413
  type: z.ZodLiteral<"object">;
@@ -1941,6 +2440,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1941
2440
  ]>>>;
1942
2441
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1943
2442
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2443
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1944
2444
  items: z.ZodOptional<z.ZodObject<{
1945
2445
  type: z.ZodEnum<{
1946
2446
  string: "string";
@@ -1951,6 +2451,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1951
2451
  }>;
1952
2452
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1953
2453
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2454
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1954
2455
  }, z.core.$strict>>;
1955
2456
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1956
2457
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2022,6 +2523,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2022
2523
  ], "kind">>;
2023
2524
  }, z.core.$strict>>>;
2024
2525
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2526
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2025
2527
  }, z.core.$strict>>;
2026
2528
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2027
2529
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -2132,6 +2634,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2132
2634
  ]>>>;
2133
2635
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2134
2636
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2637
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2135
2638
  items: z.ZodOptional<z.ZodObject<{
2136
2639
  type: z.ZodEnum<{
2137
2640
  string: "string";
@@ -2142,6 +2645,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2142
2645
  }>;
2143
2646
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2144
2647
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2648
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2145
2649
  }, z.core.$strict>>;
2146
2650
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2147
2651
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2213,6 +2717,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2213
2717
  ], "kind">>;
2214
2718
  }, z.core.$strict>>>;
2215
2719
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2720
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2216
2721
  }, z.core.$strict>>;
2217
2722
  outputSchema: z.ZodOptional<z.ZodObject<{
2218
2723
  type: z.ZodLiteral<"object">;
@@ -2245,6 +2750,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2245
2750
  ]>>>;
2246
2751
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2247
2752
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2753
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2248
2754
  items: z.ZodOptional<z.ZodObject<{
2249
2755
  type: z.ZodEnum<{
2250
2756
  string: "string";
@@ -2255,6 +2761,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2255
2761
  }>;
2256
2762
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2257
2763
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2764
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2258
2765
  }, z.core.$strict>>;
2259
2766
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2260
2767
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2326,6 +2833,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2326
2833
  ], "kind">>;
2327
2834
  }, z.core.$strict>>>;
2328
2835
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2836
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2329
2837
  }, z.core.$strict>>;
2330
2838
  instructions: z.ZodString;
2331
2839
  threadPolicy: z.ZodDefault<z.ZodDiscriminatedUnion<[
@@ -2521,9 +3029,9 @@ declare const manifestAgentSchema: z.ZodObject<{
2521
3029
  fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
2522
3030
  locationPicker: z.ZodDefault<z.ZodBoolean>;
2523
3031
  media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2524
- map: "map";
2525
3032
  mermaid: "mermaid";
2526
3033
  "vega-lite": "vega-lite";
3034
+ map: "map";
2527
3035
  report: "report";
2528
3036
  }>>>;
2529
3037
  messageTrigger: z.ZodDefault<z.ZodBoolean>;
@@ -2622,9 +3130,9 @@ declare const manifestSchema: z.ZodObject<{
2622
3130
  fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
2623
3131
  locationPicker: z.ZodDefault<z.ZodBoolean>;
2624
3132
  media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2625
- map: "map";
2626
3133
  mermaid: "mermaid";
2627
3134
  "vega-lite": "vega-lite";
3135
+ map: "map";
2628
3136
  report: "report";
2629
3137
  }>>>;
2630
3138
  messageTrigger: z.ZodDefault<z.ZodBoolean>;
@@ -2700,6 +3208,7 @@ declare const manifestSchema: z.ZodObject<{
2700
3208
  ]>>>;
2701
3209
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2702
3210
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3211
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2703
3212
  items: z.ZodOptional<z.ZodObject<{
2704
3213
  type: z.ZodEnum<{
2705
3214
  string: "string";
@@ -2710,6 +3219,7 @@ declare const manifestSchema: z.ZodObject<{
2710
3219
  }>;
2711
3220
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2712
3221
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3222
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2713
3223
  }, z.core.$strict>>;
2714
3224
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2715
3225
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2781,6 +3291,7 @@ declare const manifestSchema: z.ZodObject<{
2781
3291
  ], "kind">>;
2782
3292
  }, z.core.$strict>>>;
2783
3293
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3294
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2784
3295
  }, z.core.$strict>>;
2785
3296
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2786
3297
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -2809,6 +3320,23 @@ declare const manifestSchema: z.ZodObject<{
2809
3320
  }>>>;
2810
3321
  name: z.ZodString;
2811
3322
  description: z.ZodString;
3323
+ url: z.ZodURL;
3324
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3325
+ header: z.ZodString;
3326
+ prefix: z.ZodDefault<z.ZodString>;
3327
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3328
+ }, z.core.$strict>>>;
3329
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
3330
+ responseWrap: z.ZodOptional<z.ZodEnum<{
3331
+ value: "value";
3332
+ items: "items";
3333
+ }>>;
3334
+ requestMediaType: z.ZodOptional<z.ZodEnum<{
3335
+ "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
3336
+ "multipart/form-data": "multipart/form-data";
3337
+ }>>;
3338
+ resultPath: z.ZodOptional<z.ZodString>;
3339
+ type: z.ZodLiteral<"http">;
2812
3340
  inputSchema: z.ZodDefault<z.ZodObject<{
2813
3341
  type: z.ZodLiteral<"object">;
2814
3342
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2840,6 +3368,7 @@ declare const manifestSchema: z.ZodObject<{
2840
3368
  ]>>>;
2841
3369
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2842
3370
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3371
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2843
3372
  items: z.ZodOptional<z.ZodObject<{
2844
3373
  type: z.ZodEnum<{
2845
3374
  string: "string";
@@ -2850,6 +3379,7 @@ declare const manifestSchema: z.ZodObject<{
2850
3379
  }>;
2851
3380
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2852
3381
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3382
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2853
3383
  }, z.core.$strict>>;
2854
3384
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2855
3385
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2921,24 +3451,8 @@ declare const manifestSchema: z.ZodObject<{
2921
3451
  ], "kind">>;
2922
3452
  }, z.core.$strict>>>;
2923
3453
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3454
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2924
3455
  }, z.core.$strict>>;
2925
- url: z.ZodURL;
2926
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
2927
- header: z.ZodString;
2928
- prefix: z.ZodDefault<z.ZodString>;
2929
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
2930
- }, z.core.$strict>>>;
2931
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
2932
- responseWrap: z.ZodOptional<z.ZodEnum<{
2933
- value: "value";
2934
- items: "items";
2935
- }>>;
2936
- requestMediaType: z.ZodOptional<z.ZodEnum<{
2937
- "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
2938
- "multipart/form-data": "multipart/form-data";
2939
- }>>;
2940
- resultPath: z.ZodOptional<z.ZodString>;
2941
- type: z.ZodLiteral<"http">;
2942
3456
  method: z.ZodEnum<{
2943
3457
  DELETE: "DELETE";
2944
3458
  POST: "POST";
@@ -2949,6 +3463,8 @@ declare const manifestSchema: z.ZodObject<{
2949
3463
  readOnly: z.ZodBoolean;
2950
3464
  }, z.core.$strict>,
2951
3465
  z.ZodObject<{
3466
+ name: z.ZodString;
3467
+ description: z.ZodString;
2952
3468
  outputSchema: z.ZodDefault<z.ZodObject<{
2953
3469
  type: z.ZodLiteral<"object">;
2954
3470
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2980,6 +3496,7 @@ declare const manifestSchema: z.ZodObject<{
2980
3496
  ]>>>;
2981
3497
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2982
3498
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3499
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2983
3500
  items: z.ZodOptional<z.ZodObject<{
2984
3501
  type: z.ZodEnum<{
2985
3502
  string: "string";
@@ -2990,6 +3507,7 @@ declare const manifestSchema: z.ZodObject<{
2990
3507
  }>;
2991
3508
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2992
3509
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3510
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2993
3511
  }, z.core.$strict>>;
2994
3512
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2995
3513
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3061,11 +3579,18 @@ declare const manifestSchema: z.ZodObject<{
3061
3579
  ], "kind">>;
3062
3580
  }, z.core.$strict>>>;
3063
3581
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3582
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3064
3583
  }, z.core.$strict>>;
3584
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3585
+ header: z.ZodString;
3586
+ prefix: z.ZodDefault<z.ZodString>;
3587
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3588
+ }, z.core.$strict>>>;
3065
3589
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3066
3590
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3067
3591
  rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3068
3592
  rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3593
+ url: z.ZodURL;
3069
3594
  projectOutput: z.ZodDefault<z.ZodBoolean>;
3070
3595
  pinned: z.ZodDefault<z.ZodBoolean>;
3071
3596
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3087,8 +3612,12 @@ declare const manifestSchema: z.ZodObject<{
3087
3612
  pinned: "pinned";
3088
3613
  tags: "tags";
3089
3614
  }>>>;
3090
- name: z.ZodString;
3091
- description: z.ZodString;
3615
+ embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
3616
+ surface: z.ZodEnum<{
3617
+ inline: "inline";
3618
+ modal: "modal";
3619
+ }>;
3620
+ type: z.ZodLiteral<"embedded">;
3092
3621
  inputSchema: z.ZodDefault<z.ZodObject<{
3093
3622
  type: z.ZodLiteral<"object">;
3094
3623
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3120,6 +3649,7 @@ declare const manifestSchema: z.ZodObject<{
3120
3649
  ]>>>;
3121
3650
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3122
3651
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3652
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3123
3653
  items: z.ZodOptional<z.ZodObject<{
3124
3654
  type: z.ZodEnum<{
3125
3655
  string: "string";
@@ -3130,6 +3660,7 @@ declare const manifestSchema: z.ZodObject<{
3130
3660
  }>;
3131
3661
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3132
3662
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3663
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3133
3664
  }, z.core.$strict>>;
3134
3665
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3135
3666
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3201,20 +3732,8 @@ declare const manifestSchema: z.ZodObject<{
3201
3732
  ], "kind">>;
3202
3733
  }, z.core.$strict>>>;
3203
3734
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3735
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3204
3736
  }, z.core.$strict>>;
3205
- url: z.ZodURL;
3206
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3207
- header: z.ZodString;
3208
- prefix: z.ZodDefault<z.ZodString>;
3209
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3210
- }, z.core.$strict>>>;
3211
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
3212
- embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
3213
- surface: z.ZodEnum<{
3214
- inline: "inline";
3215
- modal: "modal";
3216
- }>;
3217
- type: z.ZodLiteral<"embedded">;
3218
3737
  method: z.ZodEnum<{
3219
3738
  DELETE: "DELETE";
3220
3739
  POST: "POST";
@@ -3255,6 +3774,7 @@ declare const manifestSchema: z.ZodObject<{
3255
3774
  ]>>>;
3256
3775
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3257
3776
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3777
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3258
3778
  items: z.ZodOptional<z.ZodObject<{
3259
3779
  type: z.ZodEnum<{
3260
3780
  string: "string";
@@ -3265,6 +3785,7 @@ declare const manifestSchema: z.ZodObject<{
3265
3785
  }>;
3266
3786
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3267
3787
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3788
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3268
3789
  }, z.core.$strict>>;
3269
3790
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3270
3791
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3336,6 +3857,7 @@ declare const manifestSchema: z.ZodObject<{
3336
3857
  ], "kind">>;
3337
3858
  }, z.core.$strict>>>;
3338
3859
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3860
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3339
3861
  }, z.core.$strict>>;
3340
3862
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3341
3863
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -3364,6 +3886,25 @@ declare const manifestSchema: z.ZodObject<{
3364
3886
  }>>>;
3365
3887
  name: z.ZodString;
3366
3888
  description: z.ZodString;
3889
+ url: z.ZodURL;
3890
+ credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3891
+ header: z.ZodString;
3892
+ prefix: z.ZodDefault<z.ZodString>;
3893
+ credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3894
+ }, z.core.$strict>>>;
3895
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
3896
+ soapVersion: z.ZodEnum<{
3897
+ 1.1: "1.1";
3898
+ 1.2: "1.2";
3899
+ }>;
3900
+ soapAction: z.ZodString;
3901
+ envelopeTemplate: z.ZodString;
3902
+ tokenCall: z.ZodOptional<z.ZodObject<{
3903
+ envelopeTemplate: z.ZodString;
3904
+ soapAction: z.ZodString;
3905
+ tokenPath: z.ZodString;
3906
+ }, z.core.$strip>>;
3907
+ type: z.ZodLiteral<"soap">;
3367
3908
  inputSchema: z.ZodDefault<z.ZodObject<{
3368
3909
  type: z.ZodLiteral<"object">;
3369
3910
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3395,6 +3936,7 @@ declare const manifestSchema: z.ZodObject<{
3395
3936
  ]>>>;
3396
3937
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3397
3938
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3939
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3398
3940
  items: z.ZodOptional<z.ZodObject<{
3399
3941
  type: z.ZodEnum<{
3400
3942
  string: "string";
@@ -3405,6 +3947,7 @@ declare const manifestSchema: z.ZodObject<{
3405
3947
  }>;
3406
3948
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3407
3949
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3950
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3408
3951
  }, z.core.$strict>>;
3409
3952
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3410
3953
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3476,26 +4019,8 @@ declare const manifestSchema: z.ZodObject<{
3476
4019
  ], "kind">>;
3477
4020
  }, z.core.$strict>>>;
3478
4021
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4022
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3479
4023
  }, z.core.$strict>>;
3480
- url: z.ZodURL;
3481
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3482
- header: z.ZodString;
3483
- prefix: z.ZodDefault<z.ZodString>;
3484
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3485
- }, z.core.$strict>>>;
3486
- requiresApproval: z.ZodDefault<z.ZodBoolean>;
3487
- soapVersion: z.ZodEnum<{
3488
- 1.1: "1.1";
3489
- 1.2: "1.2";
3490
- }>;
3491
- soapAction: z.ZodString;
3492
- envelopeTemplate: z.ZodString;
3493
- tokenCall: z.ZodOptional<z.ZodObject<{
3494
- envelopeTemplate: z.ZodString;
3495
- soapAction: z.ZodString;
3496
- tokenPath: z.ZodString;
3497
- }, z.core.$strip>>;
3498
- type: z.ZodLiteral<"soap">;
3499
4024
  readOnly: z.ZodBoolean;
3500
4025
  }, z.core.$strict>,
3501
4026
  z.ZodObject<{
@@ -3530,6 +4055,7 @@ declare const manifestSchema: z.ZodObject<{
3530
4055
  ]>>>;
3531
4056
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3532
4057
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4058
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3533
4059
  items: z.ZodOptional<z.ZodObject<{
3534
4060
  type: z.ZodEnum<{
3535
4061
  string: "string";
@@ -3540,6 +4066,7 @@ declare const manifestSchema: z.ZodObject<{
3540
4066
  }>;
3541
4067
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3542
4068
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4069
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3543
4070
  }, z.core.$strict>>;
3544
4071
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3545
4072
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3611,6 +4138,7 @@ declare const manifestSchema: z.ZodObject<{
3611
4138
  ], "kind">>;
3612
4139
  }, z.core.$strict>>>;
3613
4140
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4141
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3614
4142
  }, z.core.$strict>>;
3615
4143
  outputSchema: z.ZodDefault<z.ZodObject<{
3616
4144
  type: z.ZodLiteral<"object">;
@@ -3643,6 +4171,7 @@ declare const manifestSchema: z.ZodObject<{
3643
4171
  ]>>>;
3644
4172
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3645
4173
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4174
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3646
4175
  items: z.ZodOptional<z.ZodObject<{
3647
4176
  type: z.ZodEnum<{
3648
4177
  string: "string";
@@ -3653,6 +4182,7 @@ declare const manifestSchema: z.ZodObject<{
3653
4182
  }>;
3654
4183
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3655
4184
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4185
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3656
4186
  }, z.core.$strict>>;
3657
4187
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3658
4188
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3724,6 +4254,7 @@ declare const manifestSchema: z.ZodObject<{
3724
4254
  ], "kind">>;
3725
4255
  }, z.core.$strict>>>;
3726
4256
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4257
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3727
4258
  }, z.core.$strict>>;
3728
4259
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3729
4260
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
@@ -3855,6 +4386,7 @@ declare const manifestSchema: z.ZodObject<{
3855
4386
  ]>>>;
3856
4387
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3857
4388
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4389
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3858
4390
  items: z.ZodOptional<z.ZodObject<{
3859
4391
  type: z.ZodEnum<{
3860
4392
  string: "string";
@@ -3865,6 +4397,7 @@ declare const manifestSchema: z.ZodObject<{
3865
4397
  }>;
3866
4398
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3867
4399
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4400
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3868
4401
  }, z.core.$strict>>;
3869
4402
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3870
4403
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3936,6 +4469,7 @@ declare const manifestSchema: z.ZodObject<{
3936
4469
  ], "kind">>;
3937
4470
  }, z.core.$strict>>>;
3938
4471
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4472
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3939
4473
  }, z.core.$strict>>;
3940
4474
  outputSchema: z.ZodOptional<z.ZodObject<{
3941
4475
  type: z.ZodLiteral<"object">;
@@ -3968,6 +4502,7 @@ declare const manifestSchema: z.ZodObject<{
3968
4502
  ]>>>;
3969
4503
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3970
4504
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4505
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3971
4506
  items: z.ZodOptional<z.ZodObject<{
3972
4507
  type: z.ZodEnum<{
3973
4508
  string: "string";
@@ -3978,6 +4513,7 @@ declare const manifestSchema: z.ZodObject<{
3978
4513
  }>;
3979
4514
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3980
4515
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4516
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3981
4517
  }, z.core.$strict>>;
3982
4518
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3983
4519
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -4049,6 +4585,7 @@ declare const manifestSchema: z.ZodObject<{
4049
4585
  ], "kind">>;
4050
4586
  }, z.core.$strict>>>;
4051
4587
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4588
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
4052
4589
  }, z.core.$strict>>;
4053
4590
  instructions: z.ZodString;
4054
4591
  threadPolicy: z.ZodDefault<z.ZodDiscriminatedUnion<[
@@ -4235,7 +4772,7 @@ export declare function defineManifest(manifest: Manifest): {
4235
4772
  attachmentsEnabled?: boolean | undefined;
4236
4773
  fetchImageHostnames?: string[] | undefined;
4237
4774
  locationPicker?: boolean | undefined;
4238
- media?: ("map" | "mermaid" | "vega-lite" | "report")[] | undefined;
4775
+ media?: ("mermaid" | "vega-lite" | "map" | "report")[] | undefined;
4239
4776
  messageTrigger?: boolean | undefined;
4240
4777
  defaultLocale?: "en" | "ar" | undefined;
4241
4778
  rateLimitRequests?: number | undefined;
@@ -4283,10 +4820,12 @@ export declare function defineManifest(manifest: Manifest): {
4283
4820
  enum?: (string | null)[] | undefined;
4284
4821
  properties?: Record<string, /*elided*/ any> | undefined;
4285
4822
  required?: string[] | undefined;
4823
+ "x-order"?: string[] | undefined;
4286
4824
  items?: {
4287
4825
  type: "string" | "number" | "boolean" | "object" | "integer";
4288
4826
  properties?: Record<string, /*elided*/ any> | undefined;
4289
4827
  required?: string[] | undefined;
4828
+ "x-order"?: string[] | undefined;
4290
4829
  } | undefined;
4291
4830
  "x-sensitive"?: boolean | undefined;
4292
4831
  "x-source"?: {
@@ -4326,6 +4865,7 @@ export declare function defineManifest(manifest: Manifest): {
4326
4865
  } | undefined;
4327
4866
  }> | undefined;
4328
4867
  required?: string[] | undefined;
4868
+ "x-order"?: string[] | undefined;
4329
4869
  } | undefined;
4330
4870
  timeoutMs?: number | undefined;
4331
4871
  maxResponseBytes?: number | undefined;
@@ -4335,6 +4875,15 @@ export declare function defineManifest(manifest: Manifest): {
4335
4875
  pinned?: boolean | undefined;
4336
4876
  tags?: string[] | undefined;
4337
4877
  overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
4878
+ credentials?: {
4879
+ header: string;
4880
+ credential: string | null;
4881
+ prefix?: string | undefined;
4882
+ }[] | undefined;
4883
+ requiresApproval?: boolean | undefined;
4884
+ responseWrap?: "value" | "items" | undefined;
4885
+ requestMediaType?: "application/x-www-form-urlencoded" | "multipart/form-data" | undefined;
4886
+ resultPath?: string | undefined;
4338
4887
  inputSchema?: {
4339
4888
  type: "object";
4340
4889
  properties?: Record<string, {
@@ -4346,10 +4895,12 @@ export declare function defineManifest(manifest: Manifest): {
4346
4895
  enum?: (string | null)[] | undefined;
4347
4896
  properties?: Record<string, /*elided*/ any> | undefined;
4348
4897
  required?: string[] | undefined;
4898
+ "x-order"?: string[] | undefined;
4349
4899
  items?: {
4350
4900
  type: "string" | "number" | "boolean" | "object" | "integer";
4351
4901
  properties?: Record<string, /*elided*/ any> | undefined;
4352
4902
  required?: string[] | undefined;
4903
+ "x-order"?: string[] | undefined;
4353
4904
  } | undefined;
4354
4905
  "x-sensitive"?: boolean | undefined;
4355
4906
  "x-source"?: {
@@ -4389,25 +4940,17 @@ export declare function defineManifest(manifest: Manifest): {
4389
4940
  } | undefined;
4390
4941
  }> | undefined;
4391
4942
  required?: string[] | undefined;
4943
+ "x-order"?: string[] | undefined;
4392
4944
  } | undefined;
4393
- credentials?: {
4394
- header: string;
4395
- credential: string | null;
4396
- prefix?: string | undefined;
4397
- }[] | undefined;
4398
- requiresApproval?: boolean | undefined;
4399
- responseWrap?: "value" | "items" | undefined;
4400
- requestMediaType?: "application/x-www-form-urlencoded" | "multipart/form-data" | undefined;
4401
- resultPath?: string | undefined;
4402
4945
  } | {
4946
+ name: string;
4947
+ description: string;
4948
+ url: string;
4403
4949
  audience: "all" | {
4404
4950
  server: string;
4405
4951
  } | {
4406
4952
  agents: string[];
4407
4953
  };
4408
- name: string;
4409
- description: string;
4410
- url: string;
4411
4954
  embedOrigin: string;
4412
4955
  surface: "inline" | "modal";
4413
4956
  type: "embedded";
@@ -4423,10 +4966,12 @@ export declare function defineManifest(manifest: Manifest): {
4423
4966
  enum?: (string | null)[] | undefined;
4424
4967
  properties?: Record<string, /*elided*/ any> | undefined;
4425
4968
  required?: string[] | undefined;
4969
+ "x-order"?: string[] | undefined;
4426
4970
  items?: {
4427
4971
  type: "string" | "number" | "boolean" | "object" | "integer";
4428
4972
  properties?: Record<string, /*elided*/ any> | undefined;
4429
4973
  required?: string[] | undefined;
4974
+ "x-order"?: string[] | undefined;
4430
4975
  } | undefined;
4431
4976
  "x-sensitive"?: boolean | undefined;
4432
4977
  "x-source"?: {
@@ -4466,7 +5011,13 @@ export declare function defineManifest(manifest: Manifest): {
4466
5011
  } | undefined;
4467
5012
  }> | undefined;
4468
5013
  required?: string[] | undefined;
5014
+ "x-order"?: string[] | undefined;
4469
5015
  } | undefined;
5016
+ credentials?: {
5017
+ header: string;
5018
+ credential: string | null;
5019
+ prefix?: string | undefined;
5020
+ }[] | undefined;
4470
5021
  timeoutMs?: number | undefined;
4471
5022
  maxResponseBytes?: number | undefined;
4472
5023
  rateLimitRequests?: number | undefined;
@@ -4486,10 +5037,12 @@ export declare function defineManifest(manifest: Manifest): {
4486
5037
  enum?: (string | null)[] | undefined;
4487
5038
  properties?: Record<string, /*elided*/ any> | undefined;
4488
5039
  required?: string[] | undefined;
5040
+ "x-order"?: string[] | undefined;
4489
5041
  items?: {
4490
5042
  type: "string" | "number" | "boolean" | "object" | "integer";
4491
5043
  properties?: Record<string, /*elided*/ any> | undefined;
4492
5044
  required?: string[] | undefined;
5045
+ "x-order"?: string[] | undefined;
4493
5046
  } | undefined;
4494
5047
  "x-sensitive"?: boolean | undefined;
4495
5048
  "x-source"?: {
@@ -4529,13 +5082,8 @@ export declare function defineManifest(manifest: Manifest): {
4529
5082
  } | undefined;
4530
5083
  }> | undefined;
4531
5084
  required?: string[] | undefined;
5085
+ "x-order"?: string[] | undefined;
4532
5086
  } | undefined;
4533
- credentials?: {
4534
- header: string;
4535
- credential: string | null;
4536
- prefix?: string | undefined;
4537
- }[] | undefined;
4538
- requiresApproval?: boolean | undefined;
4539
5087
  } | {
4540
5088
  audience: "all" | {
4541
5089
  server: string;
@@ -4561,10 +5109,12 @@ export declare function defineManifest(manifest: Manifest): {
4561
5109
  enum?: (string | null)[] | undefined;
4562
5110
  properties?: Record<string, /*elided*/ any> | undefined;
4563
5111
  required?: string[] | undefined;
5112
+ "x-order"?: string[] | undefined;
4564
5113
  items?: {
4565
5114
  type: "string" | "number" | "boolean" | "object" | "integer";
4566
5115
  properties?: Record<string, /*elided*/ any> | undefined;
4567
5116
  required?: string[] | undefined;
5117
+ "x-order"?: string[] | undefined;
4568
5118
  } | undefined;
4569
5119
  "x-sensitive"?: boolean | undefined;
4570
5120
  "x-source"?: {
@@ -4604,6 +5154,7 @@ export declare function defineManifest(manifest: Manifest): {
4604
5154
  } | undefined;
4605
5155
  }> | undefined;
4606
5156
  required?: string[] | undefined;
5157
+ "x-order"?: string[] | undefined;
4607
5158
  } | undefined;
4608
5159
  timeoutMs?: number | undefined;
4609
5160
  maxResponseBytes?: number | undefined;
@@ -4613,6 +5164,17 @@ export declare function defineManifest(manifest: Manifest): {
4613
5164
  pinned?: boolean | undefined;
4614
5165
  tags?: string[] | undefined;
4615
5166
  overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5167
+ credentials?: {
5168
+ header: string;
5169
+ credential: string | null;
5170
+ prefix?: string | undefined;
5171
+ }[] | undefined;
5172
+ requiresApproval?: boolean | undefined;
5173
+ tokenCall?: {
5174
+ envelopeTemplate: string;
5175
+ soapAction: string;
5176
+ tokenPath: string;
5177
+ } | undefined;
4616
5178
  inputSchema?: {
4617
5179
  type: "object";
4618
5180
  properties?: Record<string, {
@@ -4624,10 +5186,12 @@ export declare function defineManifest(manifest: Manifest): {
4624
5186
  enum?: (string | null)[] | undefined;
4625
5187
  properties?: Record<string, /*elided*/ any> | undefined;
4626
5188
  required?: string[] | undefined;
5189
+ "x-order"?: string[] | undefined;
4627
5190
  items?: {
4628
5191
  type: "string" | "number" | "boolean" | "object" | "integer";
4629
5192
  properties?: Record<string, /*elided*/ any> | undefined;
4630
5193
  required?: string[] | undefined;
5194
+ "x-order"?: string[] | undefined;
4631
5195
  } | undefined;
4632
5196
  "x-sensitive"?: boolean | undefined;
4633
5197
  "x-source"?: {
@@ -4667,17 +5231,7 @@ export declare function defineManifest(manifest: Manifest): {
4667
5231
  } | undefined;
4668
5232
  }> | undefined;
4669
5233
  required?: string[] | undefined;
4670
- } | undefined;
4671
- credentials?: {
4672
- header: string;
4673
- credential: string | null;
4674
- prefix?: string | undefined;
4675
- }[] | undefined;
4676
- requiresApproval?: boolean | undefined;
4677
- tokenCall?: {
4678
- envelopeTemplate: string;
4679
- soapAction: string;
4680
- tokenPath: string;
5234
+ "x-order"?: string[] | undefined;
4681
5235
  } | undefined;
4682
5236
  } | {
4683
5237
  audience: "all" | {
@@ -4699,10 +5253,12 @@ export declare function defineManifest(manifest: Manifest): {
4699
5253
  enum?: (string | null)[] | undefined;
4700
5254
  properties?: Record<string, /*elided*/ any> | undefined;
4701
5255
  required?: string[] | undefined;
5256
+ "x-order"?: string[] | undefined;
4702
5257
  items?: {
4703
5258
  type: "string" | "number" | "boolean" | "object" | "integer";
4704
5259
  properties?: Record<string, /*elided*/ any> | undefined;
4705
5260
  required?: string[] | undefined;
5261
+ "x-order"?: string[] | undefined;
4706
5262
  } | undefined;
4707
5263
  "x-sensitive"?: boolean | undefined;
4708
5264
  "x-source"?: {
@@ -4742,6 +5298,7 @@ export declare function defineManifest(manifest: Manifest): {
4742
5298
  } | undefined;
4743
5299
  }> | undefined;
4744
5300
  required?: string[] | undefined;
5301
+ "x-order"?: string[] | undefined;
4745
5302
  } | undefined;
4746
5303
  outputSchema?: {
4747
5304
  type: "object";
@@ -4754,10 +5311,12 @@ export declare function defineManifest(manifest: Manifest): {
4754
5311
  enum?: (string | null)[] | undefined;
4755
5312
  properties?: Record<string, /*elided*/ any> | undefined;
4756
5313
  required?: string[] | undefined;
5314
+ "x-order"?: string[] | undefined;
4757
5315
  items?: {
4758
5316
  type: "string" | "number" | "boolean" | "object" | "integer";
4759
5317
  properties?: Record<string, /*elided*/ any> | undefined;
4760
5318
  required?: string[] | undefined;
5319
+ "x-order"?: string[] | undefined;
4761
5320
  } | undefined;
4762
5321
  "x-sensitive"?: boolean | undefined;
4763
5322
  "x-source"?: {
@@ -4797,6 +5356,7 @@ export declare function defineManifest(manifest: Manifest): {
4797
5356
  } | undefined;
4798
5357
  }> | undefined;
4799
5358
  required?: string[] | undefined;
5359
+ "x-order"?: string[] | undefined;
4800
5360
  } | undefined;
4801
5361
  timeoutMs?: number | undefined;
4802
5362
  maxResponseBytes?: number | undefined;
@@ -4870,10 +5430,12 @@ export declare function defineManifest(manifest: Manifest): {
4870
5430
  enum?: (string | null)[] | undefined;
4871
5431
  properties?: Record<string, /*elided*/ any> | undefined;
4872
5432
  required?: string[] | undefined;
5433
+ "x-order"?: string[] | undefined;
4873
5434
  items?: {
4874
5435
  type: "string" | "number" | "boolean" | "object" | "integer";
4875
5436
  properties?: Record<string, /*elided*/ any> | undefined;
4876
5437
  required?: string[] | undefined;
5438
+ "x-order"?: string[] | undefined;
4877
5439
  } | undefined;
4878
5440
  "x-sensitive"?: boolean | undefined;
4879
5441
  "x-source"?: {
@@ -4913,6 +5475,7 @@ export declare function defineManifest(manifest: Manifest): {
4913
5475
  } | undefined;
4914
5476
  }> | undefined;
4915
5477
  required?: string[] | undefined;
5478
+ "x-order"?: string[] | undefined;
4916
5479
  } | undefined;
4917
5480
  outputSchema?: {
4918
5481
  type: "object";
@@ -4925,10 +5488,12 @@ export declare function defineManifest(manifest: Manifest): {
4925
5488
  enum?: (string | null)[] | undefined;
4926
5489
  properties?: Record<string, /*elided*/ any> | undefined;
4927
5490
  required?: string[] | undefined;
5491
+ "x-order"?: string[] | undefined;
4928
5492
  items?: {
4929
5493
  type: "string" | "number" | "boolean" | "object" | "integer";
4930
5494
  properties?: Record<string, /*elided*/ any> | undefined;
4931
5495
  required?: string[] | undefined;
5496
+ "x-order"?: string[] | undefined;
4932
5497
  } | undefined;
4933
5498
  "x-sensitive"?: boolean | undefined;
4934
5499
  "x-source"?: {
@@ -4968,6 +5533,7 @@ export declare function defineManifest(manifest: Manifest): {
4968
5533
  } | undefined;
4969
5534
  }> | undefined;
4970
5535
  required?: string[] | undefined;
5536
+ "x-order"?: string[] | undefined;
4971
5537
  } | undefined;
4972
5538
  threadPolicy?: {
4973
5539
  policy: "single";