@m6d/cortex 0.3.0 → 0.5.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,11 +1560,18 @@ 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>;
1085
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1086
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
1567
+ rateLimits: z.ZodPrefault<z.ZodObject<{
1568
+ allUsers: z.ZodPrefault<z.ZodObject<{
1569
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1570
+ }, z.core.$strict>>;
1571
+ perUser: z.ZodPrefault<z.ZodObject<{
1572
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1573
+ }, z.core.$strict>>;
1574
+ }, z.core.$strict>>;
1087
1575
  projectOutput: z.ZodDefault<z.ZodBoolean>;
1088
1576
  pinned: z.ZodDefault<z.ZodBoolean>;
1089
1577
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1096,17 +1584,78 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1096
1584
  agents: z.ZodArray<z.ZodString>;
1097
1585
  }, z.core.$strict>
1098
1586
  ]>;
1587
+ name: z.ZodString;
1588
+ description: z.ZodString;
1589
+ url: z.ZodURL;
1590
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1591
+ header: z.ZodString;
1592
+ prefix: z.ZodDefault<z.ZodString>;
1593
+ from: z.ZodType<{
1594
+ kind: "variable";
1595
+ name: string;
1596
+ } | {
1597
+ kind: "credential";
1598
+ name: string;
1599
+ } | {
1600
+ kind: "constant";
1601
+ value: string;
1602
+ } | {
1603
+ kind: "runToken";
1604
+ }, {
1605
+ kind: "variable";
1606
+ name: string;
1607
+ } | {
1608
+ kind: "credential";
1609
+ name: string;
1610
+ } | {
1611
+ kind: "constant";
1612
+ value: string;
1613
+ } | {
1614
+ kind: "runToken";
1615
+ }, z.core.$ZodTypeInternals<{
1616
+ kind: "variable";
1617
+ name: string;
1618
+ } | {
1619
+ kind: "credential";
1620
+ name: string;
1621
+ } | {
1622
+ kind: "constant";
1623
+ value: string;
1624
+ } | {
1625
+ kind: "runToken";
1626
+ }, {
1627
+ kind: "variable";
1628
+ name: string;
1629
+ } | {
1630
+ kind: "credential";
1631
+ name: string;
1632
+ } | {
1633
+ kind: "constant";
1634
+ value: string;
1635
+ } | {
1636
+ kind: "runToken";
1637
+ }>>;
1638
+ }, z.core.$strict>>>;
1639
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
1099
1640
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1100
1641
  description: "description";
1642
+ headers: "headers";
1101
1643
  timeoutMs: "timeoutMs";
1102
1644
  maxResponseBytes: "maxResponseBytes";
1103
- rateLimitRequests: "rateLimitRequests";
1104
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
1645
+ rateLimits: "rateLimits";
1105
1646
  pinned: "pinned";
1106
1647
  tags: "tags";
1107
1648
  }>>>;
1108
- name: z.ZodString;
1109
- description: z.ZodString;
1649
+ responseWrap: z.ZodOptional<z.ZodEnum<{
1650
+ value: "value";
1651
+ items: "items";
1652
+ }>>;
1653
+ requestMediaType: z.ZodOptional<z.ZodEnum<{
1654
+ "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
1655
+ "multipart/form-data": "multipart/form-data";
1656
+ }>>;
1657
+ resultPath: z.ZodOptional<z.ZodString>;
1658
+ type: z.ZodLiteral<"http">;
1110
1659
  inputSchema: z.ZodDefault<z.ZodObject<{
1111
1660
  type: z.ZodLiteral<"object">;
1112
1661
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1138,6 +1687,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1138
1687
  ]>>>;
1139
1688
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1140
1689
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1690
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1141
1691
  items: z.ZodOptional<z.ZodObject<{
1142
1692
  type: z.ZodEnum<{
1143
1693
  string: "string";
@@ -1148,6 +1698,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1148
1698
  }>;
1149
1699
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1150
1700
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1701
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1151
1702
  }, z.core.$strict>>;
1152
1703
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1153
1704
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1219,24 +1770,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1219
1770
  ], "kind">>;
1220
1771
  }, z.core.$strict>>>;
1221
1772
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1773
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1222
1774
  }, 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
1775
  method: z.ZodEnum<{
1241
1776
  DELETE: "DELETE";
1242
1777
  POST: "POST";
@@ -1247,6 +1782,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1247
1782
  readOnly: z.ZodBoolean;
1248
1783
  }, z.core.$strict>,
1249
1784
  z.ZodObject<{
1785
+ name: z.ZodString;
1786
+ description: z.ZodString;
1250
1787
  outputSchema: z.ZodDefault<z.ZodObject<{
1251
1788
  type: z.ZodLiteral<"object">;
1252
1789
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1278,6 +1815,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1278
1815
  ]>>>;
1279
1816
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1280
1817
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1818
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1281
1819
  items: z.ZodOptional<z.ZodObject<{
1282
1820
  type: z.ZodEnum<{
1283
1821
  string: "string";
@@ -1288,6 +1826,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1288
1826
  }>;
1289
1827
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1290
1828
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1829
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1291
1830
  }, z.core.$strict>>;
1292
1831
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1293
1832
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1359,14 +1898,71 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1359
1898
  ], "kind">>;
1360
1899
  }, z.core.$strict>>>;
1361
1900
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
1901
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1362
1902
  }, z.core.$strict>>;
1903
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1904
+ header: z.ZodString;
1905
+ prefix: z.ZodDefault<z.ZodString>;
1906
+ from: z.ZodType<{
1907
+ kind: "variable";
1908
+ name: string;
1909
+ } | {
1910
+ kind: "credential";
1911
+ name: string;
1912
+ } | {
1913
+ kind: "constant";
1914
+ value: string;
1915
+ } | {
1916
+ kind: "runToken";
1917
+ }, {
1918
+ kind: "variable";
1919
+ name: string;
1920
+ } | {
1921
+ kind: "credential";
1922
+ name: string;
1923
+ } | {
1924
+ kind: "constant";
1925
+ value: string;
1926
+ } | {
1927
+ kind: "runToken";
1928
+ }, z.core.$ZodTypeInternals<{
1929
+ kind: "variable";
1930
+ name: string;
1931
+ } | {
1932
+ kind: "credential";
1933
+ name: string;
1934
+ } | {
1935
+ kind: "constant";
1936
+ value: string;
1937
+ } | {
1938
+ kind: "runToken";
1939
+ }, {
1940
+ kind: "variable";
1941
+ name: string;
1942
+ } | {
1943
+ kind: "credential";
1944
+ name: string;
1945
+ } | {
1946
+ kind: "constant";
1947
+ value: string;
1948
+ } | {
1949
+ kind: "runToken";
1950
+ }>>;
1951
+ }, z.core.$strict>>>;
1363
1952
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1364
1953
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1365
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1366
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
1367
- projectOutput: z.ZodDefault<z.ZodBoolean>;
1954
+ url: z.ZodURL;
1955
+ rateLimits: z.ZodPrefault<z.ZodObject<{
1956
+ allUsers: z.ZodPrefault<z.ZodObject<{
1957
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1958
+ }, z.core.$strict>>;
1959
+ perUser: z.ZodPrefault<z.ZodObject<{
1960
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1961
+ }, z.core.$strict>>;
1962
+ }, z.core.$strict>>;
1368
1963
  pinned: z.ZodDefault<z.ZodBoolean>;
1369
1964
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1965
+ projectOutput: z.ZodDefault<z.ZodBoolean>;
1370
1966
  audience: z.ZodUnion<readonly [
1371
1967
  z.ZodLiteral<"all">,
1372
1968
  z.ZodObject<{
@@ -1378,15 +1974,19 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1378
1974
  ]>;
1379
1975
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1380
1976
  description: "description";
1977
+ headers: "headers";
1381
1978
  timeoutMs: "timeoutMs";
1382
1979
  maxResponseBytes: "maxResponseBytes";
1383
- rateLimitRequests: "rateLimitRequests";
1384
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
1980
+ rateLimits: "rateLimits";
1385
1981
  pinned: "pinned";
1386
1982
  tags: "tags";
1387
1983
  }>>>;
1388
- name: z.ZodString;
1389
- description: z.ZodString;
1984
+ embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
1985
+ surface: z.ZodEnum<{
1986
+ inline: "inline";
1987
+ modal: "modal";
1988
+ }>;
1989
+ type: z.ZodLiteral<"embedded">;
1390
1990
  inputSchema: z.ZodDefault<z.ZodObject<{
1391
1991
  type: z.ZodLiteral<"object">;
1392
1992
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1418,6 +2018,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1418
2018
  ]>>>;
1419
2019
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1420
2020
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2021
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1421
2022
  items: z.ZodOptional<z.ZodObject<{
1422
2023
  type: z.ZodEnum<{
1423
2024
  string: "string";
@@ -1428,6 +2029,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1428
2029
  }>;
1429
2030
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1430
2031
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2032
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
2033
  }, z.core.$strict>>;
1432
2034
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1433
2035
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1499,20 +2101,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1499
2101
  ], "kind">>;
1500
2102
  }, z.core.$strict>>>;
1501
2103
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2104
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1502
2105
  }, 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
2106
  method: z.ZodEnum<{
1517
2107
  DELETE: "DELETE";
1518
2108
  POST: "POST";
@@ -1553,6 +2143,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1553
2143
  ]>>>;
1554
2144
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1555
2145
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2146
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1556
2147
  items: z.ZodOptional<z.ZodObject<{
1557
2148
  type: z.ZodEnum<{
1558
2149
  string: "string";
@@ -1563,6 +2154,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1563
2154
  }>;
1564
2155
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1565
2156
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2157
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1566
2158
  }, z.core.$strict>>;
1567
2159
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1568
2160
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1634,11 +2226,18 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1634
2226
  ], "kind">>;
1635
2227
  }, z.core.$strict>>>;
1636
2228
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2229
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1637
2230
  }, z.core.$strict>>;
1638
2231
  timeoutMs: z.ZodDefault<z.ZodNumber>;
1639
2232
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
1640
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
1641
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2233
+ rateLimits: z.ZodPrefault<z.ZodObject<{
2234
+ allUsers: z.ZodPrefault<z.ZodObject<{
2235
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2236
+ }, z.core.$strict>>;
2237
+ perUser: z.ZodPrefault<z.ZodObject<{
2238
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2239
+ }, z.core.$strict>>;
2240
+ }, z.core.$strict>>;
1642
2241
  projectOutput: z.ZodDefault<z.ZodBoolean>;
