Skip to main content
POST
/
api
/
v1
/
automation_versions
/
search
Typescript (SDK)
import { ConductoroneSDKTypescript } from "conductorone-sdk-typescript";

const conductoroneSDKTypescript = new ConductoroneSDKTypescript({
  security: {
    bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
    oauth: "<YOUR_OAUTH_HERE>",
  },
});

async function run() {
  const result = await conductoroneSDKTypescript.automationSearch.searchAutomationTemplateVersions();

  console.log(result);
}

run();
{
  "list": [
    {
      "automationSteps": [
        {
          "accountLifecycleAction": {
            "accountInContext": {},
            "accountRef": {
              "accountIdCel": "<string>"
            },
            "actionName": "<string>",
            "connectorRef": {
              "appId": "<string>",
              "id": "<string>"
            }
          },
          "callFunction": {
            "args": {},
            "functionId": "<string>"
          },
          "connectorAction": {
            "actionName": "<string>",
            "argsTemplate": {},
            "connectorRef": {
              "appId": "<string>",
              "id": "<string>"
            }
          },
          "connectorCreateAccount": {
            "connectorRef": {
              "appId": "<string>",
              "id": "<string>"
            },
            "userIdCel": "<string>",
            "userProperties": {
              "displayNameCel": "<string>",
              "emailCel": "<string>",
              "profileAttributeCel": "<string>",
              "usernameCel": "<string>"
            }
          },
          "createAccessReview": {
            "accessReviewTemplateCel": "<string>",
            "accessReviewTemplateId": "<string>",
            "campaignName": "<string>",
            "useSubjectUser": true,
            "userIdsCel": "<string>",
            "userRefs": [
              {
                "id": "<string>"
              }
            ]
          },
          "createRevokeTasks": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ],
            "appEntitlementRefsCel": "<string>",
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ],
            "excludedAppEntitlementRefsCel": "<string>",
            "revokeAll": true,
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "grantEntitlements": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ],
            "appEntitlementRefsCel": "<string>",
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "removeFromDelegation": {
            "replacementUserIdCel": "<string>",
            "replacementUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "runAutomation": {
            "automationTemplateIdCel": "<string>",
            "automationTemplateRef": {
              "id": "<string>"
            },
            "context": {
              "context": {}
            }
          },
          "sendEmail": {
            "body": "<string>",
            "subject": "<string>",
            "title": "<string>",
            "useSubjectUser": true,
            "userIdsCel": "<string>",
            "userRefs": [
              {
                "id": "<string>"
              }
            ]
          },
          "sendSlackMessage": {
            "body": "<string>",
            "channelName": "<string>",
            "channelNameCel": "<string>"
          },
          "skipIfTrueCel": "<string>",
          "stepDisplayName": "<string>",
          "stepName": "<string>",
          "taskAction": {
            "close": {
              "useSubjectUser": true,
              "userIdCel": "<string>",
              "userRef": {
                "id": "<string>"
              }
            },
            "reassign": {
              "assigneeUserIdCel": "<string>",
              "assigneeUserRef": {
                "id": "<string>"
              },
              "subjectUserIdCel": "<string>",
              "subjectUserRef": {
                "id": "<string>"
              },
              "useSubjectUser": true
            },
            "taskTypes": [
              "TASK_TYPE_UNSPECIFIED"
            ],
            "taskUserRelation": "TASK_USER_RELATION_UNSPECIFIED"
          },
          "unenrollFromAllAccessProfiles": {
            "catalogIds": [
              "<string>"
            ],
            "catalogIdsCel": "<string>",
            "useSubjectUser": true,
            "userIdsCel": "<string>",
            "userRefs": [
              {
                "id": "<string>"
              }
            ]
          },
          "updateUser": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            },
            "userStatusCel": "<string>",
            "userStatusEnum": "UNKNOWN"
          },
          "waitForDuration": {
            "duration": "<string>"
          },
          "webhook": {
            "payload": {},
            "webhookId": "<string>",
            "webhookIdCel": "<string>"
          }
        }
      ],
      "automationTemplateId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z",
      "triggers": [
        {
          "accessConflict": {
            "allConflictMonitors": true,
            "conflictMonitorRefs": {
              "conflictMonitorRefs": [
                {
                  "id": "<string>"
                }
              ]
            }
          },
          "appUserCreated": {
            "appId": "<string>",
            "appIdCel": "<string>",
            "condition": "<string>"
          },
          "appUserUpdated": {
            "appId": "<string>",
            "appIdCel": "<string>",
            "condition": "<string>"
          },
          "form": {
            "form": {
              "description": "<string>",
              "displayName": "<string>",
              "fieldRelationships": [
                {
                  "atLeastOne": {},
                  "fieldNames": [
                    "<string>"
                  ],
                  "mutuallyExclusive": {},
                  "requiredTogether": {}
                }
              ],
              "fields": [
                {
                  "boolField": {
                    "checkboxField": {},
                    "defaultValue": true,
                    "rules": {
                      "const": true
                    }
                  },
                  "description": "<string>",
                  "displayName": "<string>",
                  "fileField": {
                    "acceptedFileTypes": [
                      "<string>"
                    ],
                    "fileInputField": {},
                    "maxFileSize": "<string>"
                  },
                  "int64Field": {
                    "defaultValue": "<string>",
                    "numberField": {
                      "maxValue": "<string>",
                      "minValue": "<string>",
                      "step": "<string>"
                    },
                    "placeholder": "<string>",
                    "rules": {
                      "const": "<string>",
                      "gt": "<string>",
                      "gte": "<string>",
                      "ignoreEmpty": true,
                      "in": [
                        "<string>"
                      ],
                      "lt": "<string>",
                      "lte": "<string>",
                      "notIn": [
                        "<string>"
                      ]
                    }
                  },
                  "name": "<string>",
                  "stringField": {
                    "defaultValue": "<string>",
                    "passwordField": {},
                    "placeholder": "<string>",
                    "rules": {
                      "address": true,
                      "const": "<string>",
                      "contains": "<string>",
                      "email": true,
                      "hostname": true,
                      "ignoreEmpty": true,
                      "in": [
                        "<string>"
                      ],
                      "ip": true,
                      "ipv4": true,
                      "ipv6": true,
                      "len": "<string>",
                      "lenBytes": "<string>",
                      "maxBytes": "<string>",
                      "maxLen": "<string>",
                      "minBytes": "<string>",
                      "minLen": "<string>",
                      "notContains": "<string>",
                      "notIn": [
                        "<string>"
                      ],
                      "pattern": "<string>",
                      "prefix": "<string>",
                      "strict": true,
                      "suffix": "<string>",
                      "uri": true,
                      "uriRef": true,
                      "uuid": true,
                      "wellKnownRegex": "UNKNOWN"
                    },
                    "selectField": {
                      "options": [
                        {
                          "displayName": "<string>",
                          "value": "<string>"
                        }
                      ]
                    },
                    "textField": {
                      "multiline": true
                    }
                  },
                  "stringSliceField": {
                    "chipsField": {},
                    "defaultValues": [
                      "<string>"
                    ],
                    "placeholder": "<string>",
                    "rules": {
                      "ignoreEmpty": true,
                      "items": {
                        "any": {
                          "in": [
                            "<string>"
                          ],
                          "notIn": [
                            "<string>"
                          ],
                          "required": true
                        },
                        "bool": {
                          "const": true
                        },
                        "bytes": {
                          "const": "aSDinaTvuI8gbWludGxpZnk=",
                          "contains": "aSDinaTvuI8gbWludGxpZnk=",
                          "ignoreEmpty": true,
                          "in": [
                            "aSDinaTvuI8gbWludGxpZnk="
                          ],
                          "ip": true,
                          "ipv4": true,
                          "ipv6": true,
                          "len": "<string>",
                          "maxLen": "<string>",
                          "minLen": "<string>",
                          "notIn": [
                            "aSDinaTvuI8gbWludGxpZnk="
                          ],
                          "pattern": "<string>",
                          "prefix": "aSDinaTvuI8gbWludGxpZnk=",
                          "suffix": "aSDinaTvuI8gbWludGxpZnk="
                        },
                        "double": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "duration": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ],
                          "required": true
                        },
                        "enum": {
                          "const": 123,
                          "definedOnly": true,
                          "in": [
                            123
                          ],
                          "notIn": [
                            123
                          ]
                        },
                        "fixed32": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "fixed64": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ]
                        },
                        "float": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "int32": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "int64": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ]
                        },
                        "map": {
                          "ignoreEmpty": true,
                          "keys": "<unknown>",
                          "maxPairs": "<string>",
                          "minPairs": "<string>",
                          "noSparse": true,
                          "values": "<unknown>"
                        },
                        "message": {
                          "required": true,
                          "skip": true
                        },
                        "repeated": "<unknown>",
                        "sfixed32": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "sfixed64": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ]
                        },
                        "sint32": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "sint64": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ]
                        },
                        "string": {
                          "address": true,
                          "const": "<string>",
                          "contains": "<string>",
                          "email": true,
                          "hostname": true,
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "ip": true,
                          "ipv4": true,
                          "ipv6": true,
                          "len": "<string>",
                          "lenBytes": "<string>",
                          "maxBytes": "<string>",
                          "maxLen": "<string>",
                          "minBytes": "<string>",
                          "minLen": "<string>",
                          "notContains": "<string>",
                          "notIn": [
                            "<string>"
                          ],
                          "pattern": "<string>",
                          "prefix": "<string>",
                          "strict": true,
                          "suffix": "<string>",
                          "uri": true,
                          "uriRef": true,
                          "uuid": true,
                          "wellKnownRegex": "UNKNOWN"
                        },
                        "timestamp": {
                          "const": "2023-11-07T05:31:56Z",
                          "gt": "2023-11-07T05:31:56Z",
                          "gtNow": true,
                          "gte": "2023-11-07T05:31:56Z",
                          "lt": "2023-11-07T05:31:56Z",
                          "ltNow": true,
                          "lte": "2023-11-07T05:31:56Z",
                          "required": true,
                          "within": "<string>"
                        },
                        "uint32": {
                          "const": 123,
                          "gt": 123,
                          "gte": 123,
                          "ignoreEmpty": true,
                          "in": [
                            123
                          ],
                          "lt": 123,
                          "lte": 123,
                          "notIn": [
                            123
                          ]
                        },
                        "uint64": {
                          "const": "<string>",
                          "gt": "<string>",
                          "gte": "<string>",
                          "ignoreEmpty": true,
                          "in": [
                            "<string>"
                          ],
                          "lt": "<string>",
                          "lte": "<string>",
                          "notIn": [
                            "<string>"
                          ]
                        }
                      },
                      "maxItems": "<string>",
                      "minItems": "<string>",
                      "unique": true
                    }
                  }
                }
              ],
              "id": "<string>"
            }
          },
          "grantDeleted": {
            "grantTriggerFilter": {
              "accountFilter": {
                "accountType": "APP_USER_TYPE_UNSPECIFIED"
              },
              "entitlementFilter": {
                "appEntitlementRefs": [
                  {
                    "appId": "<string>",
                    "id": "<string>"
                  }
                ],
                "appEntitlementRefsCel": "<string>",
                "appId": "<string>"
              },
              "grantFilter": {
                "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
                "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
                "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
              }
            }
          },
          "grantFound": {
            "grantTriggerFilter": {
              "accountFilter": {
                "accountType": "APP_USER_TYPE_UNSPECIFIED"
              },
              "entitlementFilter": {
                "appEntitlementRefs": [
                  {
                    "appId": "<string>",
                    "id": "<string>"
                  }
                ],
                "appEntitlementRefsCel": "<string>",
                "appId": "<string>"
              },
              "grantFilter": {
                "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
                "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
                "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
              }
            }
          },
          "manual": {},
          "schedule": {
            "advanced": true,
            "condition": "<string>",
            "cronSpec": "<string>",
            "skipIfTrueCel": "<string>",
            "start": "2023-11-07T05:31:56Z",
            "timezone": "<string>"
          },
          "scheduleAppUser": {
            "appId": "<string>",
            "condition": "<string>",
            "cronSpec": "<string>",
            "start": "2023-11-07T05:31:56Z",
            "timezone": "<string>"
          },
          "usageBasedRevocation": {
            "appId": "<string>",
            "enabledAt": "2023-11-07T05:31:56Z",
            "excludedGroupRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ],
            "excludedUserRefs": [
              {
                "id": "<string>"
              }
            ],
            "includeUsersWithNoActivity": true,
            "runDelayed": {
              "coldStartDelayDays": 123
            },
            "runImmediately": {},
            "targetedAppUserTypes": [
              "APP_USER_TYPE_UNSPECIFIED"
            ],
            "targetedEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ],
            "unusedForDays": 123
          },
          "userCreated": {
            "condition": "<string>"
          },
          "userProfileChange": {
            "condition": "<string>"
          },
          "webhook": {
            "hmac": {},
            "jwt": {
              "jwksUrl": "<string>"
            },
            "listenerId": "<string>"
          }
        }
      ],
      "updatedAt": "2023-11-07T05:31:56Z",
      "version": "<string>"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The SearchAutomationTemplateVersionsRequest message.

automationTemplateId
string | null

The automationTemplateId field.

pageSize
integer<int32> | null

The pageSize field.

pageToken
string | null

The pageToken field.

Response

200 - application/json

Successful response

The SearchAutomationTemplateVersionsResponse message.

list
Automation Template Version · object[] | null

The list field.

nextPageToken
string | null

The nextPageToken field.