@credal/actions 0.2.152 → 0.2.154
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/actions/autogen/templates.js +33 -12
- package/dist/actions/autogen/types.d.ts +163 -56
- package/dist/actions/autogen/types.js +19 -6
- package/dist/actions/providers/confluence/updatePage.js +14 -15
- package/dist/actions/providers/generic/fillTemplateAction.d.ts +7 -0
- package/dist/actions/providers/generic/fillTemplateAction.js +18 -0
- package/dist/actions/providers/generic/genericApiCall.d.ts +3 -0
- package/dist/actions/providers/generic/genericApiCall.js +38 -0
- package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getDriveContentById.js +161 -0
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +47 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +110 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +78 -0
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +15 -0
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +129 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/salesforce/searchAllSalesforceRecords.js +19 -8
- package/dist/actions/providers/slackUser/getSlackMessagesInTimeRange.d.ts +3 -0
- package/dist/actions/providers/slackUser/getSlackMessagesInTimeRange.js +81 -0
- package/dist/actions/providers/slackUser/searchSlack.d.ts +11 -0
- package/dist/actions/providers/slackUser/searchSlack.js +67 -24
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +3 -0
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +154 -0
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +3 -0
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +45 -0
- package/package.json +1 -1
- package/dist/actions/providers/jamf/types.d.ts +0 -8
- package/dist/actions/providers/jamf/types.js +0 -7
|
@@ -767,6 +767,11 @@ export const slackUserSearchSlackDefinition = {
|
|
|
767
767
|
maximum: 100,
|
|
768
768
|
default: 50,
|
|
769
769
|
},
|
|
770
|
+
fetchAdjacentMessages: {
|
|
771
|
+
type: "boolean",
|
|
772
|
+
description: "Fetch surrounding messages for context. Threads always fetch all replies.",
|
|
773
|
+
default: true,
|
|
774
|
+
},
|
|
770
775
|
},
|
|
771
776
|
},
|
|
772
777
|
output: {
|
|
@@ -10823,32 +10828,47 @@ export const salesforceSearchAllSalesforceRecordsDefinition = {
|
|
|
10823
10828
|
type: "boolean",
|
|
10824
10829
|
description: "Whether the records were successfully retrieved",
|
|
10825
10830
|
},
|
|
10826
|
-
|
|
10831
|
+
results: {
|
|
10827
10832
|
type: "array",
|
|
10828
10833
|
description: "The records that match the search",
|
|
10829
10834
|
items: {
|
|
10830
10835
|
type: "object",
|
|
10831
10836
|
description: "A record from Salesforce",
|
|
10832
10837
|
properties: {
|
|
10833
|
-
|
|
10838
|
+
name: {
|
|
10839
|
+
type: "string",
|
|
10840
|
+
description: "The name of the record",
|
|
10841
|
+
},
|
|
10842
|
+
url: {
|
|
10834
10843
|
type: "string",
|
|
10835
|
-
description: "The
|
|
10844
|
+
description: "The URL of the record",
|
|
10836
10845
|
},
|
|
10837
|
-
|
|
10846
|
+
contents: {
|
|
10838
10847
|
type: "object",
|
|
10839
|
-
description: "
|
|
10848
|
+
description: "The contents of the record",
|
|
10849
|
+
additionalProperties: true,
|
|
10840
10850
|
properties: {
|
|
10841
|
-
|
|
10851
|
+
id: {
|
|
10842
10852
|
type: "string",
|
|
10843
|
-
description: "The Salesforce
|
|
10853
|
+
description: "The Salesforce record ID",
|
|
10844
10854
|
},
|
|
10845
|
-
|
|
10846
|
-
type: "
|
|
10847
|
-
description: "
|
|
10855
|
+
attributes: {
|
|
10856
|
+
type: "object",
|
|
10857
|
+
description: "Metadata about the Salesforce record",
|
|
10858
|
+
properties: {
|
|
10859
|
+
type: {
|
|
10860
|
+
type: "string",
|
|
10861
|
+
description: "The Salesforce object type",
|
|
10862
|
+
},
|
|
10863
|
+
url: {
|
|
10864
|
+
type: "string",
|
|
10865
|
+
description: "The Salesforce record URL",
|
|
10866
|
+
},
|
|
10867
|
+
},
|
|
10868
|
+
required: ["type", "url"],
|
|
10869
|
+
additionalProperties: true,
|
|
10848
10870
|
},
|
|
10849
10871
|
},
|
|
10850
|
-
required: ["type", "url"],
|
|
10851
|
-
additionalProperties: true,
|
|
10852
10872
|
},
|
|
10853
10873
|
},
|
|
10854
10874
|
},
|
|
@@ -10920,6 +10940,7 @@ export const salesforceSearchSalesforceRecordsDefinition = {
|
|
|
10920
10940
|
contents: {
|
|
10921
10941
|
type: "object",
|
|
10922
10942
|
description: "The contents of the record",
|
|
10943
|
+
additionalProperties: true,
|
|
10923
10944
|
properties: {
|
|
10924
10945
|
id: {
|
|
10925
10946
|
type: "string",
|
|
@@ -870,9 +870,11 @@ export declare const slackUserSearchSlackParamsSchema: z.ZodObject<{
|
|
|
870
870
|
topic: z.ZodOptional<z.ZodString>;
|
|
871
871
|
timeRange: z.ZodDefault<z.ZodEnum<["latest", "today", "yesterday", "last_7d", "last_30d", "all"]>>;
|
|
872
872
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
873
|
+
fetchAdjacentMessages: z.ZodDefault<z.ZodBoolean>;
|
|
873
874
|
}, "strip", z.ZodTypeAny, {
|
|
874
875
|
timeRange: "latest" | "today" | "yesterday" | "last_7d" | "last_30d" | "all";
|
|
875
876
|
limit: number;
|
|
877
|
+
fetchAdjacentMessages: boolean;
|
|
876
878
|
emails?: string[] | undefined;
|
|
877
879
|
channel?: string | undefined;
|
|
878
880
|
topic?: string | undefined;
|
|
@@ -882,6 +884,7 @@ export declare const slackUserSearchSlackParamsSchema: z.ZodObject<{
|
|
|
882
884
|
topic?: string | undefined;
|
|
883
885
|
timeRange?: "latest" | "today" | "yesterday" | "last_7d" | "last_30d" | "all" | undefined;
|
|
884
886
|
limit?: number | undefined;
|
|
887
|
+
fetchAdjacentMessages?: boolean | undefined;
|
|
885
888
|
}>;
|
|
886
889
|
export type slackUserSearchSlackParamsType = z.infer<typeof slackUserSearchSlackParamsSchema>;
|
|
887
890
|
export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
|
|
@@ -7909,51 +7912,119 @@ export declare const salesforceSearchAllSalesforceRecordsParamsSchema: z.ZodObje
|
|
|
7909
7912
|
export type salesforceSearchAllSalesforceRecordsParamsType = z.infer<typeof salesforceSearchAllSalesforceRecordsParamsSchema>;
|
|
7910
7913
|
export declare const salesforceSearchAllSalesforceRecordsOutputSchema: z.ZodObject<{
|
|
7911
7914
|
success: z.ZodBoolean;
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7915
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7916
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7917
|
+
url: z.ZodOptional<z.ZodString>;
|
|
7918
|
+
contents: z.ZodOptional<z.ZodObject<{
|
|
7919
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7920
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7921
|
+
type: z.ZodString;
|
|
7922
|
+
url: z.ZodString;
|
|
7923
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7924
|
+
type: z.ZodString;
|
|
7925
|
+
url: z.ZodString;
|
|
7926
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7927
|
+
type: z.ZodString;
|
|
7928
|
+
url: z.ZodString;
|
|
7929
|
+
}, z.ZodAny, "strip">>>;
|
|
7917
7930
|
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7918
|
-
|
|
7919
|
-
|
|
7931
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7932
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7933
|
+
type: z.ZodString;
|
|
7934
|
+
url: z.ZodString;
|
|
7935
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7936
|
+
type: z.ZodString;
|
|
7937
|
+
url: z.ZodString;
|
|
7938
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7939
|
+
type: z.ZodString;
|
|
7940
|
+
url: z.ZodString;
|
|
7941
|
+
}, z.ZodAny, "strip">>>;
|
|
7920
7942
|
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7921
|
-
|
|
7922
|
-
|
|
7943
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7944
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7945
|
+
type: z.ZodString;
|
|
7946
|
+
url: z.ZodString;
|
|
7947
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7948
|
+
type: z.ZodString;
|
|
7949
|
+
url: z.ZodString;
|
|
7950
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7951
|
+
type: z.ZodString;
|
|
7952
|
+
url: z.ZodString;
|
|
7953
|
+
}, z.ZodAny, "strip">>>;
|
|
7923
7954
|
}, z.ZodAny, "strip">>>;
|
|
7924
7955
|
}, "strip", z.ZodTypeAny, {
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7956
|
+
name?: string | undefined;
|
|
7957
|
+
url?: string | undefined;
|
|
7958
|
+
contents?: z.objectOutputType<{
|
|
7959
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7960
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7961
|
+
type: z.ZodString;
|
|
7962
|
+
url: z.ZodString;
|
|
7963
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7964
|
+
type: z.ZodString;
|
|
7965
|
+
url: z.ZodString;
|
|
7966
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7967
|
+
type: z.ZodString;
|
|
7968
|
+
url: z.ZodString;
|
|
7969
|
+
}, z.ZodAny, "strip">>>;
|
|
7928
7970
|
}, z.ZodAny, "strip"> | undefined;
|
|
7929
|
-
id?: string | undefined;
|
|
7930
7971
|
}, {
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7972
|
+
name?: string | undefined;
|
|
7973
|
+
url?: string | undefined;
|
|
7974
|
+
contents?: z.objectInputType<{
|
|
7975
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7976
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7977
|
+
type: z.ZodString;
|
|
7978
|
+
url: z.ZodString;
|
|
7979
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
7980
|
+
type: z.ZodString;
|
|
7981
|
+
url: z.ZodString;
|
|
7982
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
7983
|
+
type: z.ZodString;
|
|
7984
|
+
url: z.ZodString;
|
|
7985
|
+
}, z.ZodAny, "strip">>>;
|
|
7934
7986
|
}, z.ZodAny, "strip"> | undefined;
|
|
7935
|
-
id?: string | undefined;
|
|
7936
7987
|
}>, "many">>;
|
|
7937
7988
|
error: z.ZodOptional<z.ZodString>;
|
|
7938
7989
|
}, "strip", z.ZodTypeAny, {
|
|
7939
7990
|
success: boolean;
|
|
7940
7991
|
error?: string | undefined;
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7992
|
+
results?: {
|
|
7993
|
+
name?: string | undefined;
|
|
7994
|
+
url?: string | undefined;
|
|
7995
|
+
contents?: z.objectOutputType<{
|
|
7996
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7997
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
7998
|
+
type: z.ZodString;
|
|
7999
|
+
url: z.ZodString;
|
|
8000
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8001
|
+
type: z.ZodString;
|
|
8002
|
+
url: z.ZodString;
|
|
8003
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8004
|
+
type: z.ZodString;
|
|
8005
|
+
url: z.ZodString;
|
|
8006
|
+
}, z.ZodAny, "strip">>>;
|
|
7945
8007
|
}, z.ZodAny, "strip"> | undefined;
|
|
7946
|
-
id?: string | undefined;
|
|
7947
8008
|
}[] | undefined;
|
|
7948
8009
|
}, {
|
|
7949
8010
|
success: boolean;
|
|
7950
8011
|
error?: string | undefined;
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
8012
|
+
results?: {
|
|
8013
|
+
name?: string | undefined;
|
|
8014
|
+
url?: string | undefined;
|
|
8015
|
+
contents?: z.objectInputType<{
|
|
8016
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8017
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8018
|
+
type: z.ZodString;
|
|
8019
|
+
url: z.ZodString;
|
|
8020
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8021
|
+
type: z.ZodString;
|
|
8022
|
+
url: z.ZodString;
|
|
8023
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8024
|
+
type: z.ZodString;
|
|
8025
|
+
url: z.ZodString;
|
|
8026
|
+
}, z.ZodAny, "strip">>>;
|
|
7955
8027
|
}, z.ZodAny, "strip"> | undefined;
|
|
7956
|
-
id?: string | undefined;
|
|
7957
8028
|
}[] | undefined;
|
|
7958
8029
|
}>;
|
|
7959
8030
|
export type salesforceSearchAllSalesforceRecordsOutputType = z.infer<typeof salesforceSearchAllSalesforceRecordsOutputSchema>;
|
|
@@ -7995,39 +8066,63 @@ export declare const salesforceSearchSalesforceRecordsOutputSchema: z.ZodObject<
|
|
|
7995
8066
|
type: z.ZodString;
|
|
7996
8067
|
url: z.ZodString;
|
|
7997
8068
|
}, z.ZodAny, "strip">>>;
|
|
7998
|
-
}, "strip", z.
|
|
7999
|
-
|
|
8069
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8070
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8071
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8000
8072
|
type: z.ZodString;
|
|
8001
8073
|
url: z.ZodString;
|
|
8002
|
-
}, z.ZodAny,
|
|
8003
|
-
id?: string | undefined;
|
|
8004
|
-
}, {
|
|
8005
|
-
attributes?: z.objectInputType<{
|
|
8074
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8006
8075
|
type: z.ZodString;
|
|
8007
8076
|
url: z.ZodString;
|
|
8008
|
-
}, z.ZodAny, "strip"
|
|
8009
|
-
|
|
8010
|
-
|
|
8077
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8078
|
+
type: z.ZodString;
|
|
8079
|
+
url: z.ZodString;
|
|
8080
|
+
}, z.ZodAny, "strip">>>;
|
|
8081
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8082
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8083
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8084
|
+
type: z.ZodString;
|
|
8085
|
+
url: z.ZodString;
|
|
8086
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8087
|
+
type: z.ZodString;
|
|
8088
|
+
url: z.ZodString;
|
|
8089
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8090
|
+
type: z.ZodString;
|
|
8091
|
+
url: z.ZodString;
|
|
8092
|
+
}, z.ZodAny, "strip">>>;
|
|
8093
|
+
}, z.ZodAny, "strip">>>;
|
|
8011
8094
|
}, "strip", z.ZodTypeAny, {
|
|
8012
8095
|
name?: string | undefined;
|
|
8013
8096
|
url?: string | undefined;
|
|
8014
|
-
contents?: {
|
|
8015
|
-
|
|
8097
|
+
contents?: z.objectOutputType<{
|
|
8098
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8099
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8016
8100
|
type: z.ZodString;
|
|
8017
8101
|
url: z.ZodString;
|
|
8018
|
-
}, z.ZodAny,
|
|
8019
|
-
|
|
8020
|
-
|
|
8102
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8103
|
+
type: z.ZodString;
|
|
8104
|
+
url: z.ZodString;
|
|
8105
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8106
|
+
type: z.ZodString;
|
|
8107
|
+
url: z.ZodString;
|
|
8108
|
+
}, z.ZodAny, "strip">>>;
|
|
8109
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
8021
8110
|
}, {
|
|
8022
8111
|
name?: string | undefined;
|
|
8023
8112
|
url?: string | undefined;
|
|
8024
|
-
contents?: {
|
|
8025
|
-
|
|
8113
|
+
contents?: z.objectInputType<{
|
|
8114
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8115
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8026
8116
|
type: z.ZodString;
|
|
8027
8117
|
url: z.ZodString;
|
|
8028
|
-
}, z.ZodAny,
|
|
8029
|
-
|
|
8030
|
-
|
|
8118
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8119
|
+
type: z.ZodString;
|
|
8120
|
+
url: z.ZodString;
|
|
8121
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8122
|
+
type: z.ZodString;
|
|
8123
|
+
url: z.ZodString;
|
|
8124
|
+
}, z.ZodAny, "strip">>>;
|
|
8125
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
8031
8126
|
}>, "many">>;
|
|
8032
8127
|
error: z.ZodOptional<z.ZodString>;
|
|
8033
8128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8036,13 +8131,19 @@ export declare const salesforceSearchSalesforceRecordsOutputSchema: z.ZodObject<
|
|
|
8036
8131
|
results?: {
|
|
8037
8132
|
name?: string | undefined;
|
|
8038
8133
|
url?: string | undefined;
|
|
8039
|
-
contents?: {
|
|
8040
|
-
|
|
8134
|
+
contents?: z.objectOutputType<{
|
|
8135
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8136
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8041
8137
|
type: z.ZodString;
|
|
8042
8138
|
url: z.ZodString;
|
|
8043
|
-
}, z.ZodAny,
|
|
8044
|
-
|
|
8045
|
-
|
|
8139
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8140
|
+
type: z.ZodString;
|
|
8141
|
+
url: z.ZodString;
|
|
8142
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8143
|
+
type: z.ZodString;
|
|
8144
|
+
url: z.ZodString;
|
|
8145
|
+
}, z.ZodAny, "strip">>>;
|
|
8146
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
8046
8147
|
}[] | undefined;
|
|
8047
8148
|
}, {
|
|
8048
8149
|
success: boolean;
|
|
@@ -8050,13 +8151,19 @@ export declare const salesforceSearchSalesforceRecordsOutputSchema: z.ZodObject<
|
|
|
8050
8151
|
results?: {
|
|
8051
8152
|
name?: string | undefined;
|
|
8052
8153
|
url?: string | undefined;
|
|
8053
|
-
contents?: {
|
|
8054
|
-
|
|
8154
|
+
contents?: z.objectInputType<{
|
|
8155
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8156
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
8055
8157
|
type: z.ZodString;
|
|
8056
8158
|
url: z.ZodString;
|
|
8057
|
-
}, z.ZodAny,
|
|
8058
|
-
|
|
8059
|
-
|
|
8159
|
+
}, "strip", z.ZodAny, z.objectOutputType<{
|
|
8160
|
+
type: z.ZodString;
|
|
8161
|
+
url: z.ZodString;
|
|
8162
|
+
}, z.ZodAny, "strip">, z.objectInputType<{
|
|
8163
|
+
type: z.ZodString;
|
|
8164
|
+
url: z.ZodString;
|
|
8165
|
+
}, z.ZodAny, "strip">>>;
|
|
8166
|
+
}, z.ZodAny, "strip"> | undefined;
|
|
8060
8167
|
}[] | undefined;
|
|
8061
8168
|
}>;
|
|
8062
8169
|
export type salesforceSearchSalesforceRecordsOutputType = z.infer<typeof salesforceSearchSalesforceRecordsOutputSchema>;
|
|
@@ -295,6 +295,10 @@ export const slackUserSearchSlackParamsSchema = z.object({
|
|
|
295
295
|
.lte(100)
|
|
296
296
|
.describe("Max matches to request (passed to Slack search; results are then hydrated and sorted newest-first).")
|
|
297
297
|
.default(50),
|
|
298
|
+
fetchAdjacentMessages: z
|
|
299
|
+
.boolean()
|
|
300
|
+
.describe("Fetch surrounding messages for context. Threads always fetch all replies.")
|
|
301
|
+
.default(true),
|
|
298
302
|
});
|
|
299
303
|
export const slackUserSearchSlackOutputSchema = z.object({
|
|
300
304
|
query: z.string().describe("The exact query string sent to Slack’s search API after resolving inputs."),
|
|
@@ -3837,17 +3841,25 @@ export const salesforceSearchAllSalesforceRecordsParamsSchema = z.object({
|
|
|
3837
3841
|
});
|
|
3838
3842
|
export const salesforceSearchAllSalesforceRecordsOutputSchema = z.object({
|
|
3839
3843
|
success: z.boolean().describe("Whether the records were successfully retrieved"),
|
|
3840
|
-
|
|
3844
|
+
results: z
|
|
3841
3845
|
.array(z
|
|
3842
3846
|
.object({
|
|
3843
|
-
|
|
3844
|
-
|
|
3847
|
+
name: z.string().describe("The name of the record").optional(),
|
|
3848
|
+
url: z.string().describe("The URL of the record").optional(),
|
|
3849
|
+
contents: z
|
|
3845
3850
|
.object({
|
|
3846
|
-
|
|
3847
|
-
|
|
3851
|
+
id: z.string().describe("The Salesforce record ID").optional(),
|
|
3852
|
+
attributes: z
|
|
3853
|
+
.object({
|
|
3854
|
+
type: z.string().describe("The Salesforce object type"),
|
|
3855
|
+
url: z.string().describe("The Salesforce record URL"),
|
|
3856
|
+
})
|
|
3857
|
+
.catchall(z.any())
|
|
3858
|
+
.describe("Metadata about the Salesforce record")
|
|
3859
|
+
.optional(),
|
|
3848
3860
|
})
|
|
3849
3861
|
.catchall(z.any())
|
|
3850
|
-
.describe("
|
|
3862
|
+
.describe("The contents of the record")
|
|
3851
3863
|
.optional(),
|
|
3852
3864
|
})
|
|
3853
3865
|
.describe("A record from Salesforce"))
|
|
@@ -3881,6 +3893,7 @@ export const salesforceSearchSalesforceRecordsOutputSchema = z.object({
|
|
|
3881
3893
|
.describe("Metadata about the Salesforce record")
|
|
3882
3894
|
.optional(),
|
|
3883
3895
|
})
|
|
3896
|
+
.catchall(z.any())
|
|
3884
3897
|
.describe("The contents of the record")
|
|
3885
3898
|
.optional(),
|
|
3886
3899
|
})
|
|
@@ -8,30 +8,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
function getConfluenceRequestConfig(baseUrl, username, apiToken) {
|
|
14
|
+
return {
|
|
18
15
|
baseURL: baseUrl,
|
|
19
16
|
headers: {
|
|
20
17
|
Accept: "application/json",
|
|
21
|
-
// Tokens are associated with a specific user.
|
|
22
18
|
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
|
23
19
|
},
|
|
24
|
-
}
|
|
25
|
-
return api;
|
|
20
|
+
};
|
|
26
21
|
}
|
|
27
22
|
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
28
|
-
const { pageId,
|
|
29
|
-
const { baseUrl, authToken } = authParams;
|
|
30
|
-
|
|
23
|
+
const { pageId, content, title } = params;
|
|
24
|
+
const { baseUrl, authToken, username } = authParams;
|
|
25
|
+
if (!baseUrl || !authToken || !username) {
|
|
26
|
+
throw new Error("Missing required authentication information");
|
|
27
|
+
}
|
|
28
|
+
const config = getConfluenceRequestConfig(baseUrl, username, authToken);
|
|
31
29
|
// Get current version number
|
|
32
|
-
const response = yield
|
|
30
|
+
const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
|
|
33
31
|
const currVersion = response.data.version.number;
|
|
34
|
-
|
|
32
|
+
const payload = {
|
|
35
33
|
id: pageId,
|
|
36
34
|
status: "current",
|
|
37
35
|
title,
|
|
@@ -42,6 +40,7 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
|
|
|
42
40
|
version: {
|
|
43
41
|
number: currVersion + 1,
|
|
44
42
|
},
|
|
45
|
-
}
|
|
43
|
+
};
|
|
44
|
+
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
|
46
45
|
});
|
|
47
46
|
exports.default = confluenceUpdatePage;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const fillTemplateAction = (_a) => __awaiter(void 0, [_a], void 0, function* ({ template }) {
|
|
13
|
+
// Simply return the template without any modification
|
|
14
|
+
return {
|
|
15
|
+
result: template,
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
exports.default = fillTemplateAction;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
|
16
|
+
const genericApiCall = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, }) {
|
|
17
|
+
try {
|
|
18
|
+
const { endpoint, method, headers, body } = params;
|
|
19
|
+
const response = yield (0, axios_1.default)({
|
|
20
|
+
url: endpoint,
|
|
21
|
+
method,
|
|
22
|
+
headers,
|
|
23
|
+
data: method !== "GET" ? body : undefined,
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
statusCode: response.status,
|
|
27
|
+
headers: response.headers,
|
|
28
|
+
data: response.data,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (axios_1.default.isAxiosError(error)) {
|
|
33
|
+
throw Error("Axios Error: " + (error.message || "Failed to make API call"));
|
|
34
|
+
}
|
|
35
|
+
throw Error("Error: " + (error || "Failed to make API call"));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
exports.default = genericApiCall;
|