1643
2242
  pinned: z.ZodDefault<z.ZodBoolean>;
1644
2243
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1651,17 +2250,80 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1651
2250
  agents: z.ZodArray<z.ZodString>;
1652
2251
  }, z.core.$strict>
1653
2252
  ]>;
2253
+ name: z.ZodString;
2254
+ description: z.ZodString;
2255
+ url: z.ZodURL;
2256
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2257
+ header: z.ZodString;
2258
+ prefix: z.ZodDefault<z.ZodString>;
2259
+ from: z.ZodType<{
2260
+ kind: "variable";
2261
+ name: string;
2262
+ } | {
2263
+ kind: "credential";
2264
+ name: string;
2265
+ } | {
2266
+ kind: "constant";
2267
+ value: string;
2268
+ } | {
2269
+ kind: "runToken";
2270
+ }, {
2271
+ kind: "variable";
2272
+ name: string;
2273
+ } | {
2274
+ kind: "credential";
2275
+ name: string;
2276
+ } | {
2277
+ kind: "constant";
2278
+ value: string;
2279
+ } | {
2280
+ kind: "runToken";
2281
+ }, z.core.$ZodTypeInternals<{
2282
+ kind: "variable";
2283
+ name: string;
2284
+ } | {
2285
+ kind: "credential";
2286
+ name: string;
2287
+ } | {
2288
+ kind: "constant";
2289
+ value: string;
2290
+ } | {
2291
+ kind: "runToken";
2292
+ }, {
2293
+ kind: "variable";
2294
+ name: string;
2295
+ } | {
2296
+ kind: "credential";
2297
+ name: string;
2298
+ } | {
2299
+ kind: "constant";
2300
+ value: string;
2301
+ } | {
2302
+ kind: "runToken";
2303
+ }>>;
2304
+ }, z.core.$strict>>>;
2305
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
1654
2306
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1655
2307
  description: "description";
2308
+ headers: "headers";
1656
2309
  timeoutMs: "timeoutMs";
1657
2310
  maxResponseBytes: "maxResponseBytes";
1658
- rateLimitRequests: "rateLimitRequests";
1659
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
2311
+ rateLimits: "rateLimits";
1660
2312
  pinned: "pinned";
1661
2313
  tags: "tags";
1662
2314
  }>>>;
1663
- name: z.ZodString;
1664
- description: z.ZodString;
2315
+ soapVersion: z.ZodEnum<{
2316
+ 1.1: "1.1";
2317
+ 1.2: "1.2";
2318
+ }>;
2319
+ soapAction: z.ZodString;
2320
+ envelopeTemplate: z.ZodString;
2321
+ tokenCall: z.ZodOptional<z.ZodObject<{
2322
+ envelopeTemplate: z.ZodString;
2323
+ soapAction: z.ZodString;
2324
+ tokenPath: z.ZodString;
2325
+ }, z.core.$strip>>;
2326
+ type: z.ZodLiteral<"soap">;
1665
2327
  inputSchema: z.ZodDefault<z.ZodObject<{
1666
2328
  type: z.ZodLiteral<"object">;
1667
2329
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1693,6 +2355,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1693
2355
  ]>>>;
1694
2356
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1695
2357
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2358
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1696
2359
  items: z.ZodOptional<z.ZodObject<{
1697
2360
  type: z.ZodEnum<{
1698
2361
  string: "string";
@@ -1703,6 +2366,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1703
2366
  }>;
1704
2367
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1705
2368
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2369
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1706
2370
  }, z.core.$strict>>;
1707
2371
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1708
2372
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1774,26 +2438,8 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1774
2438
  ], "kind">>;
1775
2439
  }, z.core.$strict>>>;
1776
2440
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2441
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1777
2442
  }, 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
2443
  readOnly: z.ZodBoolean;
1798
2444
  }, z.core.$strict>,
1799
2445
  z.ZodObject<{
@@ -1828,6 +2474,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1828
2474
  ]>>>;
1829
2475
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1830
2476
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2477
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1831
2478
  items: z.ZodOptional<z.ZodObject<{
1832
2479
  type: z.ZodEnum<{
1833
2480
  string: "string";
@@ -1838,6 +2485,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1838
2485
  }>;
1839
2486
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1840
2487
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2488
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1841
2489
  }, z.core.$strict>>;
1842
2490
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1843
2491
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -1909,6 +2557,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1909
2557
  ], "kind">>;
1910
2558
  }, z.core.$strict>>>;
1911
2559
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2560
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1912
2561
  }, z.core.$strict>>;
1913
2562
  outputSchema: z.ZodDefault<z.ZodObject<{
1914
2563
  type: z.ZodLiteral<"object">;
@@ -1941,6 +2590,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1941
2590
  ]>>>;
1942
2591
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1943
2592
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2593
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1944
2594
  items: z.ZodOptional<z.ZodObject<{
1945
2595
  type: z.ZodEnum<{
1946
2596
  string: "string";
@@ -1951,6 +2601,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
1951
2601
  }>;
1952
2602
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
1953
2603
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2604
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
1954
2605
  }, z.core.$strict>>;
1955
2606
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
1956
2607
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2022,11 +2673,18 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2022
2673
  ], "kind">>;
2023
2674
  }, z.core.$strict>>>;
2024
2675
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2676
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2025
2677
  }, z.core.$strict>>;
2026
2678
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2027
2679
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2028
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2029
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2680
+ rateLimits: z.ZodPrefault<z.ZodObject<{
2681
+ allUsers: z.ZodPrefault<z.ZodObject<{
2682
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2683
+ }, z.core.$strict>>;
2684
+ perUser: z.ZodPrefault<z.ZodObject<{
2685
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2686
+ }, z.core.$strict>>;
2687
+ }, z.core.$strict>>;
2030
2688
  projectOutput: z.ZodDefault<z.ZodBoolean>;
2031
2689
  pinned: z.ZodDefault<z.ZodBoolean>;
2032
2690
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2043,8 +2701,7 @@ declare const manifestToolSchema: z.ZodDiscriminatedUnion<[
2043
2701
  description: "description";
2044
2702
  timeoutMs: "timeoutMs";
2045
2703
  maxResponseBytes: "maxResponseBytes";
2046
- rateLimitRequests: "rateLimitRequests";
2047
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
2704
+ rateLimits: "rateLimits";
2048
2705
  pinned: "pinned";
2049
2706
  tags: "tags";
2050
2707
  }>>>;
@@ -2132,6 +2789,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2132
2789
  ]>>>;
2133
2790
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2134
2791
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2792
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2135
2793
  items: z.ZodOptional<z.ZodObject<{
2136
2794
  type: z.ZodEnum<{
2137
2795
  string: "string";
@@ -2142,6 +2800,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2142
2800
  }>;
2143
2801
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2144
2802
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2803
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2145
2804
  }, z.core.$strict>>;
2146
2805
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2147
2806
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2213,6 +2872,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2213
2872
  ], "kind">>;
2214
2873
  }, z.core.$strict>>>;
2215
2874
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2875
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2216
2876
  }, z.core.$strict>>;
2217
2877
  outputSchema: z.ZodOptional<z.ZodObject<{
2218
2878
  type: z.ZodLiteral<"object">;
@@ -2245,6 +2905,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2245
2905
  ]>>>;
2246
2906
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2247
2907
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2908
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2248
2909
  items: z.ZodOptional<z.ZodObject<{
2249
2910
  type: z.ZodEnum<{
2250
2911
  string: "string";
@@ -2255,6 +2916,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2255
2916
  }>;
2256
2917
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2257
2918
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2919
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2258
2920
  }, z.core.$strict>>;
2259
2921
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2260
2922
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2326,6 +2988,7 @@ declare const manifestTriggerSchema: z.ZodObject<{
2326
2988
  ], "kind">>;
2327
2989
  }, z.core.$strict>>>;
2328
2990
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
2991
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2329
2992
  }, z.core.$strict>>;
2330
2993
  instructions: z.ZodString;
2331
2994
  threadPolicy: z.ZodDefault<z.ZodDiscriminatedUnion<[
@@ -2374,12 +3037,64 @@ export type ManifestTrigger = z.input<typeof manifestTriggerSchema>;
2374
3037
  declare const manifestDatasetHostSchema: z.ZodObject<{
2375
3038
  name: z.ZodString;
2376
3039
  url: z.ZodURL;
2377
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3040
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2378
3041
  header: z.ZodString;
2379
3042
  prefix: z.ZodDefault<z.ZodString>;
2380
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3043
+ from: z.ZodType<{
3044
+ kind: "variable";
3045
+ name: string;
3046
+ } | {
3047
+ kind: "credential";
3048
+ name: string;
3049
+ } | {
3050
+ kind: "constant";
3051
+ value: string;
3052
+ } | {
3053
+ kind: "runToken";
3054
+ }, {
3055
+ kind: "variable";
3056
+ name: string;
3057
+ } | {
3058
+ kind: "credential";
3059
+ name: string;
3060
+ } | {
3061
+ kind: "constant";
3062
+ value: string;
3063
+ } | {
3064
+ kind: "runToken";
3065
+ }, z.core.$ZodTypeInternals<{
3066
+ kind: "variable";
3067
+ name: string;
3068
+ } | {
3069
+ kind: "credential";
3070
+ name: string;
3071
+ } | {
3072
+ kind: "constant";
3073
+ value: string;
3074
+ } | {
3075
+ kind: "runToken";
3076
+ }, {
3077
+ kind: "variable";
3078
+ name: string;
3079
+ } | {
3080
+ kind: "credential";
3081
+ name: string;
3082
+ } | {
3083
+ kind: "constant";
3084
+ value: string;
3085
+ } | {
3086
+ kind: "runToken";
3087
+ }>>;
2381
3088
  }, z.core.$strict>>>;
2382
3089
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3090
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3091
+ allUsers: z.ZodPrefault<z.ZodObject<{
3092
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3093
+ }, z.core.$strict>>;
3094
+ perUser: z.ZodPrefault<z.ZodObject<{
3095
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3096
+ }, z.core.$strict>>;
3097
+ }, z.core.$strict>>;
2383
3098
  expose: z.ZodArray<z.ZodString>;
2384
3099
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
2385
3100
  audience: z.ZodUnion<readonly [
@@ -2392,17 +3107,63 @@ declare const manifestDatasetHostSchema: z.ZodObject<{
2392
3107
  }, z.core.$strict>
2393
3108
  ]>;
