@credal/actions 0.2.3 → 0.2.5
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/actionMapper.js +69 -1
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +11 -0
- package/dist/actions/autogen/templates.js +888 -0
- package/dist/actions/autogen/types.d.ts +997 -0
- package/dist/actions/autogen/types.js +290 -0
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/groups.js +17 -1
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +43 -0
- package/dist/actions/providers/credal/callCopilot.d.ts +3 -0
- package/dist/actions/providers/credal/callCopilot.js +36 -0
- package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
- package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/math/index.d.ts +1 -0
- package/dist/actions/providers/math/index.js +37 -0
- package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
- package/dist/actions/providers/okta/addUserToGroup.js +56 -0
- package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaGroup.js +73 -0
- package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaUser.js +40 -0
- package/dist/actions/providers/okta/listMFA.d.ts +3 -0
- package/dist/actions/providers/okta/listMFA.js +52 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
- package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroups.js +92 -0
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
- package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUsers.js +100 -0
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
- package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
- package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
- package/dist/actions/providers/okta/resetMFA.js +62 -0
- package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
- package/dist/actions/providers/okta/resetPassword.js +57 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
- package/dist/actions/providers/slack/index.d.ts +1 -0
- package/dist/actions/providers/slack/index.js +37 -0
- package/dist/actions/providers/slack/listConversations.d.ts +3 -0
- package/dist/actions/providers/slack/listConversations.js +41 -0
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/main.js +11 -0
- package/package.json +1 -1
- package/dist/server.d.ts +0 -2
- package/dist/server.js +0 -8
@@ -5919,6 +5919,894 @@ export const googlemailListGmailThreadsDefinition = {
|
|
5919
5919
|
name: "listGmailThreads",
|
5920
5920
|
provider: "googlemail",
|
5921
5921
|
};
|
5922
|
+
export const oktaGetOktaUserDefinition = {
|
5923
|
+
description: "Retrieve details of a specific Okta user by their ID.",
|
5924
|
+
scopes: ["okta.users.read"],
|
5925
|
+
parameters: {
|
5926
|
+
type: "object",
|
5927
|
+
required: ["userId"],
|
5928
|
+
properties: {
|
5929
|
+
userId: {
|
5930
|
+
type: "string",
|
5931
|
+
description: "The ID of the user to retrieve.",
|
5932
|
+
},
|
5933
|
+
},
|
5934
|
+
},
|
5935
|
+
output: {
|
5936
|
+
type: "object",
|
5937
|
+
required: ["success"],
|
5938
|
+
properties: {
|
5939
|
+
success: {
|
5940
|
+
type: "boolean",
|
5941
|
+
description: "Whether the user details were successfully retrieved.",
|
5942
|
+
},
|
5943
|
+
user: {
|
5944
|
+
type: "object",
|
5945
|
+
required: ["id"],
|
5946
|
+
properties: {
|
5947
|
+
id: {
|
5948
|
+
type: "string",
|
5949
|
+
description: "The user's Okta ID",
|
5950
|
+
},
|
5951
|
+
status: {
|
5952
|
+
type: "string",
|
5953
|
+
description: "The user's status",
|
5954
|
+
},
|
5955
|
+
created: {
|
5956
|
+
type: "string",
|
5957
|
+
description: "The timestamp when the user was created",
|
5958
|
+
},
|
5959
|
+
activated: {
|
5960
|
+
type: "string",
|
5961
|
+
description: "The timestamp when the user was activated",
|
5962
|
+
},
|
5963
|
+
statusChanged: {
|
5964
|
+
type: "string",
|
5965
|
+
description: "The timestamp when the user's status changed",
|
5966
|
+
},
|
5967
|
+
lastLogin: {
|
5968
|
+
type: "string",
|
5969
|
+
description: "The timestamp of the user's last login",
|
5970
|
+
},
|
5971
|
+
lastUpdated: {
|
5972
|
+
type: "string",
|
5973
|
+
description: "The timestamp of the user's last update",
|
5974
|
+
},
|
5975
|
+
passwordChanged: {
|
5976
|
+
type: "string",
|
5977
|
+
description: "The timestamp when the user's password was last changed",
|
5978
|
+
},
|
5979
|
+
profile: {
|
5980
|
+
type: "object",
|
5981
|
+
description: "The user's profile information",
|
5982
|
+
properties: {
|
5983
|
+
login: {
|
5984
|
+
type: "string",
|
5985
|
+
description: "The user's login",
|
5986
|
+
},
|
5987
|
+
firstName: {
|
5988
|
+
type: "string",
|
5989
|
+
description: "The user's first name",
|
5990
|
+
},
|
5991
|
+
lastName: {
|
5992
|
+
type: "string",
|
5993
|
+
description: "The user's last name",
|
5994
|
+
},
|
5995
|
+
nickName: {
|
5996
|
+
type: "string",
|
5997
|
+
description: "The user's nickname",
|
5998
|
+
},
|
5999
|
+
displayName: {
|
6000
|
+
type: "string",
|
6001
|
+
description: "The user's display name",
|
6002
|
+
},
|
6003
|
+
email: {
|
6004
|
+
type: "string",
|
6005
|
+
description: "The user's email address",
|
6006
|
+
},
|
6007
|
+
secondEmail: {
|
6008
|
+
type: "string",
|
6009
|
+
description: "The user's secondary email address",
|
6010
|
+
},
|
6011
|
+
profileUrl: {
|
6012
|
+
type: "string",
|
6013
|
+
description: "The URL to the user's profile",
|
6014
|
+
},
|
6015
|
+
preferredLanguage: {
|
6016
|
+
type: "string",
|
6017
|
+
description: "The user's preferred language",
|
6018
|
+
},
|
6019
|
+
userType: {
|
6020
|
+
type: "string",
|
6021
|
+
description: "The user's type",
|
6022
|
+
},
|
6023
|
+
organization: {
|
6024
|
+
type: "string",
|
6025
|
+
description: "The user's organization",
|
6026
|
+
},
|
6027
|
+
title: {
|
6028
|
+
type: "string",
|
6029
|
+
description: "The user's title",
|
6030
|
+
},
|
6031
|
+
division: {
|
6032
|
+
type: "string",
|
6033
|
+
description: "The user's division",
|
6034
|
+
},
|
6035
|
+
department: {
|
6036
|
+
type: "string",
|
6037
|
+
description: "The user's department",
|
6038
|
+
},
|
6039
|
+
costCenter: {
|
6040
|
+
type: "string",
|
6041
|
+
description: "The user's cost center",
|
6042
|
+
},
|
6043
|
+
employeeNumber: {
|
6044
|
+
type: "string",
|
6045
|
+
description: "The user's employee number",
|
6046
|
+
},
|
6047
|
+
mobilePhone: {
|
6048
|
+
type: "string",
|
6049
|
+
description: "The user's mobile phone number",
|
6050
|
+
},
|
6051
|
+
primaryPhone: {
|
6052
|
+
type: "string",
|
6053
|
+
description: "The user's primary phone number",
|
6054
|
+
},
|
6055
|
+
streetAddress: {
|
6056
|
+
type: "string",
|
6057
|
+
description: "The user's street address",
|
6058
|
+
},
|
6059
|
+
city: {
|
6060
|
+
type: "string",
|
6061
|
+
description: "The user's city",
|
6062
|
+
},
|
6063
|
+
state: {
|
6064
|
+
type: "string",
|
6065
|
+
description: "The user's state",
|
6066
|
+
},
|
6067
|
+
zipCode: {
|
6068
|
+
type: "string",
|
6069
|
+
description: "The user's zip code",
|
6070
|
+
},
|
6071
|
+
countryCode: {
|
6072
|
+
type: "string",
|
6073
|
+
description: "The user's country code",
|
6074
|
+
},
|
6075
|
+
},
|
6076
|
+
},
|
6077
|
+
credentials: {
|
6078
|
+
type: "object",
|
6079
|
+
description: "The user's credentials",
|
6080
|
+
},
|
6081
|
+
_links: {
|
6082
|
+
type: "object",
|
6083
|
+
description: "Links related to the user",
|
6084
|
+
},
|
6085
|
+
},
|
6086
|
+
},
|
6087
|
+
error: {
|
6088
|
+
type: "string",
|
6089
|
+
description: "Error message if retrieval failed.",
|
6090
|
+
},
|
6091
|
+
},
|
6092
|
+
},
|
6093
|
+
name: "getOktaUser",
|
6094
|
+
provider: "okta",
|
6095
|
+
};
|
6096
|
+
export const oktaListOktaUserGroupsDefinition = {
|
6097
|
+
description: "List all groups a specific Okta user belongs to.",
|
6098
|
+
scopes: ["okta.groups.read", "okta.users.read"],
|
6099
|
+
parameters: {
|
6100
|
+
type: "object",
|
6101
|
+
required: ["userId"],
|
6102
|
+
properties: {
|
6103
|
+
userId: {
|
6104
|
+
type: "string",
|
6105
|
+
description: "The ID of the user whose groups are to be listed.",
|
6106
|
+
},
|
6107
|
+
maxResults: {
|
6108
|
+
type: "integer",
|
6109
|
+
description: "The maximum number of results to return.",
|
6110
|
+
minimum: 1,
|
6111
|
+
},
|
6112
|
+
},
|
6113
|
+
},
|
6114
|
+
output: {
|
6115
|
+
type: "object",
|
6116
|
+
required: ["success"],
|
6117
|
+
properties: {
|
6118
|
+
success: {
|
6119
|
+
type: "boolean",
|
6120
|
+
description: "Whether the groups were successfully retrieved.",
|
6121
|
+
},
|
6122
|
+
groups: {
|
6123
|
+
type: "array",
|
6124
|
+
description: "List of groups the user belongs to.",
|
6125
|
+
items: {
|
6126
|
+
type: "object",
|
6127
|
+
required: ["id", "profile"],
|
6128
|
+
properties: {
|
6129
|
+
id: {
|
6130
|
+
type: "string",
|
6131
|
+
description: "The group's ID.",
|
6132
|
+
},
|
6133
|
+
profile: {
|
6134
|
+
type: "object",
|
6135
|
+
required: ["name", "description"],
|
6136
|
+
properties: {
|
6137
|
+
name: {
|
6138
|
+
type: "string",
|
6139
|
+
description: "The group's name.",
|
6140
|
+
},
|
6141
|
+
description: {
|
6142
|
+
type: "string",
|
6143
|
+
description: "The group's description.",
|
6144
|
+
},
|
6145
|
+
},
|
6146
|
+
},
|
6147
|
+
},
|
6148
|
+
},
|
6149
|
+
},
|
6150
|
+
error: {
|
6151
|
+
type: "string",
|
6152
|
+
description: "Error message if retrieval failed.",
|
6153
|
+
},
|
6154
|
+
},
|
6155
|
+
},
|
6156
|
+
name: "listOktaUserGroups",
|
6157
|
+
provider: "okta",
|
6158
|
+
};
|
6159
|
+
export const oktaListOktaGroupsDefinition = {
|
6160
|
+
description: "List all groups in Okta.",
|
6161
|
+
scopes: ["okta.groups.read"],
|
6162
|
+
parameters: {
|
6163
|
+
type: "object",
|
6164
|
+
required: [],
|
6165
|
+
properties: {
|
6166
|
+
searchQuery: {
|
6167
|
+
type: "string",
|
6168
|
+
description: "Optional search query to filter groups.\nThis field corresponds to the `search` query parameter in the Okta API's List Groups operation.\nFor detailed information on constructing search queries and available filter expressions, refer to the Okta API documentation:\nhttps://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!in=query&path=search&t=request\nExample: 'profile.name eq \"My Group\"'\n",
|
6169
|
+
},
|
6170
|
+
maxResults: {
|
6171
|
+
type: "integer",
|
6172
|
+
description: "The maximum number of results to return.",
|
6173
|
+
minimum: 1,
|
6174
|
+
},
|
6175
|
+
},
|
6176
|
+
},
|
6177
|
+
output: {
|
6178
|
+
type: "object",
|
6179
|
+
required: ["success"],
|
6180
|
+
properties: {
|
6181
|
+
success: {
|
6182
|
+
type: "boolean",
|
6183
|
+
description: "Whether the groups were successfully retrieved.",
|
6184
|
+
},
|
6185
|
+
groups: {
|
6186
|
+
type: "array",
|
6187
|
+
description: "List of Okta groups.",
|
6188
|
+
items: {
|
6189
|
+
type: "object",
|
6190
|
+
required: ["id", "profile"],
|
6191
|
+
properties: {
|
6192
|
+
id: {
|
6193
|
+
type: "string",
|
6194
|
+
description: "The group's ID.",
|
6195
|
+
},
|
6196
|
+
profile: {
|
6197
|
+
type: "object",
|
6198
|
+
required: ["name", "description"],
|
6199
|
+
properties: {
|
6200
|
+
name: {
|
6201
|
+
type: "string",
|
6202
|
+
description: "The group's name.",
|
6203
|
+
},
|
6204
|
+
description: {
|
6205
|
+
type: "string",
|
6206
|
+
description: "The group's description.",
|
6207
|
+
},
|
6208
|
+
},
|
6209
|
+
},
|
6210
|
+
},
|
6211
|
+
},
|
6212
|
+
},
|
6213
|
+
error: {
|
6214
|
+
type: "string",
|
6215
|
+
description: "Error message if retrieval failed.",
|
6216
|
+
},
|
6217
|
+
},
|
6218
|
+
},
|
6219
|
+
name: "listOktaGroups",
|
6220
|
+
provider: "okta",
|
6221
|
+
};
|
6222
|
+
export const oktaGetOktaGroupDefinition = {
|
6223
|
+
description: "Retrieve details of a specific Okta group by its ID.",
|
6224
|
+
scopes: ["okta.groups.read"],
|
6225
|
+
parameters: {
|
6226
|
+
type: "object",
|
6227
|
+
required: ["groupId"],
|
6228
|
+
properties: {
|
6229
|
+
groupId: {
|
6230
|
+
type: "string",
|
6231
|
+
description: "The ID of the group to retrieve.",
|
6232
|
+
},
|
6233
|
+
},
|
6234
|
+
},
|
6235
|
+
output: {
|
6236
|
+
type: "object",
|
6237
|
+
required: ["success"],
|
6238
|
+
properties: {
|
6239
|
+
success: {
|
6240
|
+
type: "boolean",
|
6241
|
+
description: "Whether the group details were successfully retrieved.",
|
6242
|
+
},
|
6243
|
+
group: {
|
6244
|
+
description: "Schema for an Okta group object",
|
6245
|
+
type: "object",
|
6246
|
+
required: ["id", "profile"],
|
6247
|
+
properties: {
|
6248
|
+
id: {
|
6249
|
+
type: "string",
|
6250
|
+
description: "The unique identifier for the Okta group",
|
6251
|
+
},
|
6252
|
+
created: {
|
6253
|
+
type: "string",
|
6254
|
+
format: "date-time",
|
6255
|
+
description: "The timestamp when the group was created",
|
6256
|
+
},
|
6257
|
+
lastUpdated: {
|
6258
|
+
type: "string",
|
6259
|
+
format: "date-time",
|
6260
|
+
description: "The timestamp when the group was last updated",
|
6261
|
+
},
|
6262
|
+
lastMembershipUpdated: {
|
6263
|
+
type: "string",
|
6264
|
+
format: "date-time",
|
6265
|
+
description: "The timestamp when the group's membership was last updated",
|
6266
|
+
},
|
6267
|
+
objectClass: {
|
6268
|
+
type: "array",
|
6269
|
+
items: {
|
6270
|
+
type: "string",
|
6271
|
+
},
|
6272
|
+
description: "The object class of the group",
|
6273
|
+
},
|
6274
|
+
type: {
|
6275
|
+
type: "string",
|
6276
|
+
description: "The type of the group (e.g., OKTA_GROUP)",
|
6277
|
+
},
|
6278
|
+
profile: {
|
6279
|
+
type: "object",
|
6280
|
+
required: ["name", "description"],
|
6281
|
+
properties: {
|
6282
|
+
name: {
|
6283
|
+
type: "string",
|
6284
|
+
description: "The name of the group",
|
6285
|
+
},
|
6286
|
+
description: {
|
6287
|
+
type: "string",
|
6288
|
+
description: "The description of the group",
|
6289
|
+
},
|
6290
|
+
},
|
6291
|
+
},
|
6292
|
+
_links: {
|
6293
|
+
type: "object",
|
6294
|
+
properties: {
|
6295
|
+
logo: {
|
6296
|
+
type: "array",
|
6297
|
+
items: {
|
6298
|
+
type: "object",
|
6299
|
+
},
|
6300
|
+
description: "Links to the group's logo",
|
6301
|
+
},
|
6302
|
+
users: {
|
6303
|
+
type: "object",
|
6304
|
+
properties: {
|
6305
|
+
href: {
|
6306
|
+
type: "string",
|
6307
|
+
description: "The URL to retrieve users in the group",
|
6308
|
+
},
|
6309
|
+
},
|
6310
|
+
},
|
6311
|
+
apps: {
|
6312
|
+
type: "object",
|
6313
|
+
properties: {
|
6314
|
+
href: {
|
6315
|
+
type: "string",
|
6316
|
+
description: "The URL to retrieve apps associated with the group",
|
6317
|
+
},
|
6318
|
+
},
|
6319
|
+
},
|
6320
|
+
},
|
6321
|
+
},
|
6322
|
+
},
|
6323
|
+
},
|
6324
|
+
error: {
|
6325
|
+
type: "string",
|
6326
|
+
description: "Error message if retrieval failed.",
|
6327
|
+
},
|
6328
|
+
},
|
6329
|
+
},
|
6330
|
+
name: "getOktaGroup",
|
6331
|
+
provider: "okta",
|
6332
|
+
};
|
6333
|
+
export const oktaListOktaGroupMembersDefinition = {
|
6334
|
+
description: "List all members of a specific Okta group.",
|
6335
|
+
scopes: ["okta.groups.read", "okta.users.read"],
|
6336
|
+
parameters: {
|
6337
|
+
type: "object",
|
6338
|
+
required: ["groupId"],
|
6339
|
+
properties: {
|
6340
|
+
groupId: {
|
6341
|
+
type: "string",
|
6342
|
+
description: "The ID of the group whose members are to be listed.",
|
6343
|
+
},
|
6344
|
+
maxResults: {
|
6345
|
+
type: "integer",
|
6346
|
+
description: "The maximum number of results to return.",
|
6347
|
+
minimum: 1,
|
6348
|
+
},
|
6349
|
+
},
|
6350
|
+
},
|
6351
|
+
output: {
|
6352
|
+
type: "object",
|
6353
|
+
required: ["success"],
|
6354
|
+
properties: {
|
6355
|
+
success: {
|
6356
|
+
type: "boolean",
|
6357
|
+
description: "Whether the members were successfully retrieved.",
|
6358
|
+
},
|
6359
|
+
members: {
|
6360
|
+
type: "array",
|
6361
|
+
description: "List of members in the group.",
|
6362
|
+
items: {
|
6363
|
+
type: "object",
|
6364
|
+
properties: {
|
6365
|
+
id: {
|
6366
|
+
type: "string",
|
6367
|
+
description: "The user's ID.",
|
6368
|
+
},
|
6369
|
+
status: {
|
6370
|
+
type: "string",
|
6371
|
+
description: "The user's status.",
|
6372
|
+
},
|
6373
|
+
created: {
|
6374
|
+
type: "string",
|
6375
|
+
format: "date-time",
|
6376
|
+
description: "The timestamp when the user was created.",
|
6377
|
+
},
|
6378
|
+
activated: {
|
6379
|
+
type: "string",
|
6380
|
+
format: "date-time",
|
6381
|
+
nullable: true,
|
6382
|
+
description: "The timestamp when the user was activated.",
|
6383
|
+
},
|
6384
|
+
statusChanged: {
|
6385
|
+
type: "string",
|
6386
|
+
format: "date-time",
|
6387
|
+
nullable: true,
|
6388
|
+
description: "The timestamp when the user's status changed.",
|
6389
|
+
},
|
6390
|
+
lastLogin: {
|
6391
|
+
type: "string",
|
6392
|
+
format: "date-time",
|
6393
|
+
nullable: true,
|
6394
|
+
description: "The timestamp of the user's last login.",
|
6395
|
+
},
|
6396
|
+
lastUpdated: {
|
6397
|
+
type: "string",
|
6398
|
+
format: "date-time",
|
6399
|
+
description: "The timestamp of the user's last update.",
|
6400
|
+
},
|
6401
|
+
passwordChanged: {
|
6402
|
+
type: "string",
|
6403
|
+
format: "date-time",
|
6404
|
+
description: "The timestamp when the user's password was last changed.",
|
6405
|
+
},
|
6406
|
+
type: {
|
6407
|
+
type: "object",
|
6408
|
+
properties: {
|
6409
|
+
id: {
|
6410
|
+
type: "string",
|
6411
|
+
description: "The type ID of the user.",
|
6412
|
+
},
|
6413
|
+
},
|
6414
|
+
},
|
6415
|
+
profile: {
|
6416
|
+
type: "object",
|
6417
|
+
description: "The user's profile information.",
|
6418
|
+
properties: {
|
6419
|
+
firstName: {
|
6420
|
+
type: "string",
|
6421
|
+
description: "The user's first name.",
|
6422
|
+
},
|
6423
|
+
lastName: {
|
6424
|
+
type: "string",
|
6425
|
+
description: "The user's last name.",
|
6426
|
+
},
|
6427
|
+
mobilePhone: {
|
6428
|
+
type: "string",
|
6429
|
+
nullable: true,
|
6430
|
+
description: "The user's mobile phone number.",
|
6431
|
+
},
|
6432
|
+
secondEmail: {
|
6433
|
+
type: "string",
|
6434
|
+
nullable: true,
|
6435
|
+
description: "The user's secondary email address.",
|
6436
|
+
},
|
6437
|
+
login: {
|
6438
|
+
type: "string",
|
6439
|
+
description: "The user's login.",
|
6440
|
+
},
|
6441
|
+
email: {
|
6442
|
+
type: "string",
|
6443
|
+
description: "The user's email address.",
|
6444
|
+
},
|
6445
|
+
},
|
6446
|
+
},
|
6447
|
+
},
|
6448
|
+
},
|
6449
|
+
},
|
6450
|
+
error: {
|
6451
|
+
type: "string",
|
6452
|
+
description: "Error message if retrieval failed.",
|
6453
|
+
},
|
6454
|
+
},
|
6455
|
+
},
|
6456
|
+
name: "listOktaGroupMembers",
|
6457
|
+
provider: "okta",
|
6458
|
+
};
|
6459
|
+
export const oktaAddUserToGroupDefinition = {
|
6460
|
+
description: "Add a user to a specific Okta group.",
|
6461
|
+
scopes: ["okta.groups.manage", "okta.users.manage"],
|
6462
|
+
parameters: {
|
6463
|
+
type: "object",
|
6464
|
+
required: ["groupId", "userId"],
|
6465
|
+
properties: {
|
6466
|
+
groupId: {
|
6467
|
+
type: "string",
|
6468
|
+
description: "The ID of the group to add the user to.",
|
6469
|
+
},
|
6470
|
+
userId: {
|
6471
|
+
type: "string",
|
6472
|
+
description: "The ID of the user to add to the group.",
|
6473
|
+
},
|
6474
|
+
},
|
6475
|
+
},
|
6476
|
+
output: {
|
6477
|
+
type: "object",
|
6478
|
+
required: ["success"],
|
6479
|
+
properties: {
|
6480
|
+
success: {
|
6481
|
+
type: "boolean",
|
6482
|
+
description: "Whether the user was successfully added to the group.",
|
6483
|
+
},
|
6484
|
+
error: {
|
6485
|
+
type: "string",
|
6486
|
+
description: "Error message if the operation failed.",
|
6487
|
+
},
|
6488
|
+
},
|
6489
|
+
},
|
6490
|
+
name: "addUserToGroup",
|
6491
|
+
provider: "okta",
|
6492
|
+
};
|
6493
|
+
export const oktaRemoveUserFromGroupDefinition = {
|
6494
|
+
description: "Remove a user from a specific Okta group.",
|
6495
|
+
scopes: ["okta.groups.manage", "okta.users.manage"],
|
6496
|
+
parameters: {
|
6497
|
+
type: "object",
|
6498
|
+
required: ["groupId", "userId"],
|
6499
|
+
properties: {
|
6500
|
+
groupId: {
|
6501
|
+
type: "string",
|
6502
|
+
description: "The ID of the group to remove the user from.",
|
6503
|
+
},
|
6504
|
+
userId: {
|
6505
|
+
type: "string",
|
6506
|
+
description: "The ID of the user to remove from the group.",
|
6507
|
+
},
|
6508
|
+
},
|
6509
|
+
},
|
6510
|
+
output: {
|
6511
|
+
type: "object",
|
6512
|
+
required: ["success"],
|
6513
|
+
properties: {
|
6514
|
+
success: {
|
6515
|
+
type: "boolean",
|
6516
|
+
description: "Whether the user was successfully removed from the group.",
|
6517
|
+
},
|
6518
|
+
error: {
|
6519
|
+
type: "string",
|
6520
|
+
description: "Error message if the operation failed.",
|
6521
|
+
},
|
6522
|
+
},
|
6523
|
+
},
|
6524
|
+
name: "removeUserFromGroup",
|
6525
|
+
provider: "okta",
|
6526
|
+
};
|
6527
|
+
export const oktaListOktaUsersDefinition = {
|
6528
|
+
description: "List Okta users, optionally filtering by a search query",
|
6529
|
+
scopes: ["okta.users.read"],
|
6530
|
+
parameters: {
|
6531
|
+
type: "object",
|
6532
|
+
required: [],
|
6533
|
+
properties: {
|
6534
|
+
searchQuery: {
|
6535
|
+
type: "string",
|
6536
|
+
description: "Optional search query to filter users.\nThis field corresponds to the `search` query parameter in the Okta API's List Users operation.\nFor detailed information on constructing search queries and available filter expressions, refer to the Okta API documentation:\nhttps://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/#tag/User/operation/listUsers!in=query&path=search&t=request\nExample: 'profile.email eq \"my_user@example.com\"'\n",
|
6537
|
+
},
|
6538
|
+
maxResults: {
|
6539
|
+
type: "integer",
|
6540
|
+
description: "The maximum number of results to return.",
|
6541
|
+
minimum: 1,
|
6542
|
+
},
|
6543
|
+
},
|
6544
|
+
},
|
6545
|
+
output: {
|
6546
|
+
type: "object",
|
6547
|
+
required: ["success"],
|
6548
|
+
properties: {
|
6549
|
+
success: {
|
6550
|
+
type: "boolean",
|
6551
|
+
description: "Whether the user list was successfully retrieved",
|
6552
|
+
},
|
6553
|
+
users: {
|
6554
|
+
type: "array",
|
6555
|
+
description: "List of Okta users matching the query",
|
6556
|
+
items: {
|
6557
|
+
type: "object",
|
6558
|
+
required: ["id", "profile"],
|
6559
|
+
properties: {
|
6560
|
+
id: {
|
6561
|
+
type: "string",
|
6562
|
+
description: "The user's Okta ID",
|
6563
|
+
},
|
6564
|
+
status: {
|
6565
|
+
type: "string",
|
6566
|
+
description: "The user's status",
|
6567
|
+
},
|
6568
|
+
created: {
|
6569
|
+
type: "string",
|
6570
|
+
description: "The timestamp when the user was created",
|
6571
|
+
},
|
6572
|
+
activated: {
|
6573
|
+
type: "string",
|
6574
|
+
nullable: true,
|
6575
|
+
description: "The timestamp when the user was activated",
|
6576
|
+
},
|
6577
|
+
statusChanged: {
|
6578
|
+
type: "string",
|
6579
|
+
nullable: true,
|
6580
|
+
description: "The timestamp when the user's status changed",
|
6581
|
+
},
|
6582
|
+
lastLogin: {
|
6583
|
+
type: "string",
|
6584
|
+
nullable: true,
|
6585
|
+
description: "The timestamp of the user's last login",
|
6586
|
+
},
|
6587
|
+
lastUpdated: {
|
6588
|
+
type: "string",
|
6589
|
+
description: "The timestamp of the user's last update",
|
6590
|
+
},
|
6591
|
+
passwordChanged: {
|
6592
|
+
type: "string",
|
6593
|
+
description: "The timestamp when the user's password was last changed",
|
6594
|
+
},
|
6595
|
+
type: {
|
6596
|
+
type: "object",
|
6597
|
+
properties: {
|
6598
|
+
id: {
|
6599
|
+
type: "string",
|
6600
|
+
description: "The type ID of the user",
|
6601
|
+
},
|
6602
|
+
},
|
6603
|
+
},
|
6604
|
+
profile: {
|
6605
|
+
type: "object",
|
6606
|
+
properties: {
|
6607
|
+
firstName: {
|
6608
|
+
type: "string",
|
6609
|
+
description: "The user's first name",
|
6610
|
+
},
|
6611
|
+
lastName: {
|
6612
|
+
type: "string",
|
6613
|
+
description: "The user's last name",
|
6614
|
+
},
|
6615
|
+
mobilePhone: {
|
6616
|
+
type: "string",
|
6617
|
+
nullable: true,
|
6618
|
+
description: "The user's mobile phone number",
|
6619
|
+
},
|
6620
|
+
secondEmail: {
|
6621
|
+
type: "string",
|
6622
|
+
nullable: true,
|
6623
|
+
description: "The user's secondary email address",
|
6624
|
+
},
|
6625
|
+
login: {
|
6626
|
+
type: "string",
|
6627
|
+
description: "The user's login",
|
6628
|
+
},
|
6629
|
+
email: {
|
6630
|
+
type: "string",
|
6631
|
+
description: "The user's email address",
|
6632
|
+
},
|
6633
|
+
},
|
6634
|
+
},
|
6635
|
+
realmId: {
|
6636
|
+
type: "string",
|
6637
|
+
description: "The realm ID of the user",
|
6638
|
+
},
|
6639
|
+
},
|
6640
|
+
},
|
6641
|
+
},
|
6642
|
+
error: {
|
6643
|
+
type: "string",
|
6644
|
+
description: "Error message if user retrieval failed",
|
6645
|
+
},
|
6646
|
+
},
|
6647
|
+
},
|
6648
|
+
name: "listOktaUsers",
|
6649
|
+
provider: "okta",
|
6650
|
+
};
|
6651
|
+
export const oktaResetMFADefinition = {
|
6652
|
+
description: "Reset or remove Okta MFA for a user, including issues with Okta Verify, fingerprint, or touch ID.",
|
6653
|
+
scopes: ["okta.users.read", "okta.users.manage"],
|
6654
|
+
parameters: {
|
6655
|
+
type: "object",
|
6656
|
+
required: ["userId"],
|
6657
|
+
properties: {
|
6658
|
+
userId: {
|
6659
|
+
type: "string",
|
6660
|
+
description: "The ID of the user whose MFA needs to be reset.",
|
6661
|
+
},
|
6662
|
+
factorId: {
|
6663
|
+
type: "string",
|
6664
|
+
description: "Optional. The ID of the specific factor to reset. If not provided, all factors will be reset.",
|
6665
|
+
},
|
6666
|
+
},
|
6667
|
+
},
|
6668
|
+
output: {
|
6669
|
+
type: "object",
|
6670
|
+
required: ["success"],
|
6671
|
+
properties: {
|
6672
|
+
success: {
|
6673
|
+
type: "boolean",
|
6674
|
+
description: "Whether the MFA reset was successful.",
|
6675
|
+
},
|
6676
|
+
error: {
|
6677
|
+
type: "string",
|
6678
|
+
description: "Error message if the MFA reset failed.",
|
6679
|
+
},
|
6680
|
+
},
|
6681
|
+
},
|
6682
|
+
name: "resetMFA",
|
6683
|
+
provider: "okta",
|
6684
|
+
};
|
6685
|
+
export const oktaListMFADefinition = {
|
6686
|
+
description: "List all MFA factors for a specific user in Okta.",
|
6687
|
+
scopes: ["okta.users.read"],
|
6688
|
+
parameters: {
|
6689
|
+
type: "object",
|
6690
|
+
required: ["userId"],
|
6691
|
+
properties: {
|
6692
|
+
userId: {
|
6693
|
+
type: "string",
|
6694
|
+
description: "The ID of the user whose MFA factors need to be listed.",
|
6695
|
+
},
|
6696
|
+
},
|
6697
|
+
},
|
6698
|
+
output: {
|
6699
|
+
type: "object",
|
6700
|
+
required: ["success"],
|
6701
|
+
properties: {
|
6702
|
+
success: {
|
6703
|
+
type: "boolean",
|
6704
|
+
description: "Whether the MFA factors were successfully retrieved.",
|
6705
|
+
},
|
6706
|
+
factors: {
|
6707
|
+
type: "array",
|
6708
|
+
description: "List of MFA factors for the user.",
|
6709
|
+
items: {
|
6710
|
+
type: "object",
|
6711
|
+
required: ["id"],
|
6712
|
+
properties: {
|
6713
|
+
id: {
|
6714
|
+
type: "string",
|
6715
|
+
description: "The ID of the MFA factor.",
|
6716
|
+
},
|
6717
|
+
factorType: {
|
6718
|
+
type: "string",
|
6719
|
+
description: "The type of the MFA factor (e.g., question, sms, token:software:totp).",
|
6720
|
+
},
|
6721
|
+
provider: {
|
6722
|
+
type: "string",
|
6723
|
+
description: "The provider of the MFA factor (e.g., OKTA).",
|
6724
|
+
},
|
6725
|
+
vendorName: {
|
6726
|
+
type: "string",
|
6727
|
+
description: "The vendor name of the MFA factor.",
|
6728
|
+
},
|
6729
|
+
status: {
|
6730
|
+
type: "string",
|
6731
|
+
description: "The status of the MFA factor (e.g., ACTIVE, PENDING_ACTIVATION).",
|
6732
|
+
},
|
6733
|
+
created: {
|
6734
|
+
type: "string",
|
6735
|
+
description: "The timestamp when the MFA factor was created.",
|
6736
|
+
},
|
6737
|
+
lastUpdated: {
|
6738
|
+
type: "string",
|
6739
|
+
description: "The timestamp when the MFA factor was last updated.",
|
6740
|
+
},
|
6741
|
+
profile: {
|
6742
|
+
type: "object",
|
6743
|
+
description: "Additional profile information for the MFA factor.",
|
6744
|
+
additionalProperties: true,
|
6745
|
+
},
|
6746
|
+
_links: {
|
6747
|
+
type: "object",
|
6748
|
+
description: "Links related to the MFA factor.",
|
6749
|
+
additionalProperties: true,
|
6750
|
+
},
|
6751
|
+
_embedded: {
|
6752
|
+
type: "object",
|
6753
|
+
description: "Embedded data for the MFA factor (e.g., activation details).",
|
6754
|
+
additionalProperties: true,
|
6755
|
+
},
|
6756
|
+
},
|
6757
|
+
},
|
6758
|
+
},
|
6759
|
+
error: {
|
6760
|
+
type: "string",
|
6761
|
+
description: "Error message if the MFA factors could not be retrieved.",
|
6762
|
+
},
|
6763
|
+
},
|
6764
|
+
},
|
6765
|
+
name: "listMFA",
|
6766
|
+
provider: "okta",
|
6767
|
+
};
|
6768
|
+
export const oktaResetPasswordDefinition = {
|
6769
|
+
description: "Reset a user's Okta password when they are unable to log in or have forgotten their password.",
|
6770
|
+
scopes: ["okta.users.manage"],
|
6771
|
+
parameters: {
|
6772
|
+
type: "object",
|
6773
|
+
required: ["userId", "sendEmail"],
|
6774
|
+
properties: {
|
6775
|
+
userId: {
|
6776
|
+
type: "string",
|
6777
|
+
description: "The ID of the user whose password needs to be reset.",
|
6778
|
+
},
|
6779
|
+
sendEmail: {
|
6780
|
+
type: "boolean",
|
6781
|
+
description: "Whether to send a password reset email to the user.",
|
6782
|
+
},
|
6783
|
+
revokeSessions: {
|
6784
|
+
type: "boolean",
|
6785
|
+
description: "Whether to revoke all active sessions for the user after the password reset.",
|
6786
|
+
},
|
6787
|
+
},
|
6788
|
+
},
|
6789
|
+
output: {
|
6790
|
+
type: "object",
|
6791
|
+
required: ["success"],
|
6792
|
+
properties: {
|
6793
|
+
success: {
|
6794
|
+
type: "boolean",
|
6795
|
+
description: "Whether the password reset was successful.",
|
6796
|
+
},
|
6797
|
+
error: {
|
6798
|
+
type: "string",
|
6799
|
+
description: "Error message if the password reset failed.",
|
6800
|
+
},
|
6801
|
+
resetPasswordUrl: {
|
6802
|
+
type: "string",
|
6803
|
+
description: "The URL for resetting the password manually.",
|
6804
|
+
},
|
6805
|
+
},
|
6806
|
+
},
|
6807
|
+
name: "resetPassword",
|
6808
|
+
provider: "okta",
|
6809
|
+
};
|
5922
6810
|
export const gongGetGongTranscriptsDefinition = {
|
5923
6811
|
description: "Get sales call transcripts from Gong",
|
5924
6812
|
scopes: [],
|