2394
3109
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3110
+ headers: "headers";
2395
3111
  timeoutMs: "timeoutMs";
3112
+ rateLimits: "rateLimits";
2396
3113
  }>>>;
2397
3114
  }, z.core.$strict>;
2398
3115
  export type ManifestDatasetHost = z.input<typeof manifestDatasetHostSchema>;
2399
3116
  declare const manifestMcpServerSchema: z.ZodObject<{
2400
3117
  name: z.ZodString;
2401
3118
  url: z.ZodURL;
2402
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3119
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2403
3120
  header: z.ZodString;
2404
3121
  prefix: z.ZodDefault<z.ZodString>;
2405
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
3122
+ from: z.ZodType<{
3123
+ kind: "variable";
3124
+ name: string;
3125
+ } | {
3126
+ kind: "credential";
3127
+ name: string;
3128
+ } | {
3129
+ kind: "constant";
3130
+ value: string;
3131
+ } | {
3132
+ kind: "runToken";
3133
+ }, {
3134
+ kind: "variable";
3135
+ name: string;
3136
+ } | {
3137
+ kind: "credential";
3138
+ name: string;
3139
+ } | {
3140
+ kind: "constant";
3141
+ value: string;
3142
+ } | {
3143
+ kind: "runToken";
3144
+ }, z.core.$ZodTypeInternals<{
3145
+ kind: "variable";
3146
+ name: string;
3147
+ } | {
3148
+ kind: "credential";
3149
+ name: string;
3150
+ } | {
3151
+ kind: "constant";
3152
+ value: string;
3153
+ } | {
3154
+ kind: "runToken";
3155
+ }, {
3156
+ kind: "variable";
3157
+ name: string;
3158
+ } | {
3159
+ kind: "credential";
3160
+ name: string;
3161
+ } | {
3162
+ kind: "constant";
3163
+ value: string;
3164
+ } | {
3165
+ kind: "runToken";
3166
+ }>>;
2406
3167
  }, z.core.$strict>>>;
2407
3168
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
2408
3169
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2416,6 +3177,7 @@ declare const manifestMcpServerSchema: z.ZodObject<{
2416
3177
  }, z.core.$strict>
2417
3178
  ]>;
2418
3179
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3180
+ headers: "headers";
2419
3181
  include: "include";
2420
3182
  exclude: "exclude";
2421
3183
  }>>>;
@@ -2428,10 +3190,34 @@ declare const manifestWebhookSchema: z.ZodObject<{
2428
3190
  approval_requested: "approval_requested";
2429
3191
  }>;
2430
3192
  url: z.ZodURL;
2431
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
3193
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
2432
3194
  header: z.ZodString;
2433
3195
  prefix: z.ZodDefault<z.ZodString>;
2434
- credential: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
3196
+ from: z.ZodType<{
3197
+ kind: "credential";
3198
+ name: string;
3199
+ } | {
3200
+ kind: "constant";
3201
+ value: string;
3202
+ }, {
3203
+ kind: "credential";
3204
+ name: string;
3205
+ } | {
3206
+ kind: "constant";
3207
+ value: string;
3208
+ }, z.core.$ZodTypeInternals<{
3209
+ kind: "credential";
3210
+ name: string;
3211
+ } | {
3212
+ kind: "constant";
3213
+ value: string;
3214
+ }, {
3215
+ kind: "credential";
3216
+ name: string;
3217
+ } | {
3218
+ kind: "constant";
3219
+ value: string;
3220
+ }>>;
2435
3221
  }, z.core.$strict>>>;
2436
3222
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2437
3223
  audience: z.ZodUnion<readonly [
@@ -2445,6 +3231,7 @@ declare const manifestWebhookSchema: z.ZodObject<{
2445
3231
  ]>;
2446
3232
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2447
3233
  description: "description";
3234
+ headers: "headers";
2448
3235
  timeoutMs: "timeoutMs";
2449
3236
  }>>>;
2450
3237
  }, z.core.$strict>;
@@ -2493,6 +3280,12 @@ declare const manifestAgentSchema: z.ZodObject<{
2493
3280
  }, z.core.$strict>,
2494
3281
  z.ZodObject<{
2495
3282
  kind: z.ZodLiteral<"anonymous">;
3283
+ recaptcha: z.ZodOptional<z.ZodObject<{
3284
+ siteKey: z.ZodString;
3285
+ projectId: z.ZodString;
3286
+ secret: z.ZodString;
3287
+ minScore: z.ZodDefault<z.ZodNumber>;
3288
+ }, z.core.$strict>>;
2496
3289
  }, z.core.$strict>,
2497
3290
  z.ZodObject<{
2498
3291
  kind: z.ZodLiteral<"server">;
@@ -2521,9 +3314,9 @@ declare const manifestAgentSchema: z.ZodObject<{
2521
3314
  fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
2522
3315
  locationPicker: z.ZodDefault<z.ZodBoolean>;
2523
3316
  media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2524
- map: "map";
2525
3317
  mermaid: "mermaid";
2526
3318
  "vega-lite": "vega-lite";
3319
+ map: "map";
2527
3320
  report: "report";
2528
3321
  }>>>;
2529
3322
  messageTrigger: z.ZodDefault<z.ZodBoolean>;
@@ -2531,9 +3324,16 @@ declare const manifestAgentSchema: z.ZodObject<{
2531
3324
  en: "en";
2532
3325
  ar: "ar";
2533
3326
  }>>;
2534
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2535
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2536
- dailyExecutionQuota: z.ZodDefault<z.ZodNumber>;
3327
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3328
+ allUsers: z.ZodPrefault<z.ZodObject<{
3329
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3330
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3331
+ }, z.core.$strict>>;
3332
+ perUser: z.ZodPrefault<z.ZodObject<{
3333
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3334
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3335
+ }, z.core.$strict>>;
3336
+ }, z.core.$strict>>;
2537
3337
  context: z.ZodPrefault<z.ZodObject<{
2538
3338
  maxContextTokens: z.ZodDefault<z.ZodNumber>;
2539
3339
  summarizationThreshold: z.ZodDefault<z.ZodNumber>;
@@ -2594,6 +3394,12 @@ declare const manifestSchema: z.ZodObject<{
2594
3394
  }, z.core.$strict>,
2595
3395
  z.ZodObject<{
2596
3396
  kind: z.ZodLiteral<"anonymous">;
3397
+ recaptcha: z.ZodOptional<z.ZodObject<{
3398
+ siteKey: z.ZodString;
3399
+ projectId: z.ZodString;
3400
+ secret: z.ZodString;
3401
+ minScore: z.ZodDefault<z.ZodNumber>;
3402
+ }, z.core.$strict>>;
2597
3403
  }, z.core.$strict>,
2598
3404
  z.ZodObject<{
2599
3405
  kind: z.ZodLiteral<"server">;
@@ -2622,9 +3428,9 @@ declare const manifestSchema: z.ZodObject<{
2622
3428
  fetchImageHostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
2623
3429
  locationPicker: z.ZodDefault<z.ZodBoolean>;
2624
3430
  media: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2625
- map: "map";
2626
3431
  mermaid: "mermaid";
2627
3432
  "vega-lite": "vega-lite";
3433
+ map: "map";
2628
3434
  report: "report";
2629
3435
  }>>>;
2630
3436
  messageTrigger: z.ZodDefault<z.ZodBoolean>;
@@ -2632,9 +3438,16 @@ declare const manifestSchema: z.ZodObject<{
2632
3438
  en: "en";
2633
3439
  ar: "ar";
2634
3440
  }>>;
2635
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2636
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
2637
- dailyExecutionQuota: z.ZodDefault<z.ZodNumber>;
3441
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3442
+ allUsers: z.ZodPrefault<z.ZodObject<{
3443
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3444
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3445
+ }, z.core.$strict>>;
3446
+ perUser: z.ZodPrefault<z.ZodObject<{
3447
+ messagesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3448
+ tokensPerDay: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3449
+ }, z.core.$strict>>;
3450
+ }, z.core.$strict>>;
2638
3451
  context: z.ZodPrefault<z.ZodObject<{
2639
3452
  maxContextTokens: z.ZodDefault<z.ZodNumber>;
2640
3453
  summarizationThreshold: z.ZodDefault<z.ZodNumber>;
@@ -2700,6 +3513,7 @@ declare const manifestSchema: z.ZodObject<{
2700
3513
  ]>>>;
2701
3514
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2702
3515
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3516
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2703
3517
  items: z.ZodOptional<z.ZodObject<{
2704
3518
  type: z.ZodEnum<{
2705
3519
  string: "string";
@@ -2710,6 +3524,7 @@ declare const manifestSchema: z.ZodObject<{
2710
3524
  }>;
2711
3525
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2712
3526
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3527
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2713
3528
  }, z.core.$strict>>;
2714
3529
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2715
3530
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2781,11 +3596,18 @@ declare const manifestSchema: z.ZodObject<{
2781
3596
  ], "kind">>;
2782
3597
  }, z.core.$strict>>>;
2783
3598
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3599
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2784
3600
  }, z.core.$strict>>;
2785
3601
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2786
3602
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
2787
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
2788
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3603
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3604
+ allUsers: z.ZodPrefault<z.ZodObject<{
3605
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3606
+ }, z.core.$strict>>;
3607
+ perUser: z.ZodPrefault<z.ZodObject<{
3608
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3609
+ }, z.core.$strict>>;
3610
+ }, z.core.$strict>>;
2789
3611
  projectOutput: z.ZodDefault<z.ZodBoolean>;
2790
3612
  pinned: z.ZodDefault<z.ZodBoolean>;
2791
3613
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -2798,17 +3620,78 @@ declare const manifestSchema: z.ZodObject<{
2798
3620
  agents: z.ZodArray<z.ZodString>;
2799
3621
  }, z.core.$strict>
2800
3622
  ]>;
3623
+ name: z.ZodString;
3624
+ description: z.ZodString;
3625
+ url: z.ZodURL;
3626
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3627
+ header: z.ZodString;
3628
+ prefix: z.ZodDefault<z.ZodString>;
3629
+ from: z.ZodType<{
3630
+ kind: "variable";
3631
+ name: string;
3632
+ } | {
3633
+ kind: "credential";
3634
+ name: string;
3635
+ } | {
3636
+ kind: "constant";
3637
+ value: string;
3638
+ } | {
3639
+ kind: "runToken";
3640
+ }, {
3641
+ kind: "variable";
3642
+ name: string;
3643
+ } | {
3644
+ kind: "credential";
3645
+ name: string;
3646
+ } | {
3647
+ kind: "constant";
3648
+ value: string;
3649
+ } | {
3650
+ kind: "runToken";
3651
+ }, z.core.$ZodTypeInternals<{
3652
+ kind: "variable";
3653
+ name: string;
3654
+ } | {
3655
+ kind: "credential";
3656
+ name: string;
3657
+ } | {
3658
+ kind: "constant";
3659
+ value: string;
3660
+ } | {
3661
+ kind: "runToken";
3662
+ }, {
3663
+ kind: "variable";
3664
+ name: string;
3665
+ } | {
3666
+ kind: "credential";
3667
+ name: string;
3668
+ } | {
3669
+ kind: "constant";
3670
+ value: string;
3671
+ } | {
3672
+ kind: "runToken";
3673
+ }>>;
3674
+ }, z.core.$strict>>>;
3675
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
2801
3676
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2802
3677
  description: "description";
3678
+ headers: "headers";
2803
3679
  timeoutMs: "timeoutMs";
2804
3680
  maxResponseBytes: "maxResponseBytes";
2805
- rateLimitRequests: "rateLimitRequests";
2806
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
3681
+ rateLimits: "rateLimits";
2807
3682
  pinned: "pinned";
2808
3683
  tags: "tags";
2809
3684
  }>>>;
2810
- name: z.ZodString;
2811
- description: z.ZodString;
3685
+ responseWrap: z.ZodOptional<z.ZodEnum<{
3686
+ value: "value";
3687
+ items: "items";
3688
+ }>>;
3689
+ requestMediaType: z.ZodOptional<z.ZodEnum<{
3690
+ "application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
3691
+ "multipart/form-data": "multipart/form-data";
3692
+ }>>;
3693
+ resultPath: z.ZodOptional<z.ZodString>;
3694
+ type: z.ZodLiteral<"http">;
2812
3695
  inputSchema: z.ZodDefault<z.ZodObject<{
2813
3696
  type: z.ZodLiteral<"object">;
2814
3697
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2840,6 +3723,7 @@ declare const manifestSchema: z.ZodObject<{
2840
3723
  ]>>>;
2841
3724
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2842
3725
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3726
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2843
3727
  items: z.ZodOptional<z.ZodObject<{
2844
3728
  type: z.ZodEnum<{
2845
3729
  string: "string";
@@ -2850,6 +3734,7 @@ declare const manifestSchema: z.ZodObject<{
2850
3734
  }>;
2851
3735
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2852
3736
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3737
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2853
3738
  }, z.core.$strict>>;
2854
3739
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2855
3740
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -2921,24 +3806,8 @@ declare const manifestSchema: z.ZodObject<{
2921
3806
  ], "kind">>;
2922
3807
  }, z.core.$strict>>>;
2923
3808
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3809
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2924
3810
  }, 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
3811
  method: z.ZodEnum<{
2943
3812
  DELETE: "DELETE";
2944
3813
  POST: "POST";
@@ -2949,6 +3818,8 @@ declare const manifestSchema: z.ZodObject<{
2949
3818
  readOnly: z.ZodBoolean;
2950
3819
  }, z.core.$strict>,
2951
3820
  z.ZodObject<{
3821
+ name: z.ZodString;
3822
+ description: z.ZodString;
2952
3823
  outputSchema: z.ZodDefault<z.ZodObject<{
2953
3824
  type: z.ZodLiteral<"object">;
2954
3825
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -2980,6 +3851,7 @@ declare const manifestSchema: z.ZodObject<{
2980
3851
  ]>>>;
2981
3852
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2982
3853
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3854
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2983
3855
  items: z.ZodOptional<z.ZodObject<{
2984
3856
  type: z.ZodEnum<{
2985
3857
  string: "string";
@@ -2990,6 +3862,7 @@ declare const manifestSchema: z.ZodObject<{
2990
3862
  }>;
2991
3863
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
2992
3864
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3865
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
2993
3866
  }, z.core.$strict>>;
2994
3867
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
2995
3868
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3061,14 +3934,71 @@ declare const manifestSchema: z.ZodObject<{
3061
3934
  ], "kind">>;
3062
3935
  }, z.core.$strict>>>;
3063
3936
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
3937
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3064
3938
  }, z.core.$strict>>;
3939
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3940
+ header: z.ZodString;
3941
+ prefix: z.ZodDefault<z.ZodString>;
3942
+ from: z.ZodType<{
3943
+ kind: "variable";
3944
+ name: string;
3945
+ } | {
3946
+ kind: "credential";
3947
+ name: string;
3948
+ } | {
3949
+ kind: "constant";
3950
+ value: string;
3951
+ } | {
3952
+ kind: "runToken";
3953
+ }, {
3954
+ kind: "variable";
3955
+ name: string;
3956
+ } | {
3957
+ kind: "credential";
3958
+ name: string;
3959
+ } | {
3960
+ kind: "constant";
3961
+ value: string;
3962
+ } | {
3963
+ kind: "runToken";
3964
+ }, z.core.$ZodTypeInternals<{
3965
+ kind: "variable";
3966
+ name: string;
3967
+ } | {
3968
+ kind: "credential";
3969
+ name: string;
3970
+ } | {
3971
+ kind: "constant";
3972
+ value: string;
3973
+ } | {
3974
+ kind: "runToken";
3975
+ }, {
3976
+ kind: "variable";
3977
+ name: string;
3978
+ } | {
3979
+ kind: "credential";
3980
+ name: string;
3981
+ } | {
3982
+ kind: "constant";
3983
+ value: string;
3984
+ } | {
3985
+ kind: "runToken";
3986
+ }>>;
3987
+ }, z.core.$strict>>>;
3065
3988
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3066
3989
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3067
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3068
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
3069
- projectOutput: z.ZodDefault<z.ZodBoolean>;
3990
+ url: z.ZodURL;
3991
+ rateLimits: z.ZodPrefault<z.ZodObject<{
3992
+ allUsers: z.ZodPrefault<z.ZodObject<{
3993
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3994
+ }, z.core.$strict>>;
3995
+ perUser: z.ZodPrefault<z.ZodObject<{
3996
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3997
+ }, z.core.$strict>>;
3998
+ }, z.core.$strict>>;
3070
3999
  pinned: z.ZodDefault<z.ZodBoolean>;
3071
4000
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
4001
+ projectOutput: z.ZodDefault<z.ZodBoolean>;
3072
4002
  audience: z.ZodUnion<readonly [
3073
4003
  z.ZodLiteral<"all">,
3074
4004
  z.ZodObject<{
@@ -3080,15 +4010,19 @@ declare const manifestSchema: z.ZodObject<{
3080
4010
  ]>;
3081
4011
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3082
4012
  description: "description";
4013
+ headers: "headers";
3083
4014
  timeoutMs: "timeoutMs";
3084
4015
  maxResponseBytes: "maxResponseBytes";
3085
- rateLimitRequests: "rateLimitRequests";
3086
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
4016
+ rateLimits: "rateLimits";
3087
4017
  pinned: "pinned";
3088
4018
  tags: "tags";
3089
4019
  }>>>;
3090
- name: z.ZodString;
3091
- description: z.ZodString;
4020
+ embedOrigin: z.ZodPipe<z.ZodURL, z.ZodTransform<string, string>>;
4021
+ surface: z.ZodEnum<{
4022
+ inline: "inline";
4023
+ modal: "modal";
4024
+ }>;
4025
+ type: z.ZodLiteral<"embedded">;
3092
4026
  inputSchema: z.ZodDefault<z.ZodObject<{
3093
4027
  type: z.ZodLiteral<"object">;
3094
4028
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3120,6 +4054,7 @@ declare const manifestSchema: z.ZodObject<{
3120
4054
  ]>>>;
3121
4055
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3122
4056
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4057
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3123
4058
  items: z.ZodOptional<z.ZodObject<{
3124
4059
  type: z.ZodEnum<{
3125
4060
  string: "string";
@@ -3130,6 +4065,7 @@ declare const manifestSchema: z.ZodObject<{
3130
4065
  }>;
3131
4066
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3132
4067
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4068
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3133
4069
  }, z.core.$strict>>;
3134
4070
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3135
4071
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3201,20 +4137,8 @@ declare const manifestSchema: z.ZodObject<{
3201
4137
  ], "kind">>;
3202
4138
  }, z.core.$strict>>>;
3203
4139
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4140
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3204
4141
  }, 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
4142
  method: z.ZodEnum<{
3219
4143
  DELETE: "DELETE";
3220
4144
  POST: "POST";
@@ -3255,6 +4179,7 @@ declare const manifestSchema: z.ZodObject<{
3255
4179
  ]>>>;
3256
4180
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3257
4181
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4182
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3258
4183
  items: z.ZodOptional<z.ZodObject<{
3259
4184
  type: z.ZodEnum<{
3260
4185
  string: "string";
@@ -3265,6 +4190,7 @@ declare const manifestSchema: z.ZodObject<{
3265
4190
  }>;
3266
4191
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3267
4192
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4193
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3268
4194
  }, z.core.$strict>>;
3269
4195
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3270
4196
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3336,11 +4262,18 @@ declare const manifestSchema: z.ZodObject<{
3336
4262
  ], "kind">>;
3337
4263
  }, z.core.$strict>>>;
3338
4264
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4265
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3339
4266
  }, z.core.$strict>>;
3340
4267
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3341
4268
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3342
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3343
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
4269
+ rateLimits: z.ZodPrefault<z.ZodObject<{
4270
+ allUsers: z.ZodPrefault<z.ZodObject<{
4271
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4272
+ }, z.core.$strict>>;
4273
+ perUser: z.ZodPrefault<z.ZodObject<{
4274
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4275
+ }, z.core.$strict>>;
4276
+ }, z.core.$strict>>;
3344
4277
  projectOutput: z.ZodDefault<z.ZodBoolean>;
3345
4278
  pinned: z.ZodDefault<z.ZodBoolean>;
3346
4279
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3353,17 +4286,80 @@ declare const manifestSchema: z.ZodObject<{
3353
4286
  agents: z.ZodArray<z.ZodString>;
3354
4287
  }, z.core.$strict>
3355
4288
  ]>;
4289
+ name: z.ZodString;
4290
+ description: z.ZodString;
4291
+ url: z.ZodURL;
4292
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4293
+ header: z.ZodString;
4294
+ prefix: z.ZodDefault<z.ZodString>;
4295
+ from: z.ZodType<{
4296
+ kind: "variable";
4297
+ name: string;
4298
+ } | {
4299
+ kind: "credential";
4300
+ name: string;
4301
+ } | {
4302
+ kind: "constant";
4303
+ value: string;
4304
+ } | {
4305
+ kind: "runToken";
4306
+ }, {
4307
+ kind: "variable";
4308
+ name: string;
4309
+ } | {
4310
+ kind: "credential";
4311
+ name: string;
4312
+ } | {
4313
+ kind: "constant";
4314
+ value: string;
4315
+ } | {
4316
+ kind: "runToken";
4317
+ }, z.core.$ZodTypeInternals<{
4318
+ kind: "variable";
4319
+ name: string;
4320
+ } | {
4321
+ kind: "credential";
4322
+ name: string;
4323
+ } | {
4324
+ kind: "constant";
4325
+ value: string;
4326
+ } | {
4327
+ kind: "runToken";
4328
+ }, {
4329
+ kind: "variable";
4330
+ name: string;
4331
+ } | {
4332
+ kind: "credential";
4333
+ name: string;
4334
+ } | {
4335
+ kind: "constant";
4336
+ value: string;
4337
+ } | {
4338
+ kind: "runToken";
4339
+ }>>;
4340
+ }, z.core.$strict>>>;
4341
+ requiresApproval: z.ZodDefault<z.ZodBoolean>;
3356
4342
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3357
4343
  description: "description";
4344
+ headers: "headers";
3358
4345
  timeoutMs: "timeoutMs";
3359
4346
  maxResponseBytes: "maxResponseBytes";
3360
- rateLimitRequests: "rateLimitRequests";
3361
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
4347
+ rateLimits: "rateLimits";
3362
4348
  pinned: "pinned";
3363
4349
  tags: "tags";
3364
4350
  }>>>;
3365
- name: z.ZodString;
3366
- description: z.ZodString;
4351
+ soapVersion: z.ZodEnum<{
4352
+ 1.1: "1.1";
4353
+ 1.2: "1.2";
4354
+ }>;
4355
+ soapAction: z.ZodString;
4356
+ envelopeTemplate: z.ZodString;
4357
+ tokenCall: z.ZodOptional<z.ZodObject<{
4358
+ envelopeTemplate: z.ZodString;
4359
+ soapAction: z.ZodString;
4360
+ tokenPath: z.ZodString;
4361
+ }, z.core.$strip>>;
4362
+ type: z.ZodLiteral<"soap">;
3367
4363
  inputSchema: z.ZodDefault<z.ZodObject<{
3368
4364
  type: z.ZodLiteral<"object">;
3369
4365
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -3395,6 +4391,7 @@ declare const manifestSchema: z.ZodObject<{
3395
4391
  ]>>>;
3396
4392
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3397
4393
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4394
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3398
4395
  items: z.ZodOptional<z.ZodObject<{
3399
4396
  type: z.ZodEnum<{
3400
4397
  string: "string";
@@ -3405,6 +4402,7 @@ declare const manifestSchema: z.ZodObject<{
3405
4402
  }>;
3406
4403
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3407
4404
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4405
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3408
4406
  }, z.core.$strict>>;
3409
4407
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3410
4408
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3476,26 +4474,8 @@ declare const manifestSchema: z.ZodObject<{
3476
4474
  ], "kind">>;
3477
4475
  }, z.core.$strict>>>;
3478
4476
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4477
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3479
4478
  }, 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
4479
  readOnly: z.ZodBoolean;
3500
4480
  }, z.core.$strict>,
3501
4481
  z.ZodObject<{
@@ -3530,6 +4510,7 @@ declare const manifestSchema: z.ZodObject<{
3530
4510
  ]>>>;
3531
4511
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3532
4512
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4513
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3533
4514
  items: z.ZodOptional<z.ZodObject<{
3534
4515
  type: z.ZodEnum<{
3535
4516
  string: "string";
@@ -3540,6 +4521,7 @@ declare const manifestSchema: z.ZodObject<{
3540
4521
  }>;
3541
4522
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3542
4523
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4524
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3543
4525
  }, z.core.$strict>>;
3544
4526
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3545
4527
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3611,6 +4593,7 @@ declare const manifestSchema: z.ZodObject<{
3611
4593
  ], "kind">>;
3612
4594
  }, z.core.$strict>>>;
3613
4595
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4596
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3614
4597
  }, z.core.$strict>>;
3615
4598
  outputSchema: z.ZodDefault<z.ZodObject<{
3616
4599
  type: z.ZodLiteral<"object">;
@@ -3643,6 +4626,7 @@ declare const manifestSchema: z.ZodObject<{
3643
4626
  ]>>>;
3644
4627
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3645
4628
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4629
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3646
4630
  items: z.ZodOptional<z.ZodObject<{
3647
4631
  type: z.ZodEnum<{
3648
4632
  string: "string";
@@ -3653,6 +4637,7 @@ declare const manifestSchema: z.ZodObject<{
3653
4637
  }>;
3654
4638
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3655
4639
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4640
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3656
4641
  }, z.core.$strict>>;
3657
4642
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3658
4643
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3724,11 +4709,18 @@ declare const manifestSchema: z.ZodObject<{
3724
4709
  ], "kind">>;
3725
4710
  }, z.core.$strict>>>;
3726
4711
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4712
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3727
4713
  }, z.core.$strict>>;
3728
4714
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3729
4715
  maxResponseBytes: z.ZodDefault<z.ZodNumber>;
3730
- rateLimitRequests: z.ZodDefault<z.ZodNumber>;
3731
- rateLimitWindowSeconds: z.ZodDefault<z.ZodNumber>;
4716
+ rateLimits: z.ZodPrefault<z.ZodObject<{
4717
+ allUsers: z.ZodPrefault<z.ZodObject<{
4718
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4719
+ }, z.core.$strict>>;
4720
+ perUser: z.ZodPrefault<z.ZodObject<{
4721
+ callsPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4722
+ }, z.core.$strict>>;
4723
+ }, z.core.$strict>>;
3732
4724
  projectOutput: z.ZodDefault<z.ZodBoolean>;
3733
4725
  pinned: z.ZodDefault<z.ZodBoolean>;
3734
4726
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3745,8 +4737,7 @@ declare const manifestSchema: z.ZodObject<{
3745
4737
  description: "description";
3746
4738
  timeoutMs: "timeoutMs";
3747
4739
  maxResponseBytes: "maxResponseBytes";
3748
- rateLimitRequests: "rateLimitRequests";
3749
- rateLimitWindowSeconds: "rateLimitWindowSeconds";
4740
+ rateLimits: "rateLimits";
3750
4741
  pinned: "pinned";
3751
4742
  tags: "tags";
3752
4743
  }>>>;
@@ -3758,10 +4749,54 @@ declare const manifestSchema: z.ZodObject<{
3758
4749
  openapi: z.ZodDefault<z.ZodArray<z.ZodObject<{
3759
4750
  name: z.ZodString;
3760
4751
  url: z.ZodURL;
3761
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
4752
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
3762
4753
  header: z.ZodString;
3763
4754
  prefix: z.ZodDefault<z.ZodString>;
3764
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
4755
+ from: z.ZodType<{
4756
+ kind: "variable";
4757
+ name: string;
4758
+ } | {
4759
+ kind: "credential";
4760
+ name: string;
4761
+ } | {
4762
+ kind: "constant";
4763
+ value: string;
4764
+ } | {
4765
+ kind: "runToken";
4766
+ }, {
4767
+ kind: "variable";
4768
+ name: string;
4769
+ } | {
4770
+ kind: "credential";
4771
+ name: string;
4772
+ } | {
4773
+ kind: "constant";
4774
+ value: string;
4775
+ } | {
4776
+ kind: "runToken";
4777
+ }, z.core.$ZodTypeInternals<{
4778
+ kind: "variable";
4779
+ name: string;
4780
+ } | {
4781
+ kind: "credential";
4782
+ name: string;
4783
+ } | {
4784
+ kind: "constant";
4785
+ value: string;
4786
+ } | {
4787
+ kind: "runToken";
4788
+ }, {
4789
+ kind: "variable";
4790
+ name: string;
4791
+ } | {
4792
+ kind: "credential";
4793
+ name: string;
4794
+ } | {
4795
+ kind: "constant";
4796
+ value: string;
4797
+ } | {
4798
+ kind: "runToken";
4799
+ }>>;
3765
4800
  }, z.core.$strict>>>;
3766
4801
  resultPath: z.ZodOptional<z.ZodString>;
3767
4802
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -3778,6 +4813,15 @@ declare const manifestSchema: z.ZodObject<{
3778
4813
  agents: z.ZodArray<z.ZodString>;
3779
4814
  }, z.core.$strict>
3780
4815
  ]>;
4816
+ overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4817
+ description: "description";
4818
+ headers: "headers";
4819
+ timeoutMs: "timeoutMs";
4820
+ maxResponseBytes: "maxResponseBytes";
4821
+ rateLimits: "rateLimits";
4822
+ pinned: "pinned";
4823
+ tags: "tags";
4824
+ }>>>;
3781
4825
  }, z.core.$strict>>>;
3782
4826
  services: z.ZodDefault<z.ZodArray<z.ZodObject<{
3783
4827
  key: z.ZodString;
@@ -3855,6 +4899,7 @@ declare const manifestSchema: z.ZodObject<{
3855
4899
  ]>>>;
3856
4900
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3857
4901
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4902
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3858
4903
  items: z.ZodOptional<z.ZodObject<{
3859
4904
  type: z.ZodEnum<{
3860
4905
  string: "string";
@@ -3865,6 +4910,7 @@ declare const manifestSchema: z.ZodObject<{
3865
4910
  }>;
3866
4911
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3867
4912
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4913
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3868
4914
  }, z.core.$strict>>;
3869
4915
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3870
4916
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -3936,6 +4982,7 @@ declare const manifestSchema: z.ZodObject<{
3936
4982
  ], "kind">>;
3937
4983
  }, z.core.$strict>>>;
3938
4984
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
4985
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3939
4986
  }, z.core.$strict>>;
3940
4987
  outputSchema: z.ZodOptional<z.ZodObject<{
3941
4988
  type: z.ZodLiteral<"object">;
@@ -3968,6 +5015,7 @@ declare const manifestSchema: z.ZodObject<{
3968
5015
  ]>>>;
3969
5016
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3970
5017
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
5018
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3971
5019
  items: z.ZodOptional<z.ZodObject<{
3972
5020
  type: z.ZodEnum<{
3973
5021
  string: "string";
@@ -3978,6 +5026,7 @@ declare const manifestSchema: z.ZodObject<{
3978
5026
  }>;
3979
5027
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject</*elided*/ any, z.core.$strict>>>;
3980
5028
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
5029
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
3981
5030
  }, z.core.$strict>>;
3982
5031
  "x-sensitive": z.ZodOptional<z.ZodBoolean>;
3983
5032
  "x-source": z.ZodOptional<z.ZodDiscriminatedUnion<[
@@ -4049,6 +5098,7 @@ declare const manifestSchema: z.ZodObject<{
4049
5098
  ], "kind">>;
4050
5099
  }, z.core.$strict>>>;
4051
5100
  required: z.ZodOptional<z.ZodArray<z.ZodString>>;
5101
+ "x-order": z.ZodOptional<z.ZodArray<z.ZodString>>;
4052
5102
  }, z.core.$strict>>;
4053
5103
  instructions: z.ZodString;
4054
5104
  threadPolicy: z.ZodDefault<z.ZodDiscriminatedUnion<[
@@ -4096,12 +5146,64 @@ declare const manifestSchema: z.ZodObject<{
4096
5146
  datasetHosts: z.ZodDefault<z.ZodArray<z.ZodObject<{
4097
5147
  name: z.ZodString;
4098
5148
  url: z.ZodURL;
4099
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5149
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4100
5150
  header: z.ZodString;
4101
5151
  prefix: z.ZodDefault<z.ZodString>;
4102
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
5152
+ from: z.ZodType<{
5153
+ kind: "variable";
5154
+ name: string;
5155
+ } | {
5156
+ kind: "credential";
5157
+ name: string;
5158
+ } | {
5159
+ kind: "constant";
5160
+ value: string;
5161
+ } | {
5162
+ kind: "runToken";
5163
+ }, {
5164
+ kind: "variable";
5165
+ name: string;
5166
+ } | {
5167
+ kind: "credential";
5168
+ name: string;
5169
+ } | {
5170
+ kind: "constant";
5171
+ value: string;
5172
+ } | {
5173
+ kind: "runToken";
5174
+ }, z.core.$ZodTypeInternals<{
5175
+ kind: "variable";
5176
+ name: string;
5177
+ } | {
5178
+ kind: "credential";
5179
+ name: string;
5180
+ } | {
5181
+ kind: "constant";
5182
+ value: string;
5183
+ } | {
5184
+ kind: "runToken";
5185
+ }, {
5186
+ kind: "variable";
5187
+ name: string;
5188
+ } | {
5189
+ kind: "credential";
5190
+ name: string;
5191
+ } | {
5192
+ kind: "constant";
5193
+ value: string;
5194
+ } | {
5195
+ kind: "runToken";
5196
+ }>>;
4103
5197
  }, z.core.$strict>>>;
4104
5198
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5199
+ rateLimits: z.ZodPrefault<z.ZodObject<{
5200
+ allUsers: z.ZodPrefault<z.ZodObject<{
5201
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5202
+ }, z.core.$strict>>;
5203
+ perUser: z.ZodPrefault<z.ZodObject<{
5204
+ queriesPerMinute: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5205
+ }, z.core.$strict>>;
5206
+ }, z.core.$strict>>;
4105
5207
  expose: z.ZodArray<z.ZodString>;
4106
5208
  pinned: z.ZodDefault<z.ZodArray<z.ZodString>>;
4107
5209
  audience: z.ZodUnion<readonly [
@@ -4114,16 +5216,62 @@ declare const manifestSchema: z.ZodObject<{
4114
5216
  }, z.core.$strict>
4115
5217
  ]>;
4116
5218
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5219
+ headers: "headers";
4117
5220
  timeoutMs: "timeoutMs";
5221
+ rateLimits: "rateLimits";
4118
5222
  }>>>;
4119
5223
  }, z.core.$strict>>>;
4120
5224
  mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4121
5225
  name: z.ZodString;
4122
5226
  url: z.ZodURL;
4123
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5227
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4124
5228
  header: z.ZodString;
4125
5229
  prefix: z.ZodDefault<z.ZodString>;
4126
- credential: z.ZodType<string | null, string | null, z.core.$ZodTypeInternals<string | null, string | null>>;
5230
+ from: z.ZodType<{
5231
+ kind: "variable";
5232
+ name: string;
5233
+ } | {
5234
+ kind: "credential";
5235
+ name: string;
5236
+ } | {
5237
+ kind: "constant";
5238
+ value: string;
5239
+ } | {
5240
+ kind: "runToken";
5241
+ }, {
5242
+ kind: "variable";
5243
+ name: string;
5244
+ } | {
5245
+ kind: "credential";
5246
+ name: string;
5247
+ } | {
5248
+ kind: "constant";
5249
+ value: string;
5250
+ } | {
5251
+ kind: "runToken";
5252
+ }, z.core.$ZodTypeInternals<{
5253
+ kind: "variable";
5254
+ name: string;
5255
+ } | {
5256
+ kind: "credential";
5257
+ name: string;
5258
+ } | {
5259
+ kind: "constant";
5260
+ value: string;
5261
+ } | {
5262
+ kind: "runToken";
5263
+ }, {
5264
+ kind: "variable";
5265
+ name: string;
5266
+ } | {
5267
+ kind: "credential";
5268
+ name: string;
5269
+ } | {
5270
+ kind: "constant";
5271
+ value: string;
5272
+ } | {
5273
+ kind: "runToken";
5274
+ }>>;
4127
5275
  }, z.core.$strict>>>;
4128
5276
  include: z.ZodDefault<z.ZodArray<z.ZodString>>;
4129
5277
  exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -4137,6 +5285,7 @@ declare const manifestSchema: z.ZodObject<{
4137
5285
  }, z.core.$strict>
4138
5286
  ]>;
4139
5287
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5288
+ headers: "headers";
4140
5289
  include: "include";
4141
5290
  exclude: "exclude";
4142
5291
  }>>>;
@@ -4148,10 +5297,34 @@ declare const manifestSchema: z.ZodObject<{
4148
5297
  approval_requested: "approval_requested";
4149
5298
  }>;
4150
5299
  url: z.ZodURL;
4151
- credentials: z.ZodDefault<z.ZodArray<z.ZodObject<{
5300
+ headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4152
5301
  header: z.ZodString;
4153
5302
  prefix: z.ZodDefault<z.ZodString>;
4154
- credential: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
5303
+ from: z.ZodType<{
5304
+ kind: "credential";
5305
+ name: string;
5306
+ } | {
5307
+ kind: "constant";
5308
+ value: string;
5309
+ }, {
5310
+ kind: "credential";
5311
+ name: string;
5312
+ } | {
5313
+ kind: "constant";
5314
+ value: string;
5315
+ }, z.core.$ZodTypeInternals<{
5316
+ kind: "credential";
5317
+ name: string;
5318
+ } | {
5319
+ kind: "constant";
5320
+ value: string;
5321
+ }, {
5322
+ kind: "credential";
5323
+ name: string;
5324
+ } | {
5325
+ kind: "constant";
5326
+ value: string;
5327
+ }>>;
4155
5328
  }, z.core.$strict>>>;
4156
5329
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4157
5330
  audience: z.ZodUnion<readonly [
@@ -4165,6 +5338,7 @@ declare const manifestSchema: z.ZodObject<{
4165
5338
  ]>;
4166
5339
  overridable: z.ZodDefault<z.ZodArray<z.ZodEnum<{
4167
5340
  description: "description";
5341
+ headers: "headers";
4168
5342
  timeoutMs: "timeoutMs";
4169
5343
  }>>>;
4170
5344
  }, z.core.$strict>>>;
@@ -4210,6 +5384,12 @@ export declare function defineManifest(manifest: Manifest): {
4210
5384
  audience?: string | undefined;
4211
5385
  } | {
4212
5386
  kind: "anonymous";
5387
+ recaptcha?: {
5388
+ siteKey: string;
5389
+ projectId: string;
5390
+ secret: string;
5391
+ minScore?: number | undefined;
5392
+ } | undefined;
4213
5393
  } | {
4214
5394
  kind: "server";
4215
5395
  };
@@ -4235,12 +5415,19 @@ export declare function defineManifest(manifest: Manifest): {
4235
5415
  attachmentsEnabled?: boolean | undefined;
4236
5416
  fetchImageHostnames?: string[] | undefined;
4237
5417
  locationPicker?: boolean | undefined;
4238
- media?: ("map" | "mermaid" | "vega-lite" | "report")[] | undefined;
5418
+ media?: ("mermaid" | "vega-lite" | "map" | "report")[] | undefined;
4239
5419
  messageTrigger?: boolean | undefined;
4240
5420
  defaultLocale?: "en" | "ar" | undefined;
4241
- rateLimitRequests?: number | undefined;
4242
- rateLimitWindowSeconds?: number | undefined;
4243
- dailyExecutionQuota?: number | undefined;
5421
+ rateLimits?: {
5422
+ allUsers?: {
5423
+ messagesPerMinute?: number | null | undefined;
5424
+ tokensPerDay?: number | null | undefined;
5425
+ } | undefined;
5426
+ perUser?: {
5427
+ messagesPerMinute?: number | null | undefined;
5428
+ tokensPerDay?: number | null | undefined;
5429
+ } | undefined;
5430
+ } | undefined;
4244
5431
  context?: {
4245
5432
  maxContextTokens?: number | undefined;
4246
5433
  summarizationThreshold?: number | undefined;
@@ -4283,10 +5470,12 @@ export declare function defineManifest(manifest: Manifest): {
4283
5470
  enum?: (string | null)[] | undefined;
4284
5471
  properties?: Record<string, /*elided*/ any> | undefined;
4285
5472
  required?: string[] | undefined;
5473
+ "x-order"?: string[] | undefined;
4286
5474
  items?: {
4287
5475
  type: "string" | "number" | "boolean" | "object" | "integer";
4288
5476
  properties?: Record<string, /*elided*/ any> | undefined;
4289
5477
  required?: string[] | undefined;
5478
+ "x-order"?: string[] | undefined;
4290
5479
  } | undefined;
4291
5480
  "x-sensitive"?: boolean | undefined;
4292
5481
  "x-source"?: {
@@ -4326,15 +5515,42 @@ export declare function defineManifest(manifest: Manifest): {
4326
5515
  } | undefined;
4327
5516
  }> | undefined;
4328
5517
  required?: string[] | undefined;
5518
+ "x-order"?: string[] | undefined;
4329
5519
  } | undefined;
4330
5520
  timeoutMs?: number | undefined;
4331
5521
  maxResponseBytes?: number | undefined;
4332
- rateLimitRequests?: number | undefined;
4333
- rateLimitWindowSeconds?: number | undefined;
5522
+ rateLimits?: {
5523
+ allUsers?: {
5524
+ callsPerMinute?: number | null | undefined;
5525
+ } | undefined;
5526
+ perUser?: {
5527
+ callsPerMinute?: number | null | undefined;
5528
+ } | undefined;
5529
+ } | undefined;
4334
5530
  projectOutput?: boolean | undefined;
4335
5531
  pinned?: boolean | undefined;
4336
5532
  tags?: string[] | undefined;
4337
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5533
+ headers?: {
5534
+ header: string;
5535
+ from: {
5536
+ kind: "variable";
5537
+ name: string;
5538
+ } | {
5539
+ kind: "credential";
5540
+ name: string;
5541
+ } | {
5542
+ kind: "constant";
5543
+ value: string;
5544
+ } | {
5545
+ kind: "runToken";
5546
+ };
5547
+ prefix?: string | undefined;
5548
+ }[] | undefined;
5549
+ requiresApproval?: boolean | undefined;
5550
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5551
+ responseWrap?: "value" | "items" | undefined;
5552
+ requestMediaType?: "application/x-www-form-urlencoded" | "multipart/form-data" | undefined;
5553
+ resultPath?: string | undefined;
4338
5554
  inputSchema?: {
4339
5555
  type: "object";
4340
5556
  properties?: Record<string, {
@@ -4346,10 +5562,12 @@ export declare function defineManifest(manifest: Manifest): {
4346
5562
  enum?: (string | null)[] | undefined;
4347
5563
  properties?: Record<string, /*elided*/ any> | undefined;
4348
5564
  required?: string[] | undefined;
5565
+ "x-order"?: string[] | undefined;
4349
5566
  items?: {
4350
5567
  type: "string" | "number" | "boolean" | "object" | "integer";
4351
5568
  properties?: Record<string, /*elided*/ any> | undefined;
4352
5569
  required?: string[] | undefined;
5570
+ "x-order"?: string[] | undefined;
4353
5571
  } | undefined;
4354
5572
  "x-sensitive"?: boolean | undefined;
4355
5573
  "x-source"?: {
@@ -4389,25 +5607,17 @@ export declare function defineManifest(manifest: Manifest): {
4389
5607
  } | undefined;
4390
5608
  }> | undefined;
4391
5609
  required?: string[] | undefined;
5610
+ "x-order"?: string[] | undefined;
4392
5611
  } | 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
5612
  } | {
5613
+ name: string;
5614
+ description: string;
5615
+ url: string;
4403
5616
  audience: "all" | {
4404
5617
  server: string;
4405
5618
  } | {
4406
5619
  agents: string[];
4407
5620
  };
4408
- name: string;
4409
- description: string;
4410
- url: string;
4411
5621
  embedOrigin: string;
4412
5622
  surface: "inline" | "modal";
4413
5623
  type: "embedded";
@@ -4423,10 +5633,12 @@ export declare function defineManifest(manifest: Manifest): {
4423
5633
  enum?: (string | null)[] | undefined;
4424
5634
  properties?: Record<string, /*elided*/ any> | undefined;
4425
5635
  required?: string[] | undefined;
5636
+ "x-order"?: string[] | undefined;
4426
5637
  items?: {
4427
5638
  type: "string" | "number" | "boolean" | "object" | "integer";
4428
5639
  properties?: Record<string, /*elided*/ any> | undefined;
4429
5640
  required?: string[] | undefined;
5641
+ "x-order"?: string[] | undefined;
4430
5642
  } | undefined;
4431
5643
  "x-sensitive"?: boolean | undefined;
4432
5644
  "x-source"?: {
@@ -4466,15 +5678,38 @@ export declare function defineManifest(manifest: Manifest): {
4466
5678
  } | undefined;
4467
5679
  }> | undefined;
4468
5680
  required?: string[] | undefined;
5681
+ "x-order"?: string[] | undefined;
4469
5682
  } | undefined;
5683
+ headers?: {
5684
+ header: string;
5685
+ from: {
5686
+ kind: "variable";
5687
+ name: string;
5688
+ } | {
5689
+ kind: "credential";
5690
+ name: string;
5691
+ } | {
5692
+ kind: "constant";
5693
+ value: string;
5694
+ } | {
5695
+ kind: "runToken";
5696
+ };
5697
+ prefix?: string | undefined;
5698
+ }[] | undefined;
4470
5699
  timeoutMs?: number | undefined;
4471
5700
  maxResponseBytes?: number | undefined;
4472
- rateLimitRequests?: number | undefined;
4473
- rateLimitWindowSeconds?: number | undefined;
4474
- projectOutput?: boolean | undefined;
5701
+ rateLimits?: {
5702
+ allUsers?: {
5703
+ callsPerMinute?: number | null | undefined;
5704
+ } | undefined;
5705
+ perUser?: {
5706
+ callsPerMinute?: number | null | undefined;
5707
+ } | undefined;
5708
+ } | undefined;
4475
5709
  pinned?: boolean | undefined;
4476
5710
  tags?: string[] | undefined;
4477
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5711
+ projectOutput?: boolean | undefined;
5712
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
4478
5713
  inputSchema?: {
4479
5714
  type: "object";
4480
5715
  properties?: Record<string, {
@@ -4486,10 +5721,12 @@ export declare function defineManifest(manifest: Manifest): {
4486
5721
  enum?: (string | null)[] | undefined;
4487
5722
  properties?: Record<string, /*elided*/ any> | undefined;
4488
5723
  required?: string[] | undefined;
5724
+ "x-order"?: string[] | undefined;
4489
5725
  items?: {
4490
5726
  type: "string" | "number" | "boolean" | "object" | "integer";
4491
5727
  properties?: Record<string, /*elided*/ any> | undefined;
4492
5728
  required?: string[] | undefined;
5729
+ "x-order"?: string[] | undefined;
4493
5730
  } | undefined;
4494
5731
  "x-sensitive"?: boolean | undefined;
4495
5732
  "x-source"?: {
@@ -4529,13 +5766,8 @@ export declare function defineManifest(manifest: Manifest): {
4529
5766
  } | undefined;
4530
5767
  }> | undefined;
4531
5768
  required?: string[] | undefined;
5769
+ "x-order"?: string[] | undefined;
4532
5770
  } | undefined;
4533
- credentials?: {
4534
- header: string;
4535
- credential: string | null;
4536
- prefix?: string | undefined;
4537
- }[] | undefined;
4538
- requiresApproval?: boolean | undefined;
4539
5771
  } | {
4540
5772
  audience: "all" | {
4541
5773
  server: string;
@@ -4561,10 +5793,12 @@ export declare function defineManifest(manifest: Manifest): {
4561
5793
  enum?: (string | null)[] | undefined;
4562
5794
  properties?: Record<string, /*elided*/ any> | undefined;
4563
5795
  required?: string[] | undefined;
5796
+ "x-order"?: string[] | undefined;
4564
5797
  items?: {
4565
5798
  type: "string" | "number" | "boolean" | "object" | "integer";
4566
5799
  properties?: Record<string, /*elided*/ any> | undefined;
4567
5800
  required?: string[] | undefined;
5801
+ "x-order"?: string[] | undefined;
4568
5802
  } | undefined;
4569
5803
  "x-sensitive"?: boolean | undefined;
4570
5804
  "x-source"?: {
@@ -4604,15 +5838,44 @@ export declare function defineManifest(manifest: Manifest): {
4604
5838
  } | undefined;
4605
5839
  }> | undefined;
4606
5840
  required?: string[] | undefined;
5841
+ "x-order"?: string[] | undefined;
4607
5842
  } | undefined;
4608
5843
  timeoutMs?: number | undefined;
4609
5844
  maxResponseBytes?: number | undefined;
4610
- rateLimitRequests?: number | undefined;
4611
- rateLimitWindowSeconds?: number | undefined;
5845
+ rateLimits?: {
5846
+ allUsers?: {
5847
+ callsPerMinute?: number | null | undefined;
5848
+ } | undefined;
5849
+ perUser?: {
5850
+ callsPerMinute?: number | null | undefined;
5851
+ } | undefined;
5852
+ } | undefined;
4612
5853
  projectOutput?: boolean | undefined;
4613
5854
  pinned?: boolean | undefined;
4614
5855
  tags?: string[] | undefined;
4615
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
5856
+ headers?: {
5857
+ header: string;
5858
+ from: {
5859
+ kind: "variable";
5860
+ name: string;
5861
+ } | {
5862
+ kind: "credential";
5863
+ name: string;
5864
+ } | {
5865
+ kind: "constant";
5866
+ value: string;
5867
+ } | {
5868
+ kind: "runToken";
5869
+ };
5870
+ prefix?: string | undefined;
5871
+ }[] | undefined;
5872
+ requiresApproval?: boolean | undefined;
5873
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
5874
+ tokenCall?: {
5875
+ envelopeTemplate: string;
5876
+ soapAction: string;
5877
+ tokenPath: string;
5878
+ } | undefined;
4616
5879
  inputSchema?: {
4617
5880
  type: "object";
4618
5881
  properties?: Record<string, {
@@ -4624,10 +5887,12 @@ export declare function defineManifest(manifest: Manifest): {
4624
5887
  enum?: (string | null)[] | undefined;
4625
5888
  properties?: Record<string, /*elided*/ any> | undefined;
4626
5889
  required?: string[] | undefined;
5890
+ "x-order"?: string[] | undefined;
4627
5891
  items?: {
4628
5892
  type: "string" | "number" | "boolean" | "object" | "integer";
4629
5893
  properties?: Record<string, /*elided*/ any> | undefined;
4630
5894
  required?: string[] | undefined;
5895
+ "x-order"?: string[] | undefined;
4631
5896
  } | undefined;
4632
5897
  "x-sensitive"?: boolean | undefined;
4633
5898
  "x-source"?: {
@@ -4667,17 +5932,7 @@ export declare function defineManifest(manifest: Manifest): {
4667
5932
  } | undefined;
4668
5933
  }> | undefined;
4669
5934
  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;
5935
+ "x-order"?: string[] | undefined;
4681
5936
  } | undefined;
4682
5937
  } | {
4683
5938
  audience: "all" | {
@@ -4699,10 +5954,12 @@ export declare function defineManifest(manifest: Manifest): {
4699
5954
  enum?: (string | null)[] | undefined;
4700
5955
  properties?: Record<string, /*elided*/ any> | undefined;
4701
5956
  required?: string[] | undefined;
5957
+ "x-order"?: string[] | undefined;
4702
5958
  items?: {
4703
5959
  type: "string" | "number" | "boolean" | "object" | "integer";
4704
5960
  properties?: Record<string, /*elided*/ any> | undefined;
4705
5961
  required?: string[] | undefined;
5962
+ "x-order"?: string[] | undefined;
4706
5963
  } | undefined;
4707
5964
  "x-sensitive"?: boolean | undefined;
4708
5965
  "x-source"?: {
@@ -4742,6 +5999,7 @@ export declare function defineManifest(manifest: Manifest): {
4742
5999
  } | undefined;
4743
6000
  }> | undefined;
4744
6001
  required?: string[] | undefined;
6002
+ "x-order"?: string[] | undefined;
4745
6003
  } | undefined;
4746
6004
  outputSchema?: {
4747
6005
  type: "object";
@@ -4754,10 +6012,12 @@ export declare function defineManifest(manifest: Manifest): {
4754
6012
  enum?: (string | null)[] | undefined;
4755
6013
  properties?: Record<string, /*elided*/ any> | undefined;
4756
6014
  required?: string[] | undefined;
6015
+ "x-order"?: string[] | undefined;
4757
6016
  items?: {
4758
6017
  type: "string" | "number" | "boolean" | "object" | "integer";
4759
6018
  properties?: Record<string, /*elided*/ any> | undefined;
4760
6019
  required?: string[] | undefined;
6020
+ "x-order"?: string[] | undefined;
4761
6021
  } | undefined;
4762
6022
  "x-sensitive"?: boolean | undefined;
4763
6023
  "x-source"?: {
@@ -4797,15 +6057,22 @@ export declare function defineManifest(manifest: Manifest): {
4797
6057
  } | undefined;
4798
6058
  }> | undefined;
4799
6059
  required?: string[] | undefined;
6060
+ "x-order"?: string[] | undefined;
4800
6061
  } | undefined;
4801
6062
  timeoutMs?: number | undefined;
4802
6063
  maxResponseBytes?: number | undefined;
4803
- rateLimitRequests?: number | undefined;
4804
- rateLimitWindowSeconds?: number | undefined;
6064
+ rateLimits?: {
6065
+ allUsers?: {
6066
+ callsPerMinute?: number | null | undefined;
6067
+ } | undefined;
6068
+ perUser?: {
6069
+ callsPerMinute?: number | null | undefined;
6070
+ } | undefined;
6071
+ } | undefined;
4805
6072
  projectOutput?: boolean | undefined;
4806
6073
  pinned?: boolean | undefined;
4807
6074
  tags?: string[] | undefined;
4808
- overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimitRequests" | "rateLimitWindowSeconds" | "pinned" | "tags")[] | undefined;
6075
+ overridable?: ("description" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
4809
6076
  })[] | undefined;
4810
6077
  openapi?: {
4811
6078
  name: string;
@@ -4815,9 +6082,20 @@ export declare function defineManifest(manifest: Manifest): {
4815
6082
  } | {
4816
6083
  agents: string[];
4817
6084
  };
4818
- credentials?: {
6085
+ headers?: {
4819
6086
  header: string;
4820
- credential: string | null;
6087
+ from: {
6088
+ kind: "variable";
6089
+ name: string;
6090
+ } | {
6091
+ kind: "credential";
6092
+ name: string;
6093
+ } | {
6094
+ kind: "constant";
6095
+ value: string;
6096
+ } | {
6097
+ kind: "runToken";
6098
+ };
4821
6099
  prefix?: string | undefined;
4822
6100
  }[] | undefined;
4823
6101
  resultPath?: string | undefined;
@@ -4826,6 +6104,7 @@ export declare function defineManifest(manifest: Manifest): {
4826
6104
  never?: string[] | undefined;
4827
6105
  always?: string[] | undefined;
4828
6106
  } | undefined;
6107
+ overridable?: ("description" | "headers" | "timeoutMs" | "maxResponseBytes" | "rateLimits" | "pinned" | "tags")[] | undefined;
4829
6108
  }[] | undefined;
4830
6109
  services?: {
4831
6110
  key: string;
@@ -4870,10 +6149,12 @@ export declare function defineManifest(manifest: Manifest): {
4870
6149
  enum?: (string | null)[] | undefined;
4871
6150
  properties?: Record<string, /*elided*/ any> | undefined;
4872
6151
  required?: string[] | undefined;
6152
+ "x-order"?: string[] | undefined;
4873
6153
  items?: {
4874
6154
  type: "string" | "number" | "boolean" | "object" | "integer";
4875
6155
  properties?: Record<string, /*elided*/ any> | undefined;
4876
6156
  required?: string[] | undefined;
6157
+ "x-order"?: string[] | undefined;
4877
6158
  } | undefined;
4878
6159
  "x-sensitive"?: boolean | undefined;
4879
6160
  "x-source"?: {
@@ -4913,6 +6194,7 @@ export declare function defineManifest(manifest: Manifest): {
4913
6194
  } | undefined;
4914
6195
  }> | undefined;
4915
6196
  required?: string[] | undefined;
6197
+ "x-order"?: string[] | undefined;
4916
6198
  } | undefined;
4917
6199
  outputSchema?: {
4918
6200
  type: "object";
@@ -4925,10 +6207,12 @@ export declare function defineManifest(manifest: Manifest): {
4925
6207
  enum?: (string | null)[] | undefined;
4926
6208
  properties?: Record<string, /*elided*/ any> | undefined;
4927
6209
  required?: string[] | undefined;
6210
+ "x-order"?: string[] | undefined;
4928
6211
  items?: {
4929
6212
  type: "string" | "number" | "boolean" | "object" | "integer";
4930
6213
  properties?: Record<string, /*elided*/ any> | undefined;
4931
6214
  required?: string[] | undefined;
6215
+ "x-order"?: string[] | undefined;
4932
6216
  } | undefined;
4933
6217
  "x-sensitive"?: boolean | undefined;
4934
6218
  "x-source"?: {
@@ -4968,6 +6252,7 @@ export declare function defineManifest(manifest: Manifest): {
4968
6252
  } | undefined;
4969
6253
  }> | undefined;
4970
6254
  required?: string[] | undefined;
6255
+ "x-order"?: string[] | undefined;
4971
6256
  } | undefined;
4972
6257
  threadPolicy?: {
4973
6258
  policy: "single";
@@ -4999,14 +6284,33 @@ export declare function defineManifest(manifest: Manifest): {
4999
6284
  } | {
5000
6285
  agents: string[];
5001
6286
  };
5002
- credentials?: {
6287
+ headers?: {
5003
6288
  header: string;
5004
- credential: string | null;
6289
+ from: {
6290
+ kind: "variable";
6291
+ name: string;
6292
+ } | {
6293
+ kind: "credential";
6294
+ name: string;
6295
+ } | {
6296
+ kind: "constant";
6297
+ value: string;
6298
+ } | {
6299
+ kind: "runToken";
6300
+ };
5005
6301
  prefix?: string | undefined;
5006
6302
  }[] | undefined;
5007
6303
  timeoutMs?: number | undefined;
6304
+ rateLimits?: {
6305
+ allUsers?: {
6306
+ queriesPerMinute?: number | null | undefined;
6307
+ } | undefined;
6308
+ perUser?: {
6309
+ queriesPerMinute?: number | null | undefined;
6310
+ } | undefined;
6311
+ } | undefined;
5008
6312
  pinned?: string[] | undefined;
5009
- overridable?: "timeoutMs"[] | undefined;
6313
+ overridable?: ("headers" | "timeoutMs" | "rateLimits")[] | undefined;
5010
6314
  }[] | undefined;
5011
6315
  mcpServers?: {
5012
6316
  name: string;
@@ -5016,14 +6320,25 @@ export declare function defineManifest(manifest: Manifest): {
5016
6320
  } | {
5017
6321
  agents: string[];
5018
6322
  };
5019
- credentials?: {
6323
+ headers?: {
5020
6324
  header: string;
5021
- credential: string | null;
6325
+ from: {
6326
+ kind: "variable";
6327
+ name: string;
6328
+ } | {
6329
+ kind: "credential";
6330
+ name: string;
6331
+ } | {
6332
+ kind: "constant";
6333
+ value: string;
6334
+ } | {
6335
+ kind: "runToken";
6336
+ };
5022
6337
  prefix?: string | undefined;
5023
6338
  }[] | undefined;
5024
6339
  include?: string[] | undefined;
5025
6340
  exclude?: string[] | undefined;
5026
- overridable?: ("include" | "exclude")[] | undefined;
6341
+ overridable?: ("headers" | "include" | "exclude")[] | undefined;
5027
6342
  }[] | undefined;
5028
6343
  webhooks?: {
5029
6344
  name: string;
@@ -5035,13 +6350,19 @@ export declare function defineManifest(manifest: Manifest): {
5035
6350
  agents: string[];
5036
6351
  };
5037
6352
  description?: string | undefined;
5038
- credentials?: {
6353
+ headers?: {
5039
6354
  header: string;
5040
- credential: string;
6355
+ from: {
6356
+ kind: "credential";
6357
+ name: string;
6358
+ } | {
6359
+ kind: "constant";
6360
+ value: string;
6361
+ };
5041
6362
  prefix?: string | undefined;
5042
6363
  }[] | undefined;
5043
6364
  timeoutMs?: number | undefined;
5044
- overridable?: ("description" | "timeoutMs")[] | undefined;
6365
+ overridable?: ("description" | "headers" | "timeoutMs")[] | undefined;
5045
6366
  }[] | undefined;
5046
6367
  collections?: {
5047
6368
  name: string;