diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index de7fab4..cc49552 100644 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal rmdir samples || true mkdir samples -npm install -npm install -g ts-node +npm install --ignore-scripts +npm install -g ts-node --ignore-scripts npm link npm link opal-mcp TS_CONFIG_CONTENT=$(cat <", "item_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "stages": [{"stage": 421013, "operator": "OR", "reviewers": []}]}]}} getResources: "": parameters: @@ -2706,14 +5914,14 @@ examples: page_size: 200 responses: "200": - application/json: {"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", "previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", "results": [{"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}}, {"uar_id": "39a4d283-ca87-4a8a-bdbb-df212eca5fdb", "name": "Monthly UAR (August)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": true, "deadline": "2022-08-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}}]} + application/json: {"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", "previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", "results": [{"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "instantly_action_reviews": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}}, {"uar_id": "39a4d283-ca87-4a8a-bdbb-df212eca5fdb", "name": "Monthly UAR (August)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": true, "deadline": "2022-08-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "instantly_action_reviews": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}}]} create_uar: speakeasy-default-create-uar: requestBody: application/json: {"name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "reminder_schedule": [7, 3, 1, 0], "reminder_include_manager": true, "uar_scope": {"group_visibility": "STRICT", "admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}} responses: "200": - application/json: {"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}} + application/json: {"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "instantly_action_reviews": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}} get_uar: "": parameters: @@ -2728,7 +5936,7 @@ examples: uar_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" responses: "200": - application/json: {"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}} + application/json: {"uar_id": "f454d283-ca87-4a8a-bdbb-df212eca5353", "name": "Monthly UAR (July)", "reviewer_assignment_policy": "MANUALLY", "send_reviewer_assignment_notification": false, "deadline": "2022-07-14T06:59:59Z", "time_zone": "America/Los_Angeles", "self_review_allowed": false, "instantly_action_reviews": false, "uar_scope": {"admins": ["f454d283-ca87-4a8a-bdbb-df212eca5353", "8763d283-ca87-4a8a-bdbb-df212ecab139"], "tags": [{"key": "uar_scope", "value": "high_priority"}], "names": ["demo", "api"]}} update_group_user: speakeasy-default-update-group-user: parameters: @@ -2739,7 +5947,7 @@ examples: application/json: {"duration_minutes": 60, "access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess"} responses: "200": - application/json: {"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac", "full_name": "Jake Barnes", "email": "jake@company.dev", "expiration_date": "2022-01-23T04:56:07Z"} + application/json: {"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "group_name": "API Group", "description": "Group required to request API's", "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac", "full_name": "Jake Barnes", "email": "jake@company.dev", "expiration_date": "2022-01-23T04:56:07Z"} getRequest: speakeasy-default-get-request: parameters: @@ -2747,7 +5955,7 @@ examples: id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" responses: "200": - application/json: {"id": "7c86c85d-0651-43e2-a748-d69d658418e8", "created_at": "2021-01-06T20:00:00Z", "updated_at": "2021-01-06T20:00:00Z", "requester_id": "c86c85d-0651-43e2-a748-d69d658418e8", "target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8", "target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8", "status": "APPROVED", "reason": "I need this resource.", "duration_minutes": 1440, "stages": {"requestedRoleName": "Admin", "requestedItemName": "AWS Production Account", "stages": [{"stage": 1, "operator": "AND", "reviewers": [{"id": "7c86c85d-0651-43e2-a748-d69d658418e8", "status": "PENDING"}]}, {"stage": 2, "operator": "OR", "reviewers": [{"id": "8d86c85d-0651-43e2-a748-d69d658418e9", "status": "APPROVED"}]}]}} + application/json: {"id": "7c86c85d-0651-43e2-a748-d69d658418e8", "created_at": "2021-01-06T20:00:00Z", "updated_at": "2021-01-06T20:00:00Z", "requester_id": "c86c85d-0651-43e2-a748-d69d658418e8", "target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8", "target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8", "status": "APPROVED", "reason": "I need this resource.", "duration_minutes": 1440, "reviewer_stages": []} get_resource_scoped_role_permissions: speakeasy-default-get-resource-scoped-role-permissions: parameters: @@ -2766,5 +5974,1032 @@ examples: responses: "200": application/json: {"permissions": [{"target_ids": ["a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1", "8294e9c9-deb6-48e9-9c99-da2a1e04a87f"], "target_type": "RESOURCE", "permission_name": "READ", "allow_all": false}]} + get_user_groups: + speakeasy-default-get-user-groups: + parameters: + path: + user_id: "1b978423-db0a-4037-a4cf-f79c60cb67b3" + query: + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + page_size: 200 + responses: + "200": + application/json: {"results": [{"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "group_name": "API Group", "description": "Group required to request API's", "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac", "full_name": "Jake Barnes", "email": "jake@company.dev", "expiration_date": "2022-01-23T04:56:07Z"}, {"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "group_name": "API Group", "description": "Group required to request API's", "user_id": "7646aa9a-e2ee-4eb5-8c62-91f29038a373", "full_name": "Brett Ashley", "email": "brett@company.dev", "expiration_date": "2022-02-03T12:33:02Z"}], "next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", "previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ"} + getIdpGroupMapping: + speakeasy-default-get-idp-group-mapping: + parameters: + path: + app_resource_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" + group_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" + responses: + "200": + application/json: {"app_resource_id": "1520617d-e72a-47f5-a84c-693817ab48ad2", "group_id": "6f99639b-7928-4043-8184-47cbc6766145", "alias": "finance-team", "hidden_from_end_user": false} + createIdpGroupMapping: + speakeasy-default-create-idp-group-mapping: + parameters: + path: + app_resource_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" + group_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" + responses: + "200": + application/json: {"app_resource_id": "1520617d-e72a-47f5-a84c-693817ab48ad2", "group_id": "6f99639b-7928-4043-8184-47cbc6766145", "alias": "finance-team", "hidden_from_end_user": false} + denyRequest: + speakeasy-default-deny-request: + parameters: + path: + id: "83015915-58ae-4cce-b92d-608ff073ece1" + requestBody: + application/json: {"comment": "Denied due to insufficient justification", "level": "REGULAR"} + responses: + "200": + application/json: {"request": {"id": "7c86c85d-0651-43e2-a748-d69d658418e8", "created_at": "2021-01-06T20:00:00Z", "updated_at": "2021-01-06T20:00:00Z", "requester_id": "c86c85d-0651-43e2-a748-d69d658418e8", "target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8", "target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8", "status": "CANCELED", "reason": "I need this resource.", "duration_minutes": 1440, "reviewer_stages": ""}} + getRequestComments: + speakeasy-default-get-request-comments: + parameters: + path: + id: "bfb1ef34-8ecf-46e5-bdf4-38abe7c6da89" + responses: + "200": + application/json: {"comments": [{"created_at": "2021-01-06T20:00:00Z", "request_id": "4c86c85d-0651-43e2-a748-d69d658418e8", "user_id": "c86c85d-0651-43e2-a748-d69d658418e8", "comment": "This is a comment."}]} + createRequestComment: + speakeasy-default-create-request-comment: + parameters: + path: + id: "4a929b40-a2e3-4dca-b8ec-1af35bdc7e43" + requestBody: + application/json: {"comment": "The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design"} + responses: + "200": + application/json: {"request": {"id": "7c86c85d-0651-43e2-a748-d69d658418e8", "created_at": "2021-01-06T20:00:00Z", "updated_at": "2021-01-06T20:00:00Z", "requester_id": "c86c85d-0651-43e2-a748-d69d658418e8", "target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8", "target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8", "status": "DENIED", "reason": "I need this resource.", "duration_minutes": 1440, "reviewer_stages": ""}} + get_user_resources: + speakeasy-default-get-user-resources: + parameters: + path: + user_id: "4baf8423-db0a-4037-a4cf-f79c60cb67a5" + query: + limit: 200 + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + include_unmanaged: false + responses: + "200": + application/json: {"results": [{"resource_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac", "access_level": {"access_level_name": "AdminRole", "access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess"}, "full_name": "Jake Barnes", "email": "jake@company.dev", "expiration_date": "2022-01-23T04:56:07Z", "has_direct_access": true, "num_access_paths": 2}, {"resource_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3", "user_id": "7646aa9a-e2ee-4eb5-8c62-91f29038a373", "access_level": {"access_level_name": "AdminRole", "access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess"}, "full_name": "Brett Ashley", "email": "brett@company.dev", "expiration_date": "2022-02-03T12:33:02Z", "has_direct_access": true, "num_access_paths": 3}]} + getRemoteUsers: + speakeasy-default-get-remote-users: + parameters: + query: + third_party_provider: ["GIT_HUB"] + user_id: ["32acc112-21ff-4669-91c2-21e27683eaa1"] + remote_id: ["1234567890"] + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + page_size: 200 + responses: + "200": + application/json: {"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", "previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", "results": [{"user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac", "remote_id": "1234567890", "third_party_provider": "GIT_LAB"}, {"user_id": "29827fb8-f2dd-4e80-9576-238979927392", "remote_id": "remoteid123", "third_party_provider": "GIT_HUB"}]} + getDelegations: + speakeasy-default-get-delegations: + parameters: + query: + delegator_user_id: "29827fb8-f2dd-4e80-9576-28e31e9934ac" + delegate_user_id: "29827fb8-f2dd-4e80-9576-28e31e9934ac" + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + page_size: 200 + responses: + "200": + application/json: {"results": [{"id": "4aed3e8a-727b-4d72-8010-3b8710c50bec", "delegator_user_id": "123e4567-e89b-12d3-a456-426614174000", "delegate_user_id": "7c86c85d-0651-43e2-a748-d69d658418e8", "start_time": "2023-10-01T12:00:00Z", "end_time": "2023-10-01T12:00:00Z", "reason": "I need to be out of the office", "created_at": "2023-10-01T12:00:00Z", "updated_at": "2023-10-01T12:00:00Z"}], "next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", "previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", "total_count": 2} + createDelegation: + speakeasy-default-create-delegation: + requestBody: + application/json: {"delegator_user_id": "123e4567-e89b-12d3-a456-426614174000", "delegate_user_id": "7c86c85d-0651-43e2-a748-d69d658418e8", "start_time": "2023-10-01T12:00:00Z", "end_time": "2023-10-01T12:00:00Z", "reason": "I need to be out of the office"} + responses: + "200": + application/json: {"id": "4aed3e8a-727b-4d72-8010-3b8710c50bec", "delegator_user_id": "123e4567-e89b-12d3-a456-426614174000", "delegate_user_id": "7c86c85d-0651-43e2-a748-d69d658418e8", "start_time": "2023-10-01T12:00:00Z", "end_time": "2023-10-01T12:00:00Z", "reason": "I need to be out of the office", "created_at": "2023-10-01T12:00:00Z", "updated_at": "2023-10-01T12:00:00Z"} + getDelegation: + speakeasy-default-get-delegation: + parameters: + path: + delegation_id: "32acc112-21ff-4669-91c2-21e27683eaa1" + responses: + "200": + application/json: {"id": "4aed3e8a-727b-4d72-8010-3b8710c50bec", "delegator_user_id": "123e4567-e89b-12d3-a456-426614174000", "delegate_user_id": "7c86c85d-0651-43e2-a748-d69d658418e8", "start_time": "2023-10-01T12:00:00Z", "end_time": "2023-10-01T12:00:00Z", "reason": "I need to be out of the office", "created_at": "2023-10-01T12:00:00Z", "updated_at": "2023-10-01T12:00:00Z"} + deleteDelegation: + speakeasy-default-delete-delegation: + parameters: + path: + delegation_id: "32acc112-21ff-4669-91c2-21e27683eaa1" examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Typescript SDK Changes:\n* `opalmcp.requests.approveRequest()`: `response` **Changed** **Breaking** :warning:\n* `opalmcp.delegations.getDelegation()`: **Added**\n* `opalmcp.groups.updateGroups()`: \n * `request.groups.[]` **Changed**\n * `response.groups.[]` **Changed**\n* `opalmcp.requests.denyRequest()`: **Added**\n* `opalmcp.requests.getRequestComments()`: **Added**\n* `opalmcp.requests.createRequestComment()`: **Added**\n* `opalmcp.resources.getUserResources()`: **Added**\n* `opalmcp.users.getRemoteUsers()`: **Added**\n* `opalmcp.delegations.getDelegations()`: **Added**\n* `opalmcp.delegations.createDelegation()`: **Added**\n* `opalmcp.groups.getUserGroups()`: **Added**\n* `opalmcp.delegations.deleteDelegation()`: **Added**\n* `opalmcp.scopedRolePermissions.getResourceScopedRolePermissions()`: **Deleted** **Breaking** :warning:\n* `opalmcp.scopedRolePermissions.setResourceScopedRolePermissions()`: **Deleted** **Breaking** :warning:\n* `opalmcp.configurationTemplates.createConfigurationTemplate()`: \n * `request.requestConfigurations.[].extensionsDurationInMinutes` **Added**\n* `opalmcp.configurationTemplates.updateConfigurationTemplate()`: \n * `request.requestConfigurations.[].extensionsDurationInMinutes` **Added**\n* `opalmcp.groups.getGroups()`: \n * `request.groupTypeFilter` **Changed**\n * `response.results.[]` **Changed**\n* `opalmcp.groups.getGroupContainingGroups()`: `response.containing_groups.[]` **Changed**\n* `opalmcp.groups.createGroup()`: \n * `request.remoteInfo` **Changed**\n * `response` **Changed**\n* `opalmcp.idpGroupMappings.createIdpGroupMapping()`: **Added**\n* `opalmcp.groups.getGroup()`: `response` **Changed**\n* `opalmcp.groups.updateGroupUser()`: `response` **Changed**\n* `opalmcp.groups.getGroupContainingGroup()`: `response` **Changed**\n* `opalmcp.groups.getGroupUsers()`: \n * `request` **Changed**\n * `response` **Changed**\n* `opalmcp.groups.addGroupContainingGroup()`: \n * `request.groupContainingGroup` **Changed**\n * `response` **Changed**\n* `opalmcp.groups.addGroupUser()`: `response` **Changed**\n* `opalmcp.idpGroupMappings.getIdpGroupMappings()`: `response.mappings.[].appResourceId` **Added**\n* `opalmcp.requests.getRequests()`: \n * `request` **Changed**\n * `response.requests.[]` **Changed**\n* `opalmcp.requests.getRequestsRelay()`: `response.edges.[].node` **Changed**\n* `opalmcp.requests.getRequest()`: `response` **Changed**\n* `opalmcp.idpGroupMappings.getIdpGroupMapping()`: **Added**\n* `opalmcp.resources.getResources()`: \n * `request` **Changed**\n * `response.results.[]` **Changed**\n* `opalmcp.resources.updateResources()`: \n * `request.resources.[]` **Changed**\n * `response.resources.[]` **Changed**\n* `opalmcp.resources.createResource()`: \n * `request.remoteInfo` **Changed**\n * `response` **Changed**\n* `opalmcp.resources.getResource()`: `response` **Changed**\n* `opalmcp.resources.getResourceUsers()`: `response` **Changed**\n* `opalmcp.nonHumanIdentities.getNhis()`: `response.results.[]` **Changed**\n* `opalmcp.uars.getUaRs()`: `response.results.[].instantlyActionReviews` **Added**\n* `opalmcp.uars.createUar()`: \n * `request.instantlyActionReviews` **Added**\n * `response.instantly_action_reviews` **Added**\n* `opalmcp.uars.getUar()`: `response.instantly_action_reviews` **Added**\n" +generatedFiles: + - .devcontainer/README.md + - .devcontainer/devcontainer.json + - .devcontainer/setup.sh + - .gitattributes + - .npmignore + - FUNCTIONS.md + - RUNTIMES.md + - USAGE.md + - docs/lib/utils/retryconfig.md + - docs/models/components/access.md + - docs/models/components/accesslist.md + - docs/models/components/accessrule.md + - docs/models/components/accessrulestatus.md + - docs/models/components/activedirectorygroup.md + - docs/models/components/app.md + - docs/models/components/appslist.md + - docs/models/components/apptypeenum.md + - docs/models/components/appvalidation.md + - docs/models/components/appvalidationseverityenum.md + - docs/models/components/appvalidationstatusenum.md + - docs/models/components/awsaccount.md + - docs/models/components/awsec2instance.md + - docs/models/components/awsekscluster.md + - docs/models/components/awsiamrole.md + - docs/models/components/awsorganizationalunit.md + - docs/models/components/awspermissionset.md + - docs/models/components/awsrdsinstance.md + - docs/models/components/azureadmicrosoft365group.md + - docs/models/components/azureadsecuritygroup.md + - docs/models/components/bundle.md + - docs/models/components/bundlegroup.md + - docs/models/components/bundleinput.md + - docs/models/components/bundleresource.md + - docs/models/components/condition.md + - docs/models/components/configurationtemplate.md + - docs/models/components/createbundleinfo.md + - docs/models/components/createconfigurationtemplateinfo.md + - docs/models/components/creategroupbindinginfo.md + - docs/models/components/creategroupbindinginfogroup.md + - docs/models/components/creategroupinfo.md + - docs/models/components/createmessagechannelinfo.md + - docs/models/components/createoncallscheduleinfo.md + - docs/models/components/createownerinfo.md + - docs/models/components/createrequestconfigurationinfolist.md + - docs/models/components/createrequestinfo.md + - docs/models/components/createrequestinfogroup.md + - docs/models/components/createrequestinforesource.md + - docs/models/components/createresourceinfo.md + - docs/models/components/createtaginfo.md + - docs/models/components/createuarinfo.md + - docs/models/components/customconnector.md + - docs/models/components/custommetadatum.md + - docs/models/components/duogroup.md + - docs/models/components/entitytypeenum.md + - docs/models/components/event.md + - docs/models/components/fieldvalue.md + - docs/models/components/filteroperator.md + - docs/models/components/gcpbigquerydataset.md + - docs/models/components/gcpbigquerytable.md + - docs/models/components/gcpbucket.md + - docs/models/components/gcpcomputeinstance.md + - docs/models/components/gcpfolder.md + - docs/models/components/gcpgkecluster.md + - docs/models/components/gcporganization.md + - docs/models/components/gcpproject.md + - docs/models/components/gcpserviceaccount.md + - docs/models/components/gcpsqlinstance.md + - docs/models/components/githubrepo.md + - docs/models/components/githubteam.md + - docs/models/components/gitlabgroup.md + - docs/models/components/gitlabproject.md + - docs/models/components/googlegroup.md + - docs/models/components/googleworkspacerole.md + - docs/models/components/group.md + - docs/models/components/groupaccesslevel.md + - docs/models/components/groupbinding.md + - docs/models/components/groupbindinggroup.md + - docs/models/components/groupcontaininggroup.md + - docs/models/components/groupcontaininggrouplist.md + - docs/models/components/groupremoteinfo.md + - docs/models/components/groupresource.md + - docs/models/components/groupresourcelist.md + - docs/models/components/grouprisksensitivity.md + - docs/models/components/grouptypeenum.md + - docs/models/components/groupuser.md + - docs/models/components/groupuserlist.md + - docs/models/components/groupvisibility.md + - docs/models/components/idpgroupmapping.md + - docs/models/components/idpgroupmappinglist.md + - docs/models/components/ldapgroup.md + - docs/models/components/messagechannel.md + - docs/models/components/messagechannelidlist.md + - docs/models/components/messagechannellist.md + - docs/models/components/messagechannelproviderenum.md + - docs/models/components/oktaapp.md + - docs/models/components/oktacustomrole.md + - docs/models/components/oktagroup.md + - docs/models/components/oktagrouprule.md + - docs/models/components/oktastandardrole.md + - docs/models/components/oncallschedule.md + - docs/models/components/oncallscheduleidlist.md + - docs/models/components/oncallschedulelist.md + - docs/models/components/oncallscheduleproviderenum.md + - docs/models/components/operator.md + - docs/models/components/owner.md + - docs/models/components/pageinfo.md + - docs/models/components/pagerdutyrole.md + - docs/models/components/paginatedbundlegrouplist.md + - docs/models/components/paginatedbundlelist.md + - docs/models/components/paginatedbundleresourcelist.md + - docs/models/components/paginatedconfigurationtemplatelist.md + - docs/models/components/paginatedeventlist.md + - docs/models/components/paginatedgroupbindingslist.md + - docs/models/components/paginatedgroupslist.md + - docs/models/components/paginatedownerslist.md + - docs/models/components/paginatedresourceslist.md + - docs/models/components/paginatedtagslist.md + - docs/models/components/paginateduarslist.md + - docs/models/components/paginateduserslist.md + - docs/models/components/propagationstatus.md + - docs/models/components/propagationstatusenum.md + - docs/models/components/requestconfiguration.md + - docs/models/components/requestconnection.md + - docs/models/components/requestcustomfieldresponse.md + - docs/models/components/requestedge.md + - docs/models/components/requesteditem.md + - docs/models/components/requestitemstages.md + - docs/models/components/requestlist.md + - docs/models/components/requestreviewer.md + - docs/models/components/requestreviewerstatus.md + - docs/models/components/requeststage.md + - docs/models/components/requeststatusenum.md + - docs/models/components/requestt.md + - docs/models/components/requesttemplatecustomfieldtypeenum.md + - docs/models/components/resource.md + - docs/models/components/resourceaccesslevel.md + - docs/models/components/resourceaccessuser.md + - docs/models/components/resourceaccessuserlist.md + - docs/models/components/resourcenhi.md + - docs/models/components/resourceremoteinfo.md + - docs/models/components/resourcerisksensitivity.md + - docs/models/components/resourcetypeenum.md + - docs/models/components/resourceuser.md + - docs/models/components/resourceuseraccessstatus.md + - docs/models/components/resourceuseraccessstatusenum.md + - docs/models/components/resourcewithaccesslevel.md + - docs/models/components/revieweridlist.md + - docs/models/components/reviewerstage.md + - docs/models/components/reviewerstagelist.md + - docs/models/components/reviewstageoperator.md + - docs/models/components/risksensitivityenum.md + - docs/models/components/rolepermissionnameenum.md + - docs/models/components/rolepermissiontargettypeenum.md + - docs/models/components/ruleclauses.md + - docs/models/components/ruleconjunction.md + - docs/models/components/ruledisjunction.md + - docs/models/components/salesforcepermissionset.md + - docs/models/components/salesforceprofile.md + - docs/models/components/salesforcerole.md + - docs/models/components/scopedrolepermission.md + - docs/models/components/scopedrolepermissionlist.md + - docs/models/components/security.md + - docs/models/components/session.md + - docs/models/components/sessionslist.md + - docs/models/components/snowflakerole.md + - docs/models/components/subevent.md + - docs/models/components/supportticket.md + - docs/models/components/syncerror.md + - docs/models/components/syncerrorlist.md + - docs/models/components/tag.md + - docs/models/components/tagfilter.md + - docs/models/components/tagselector.md + - docs/models/components/tagslist.md + - docs/models/components/teleportrole.md + - docs/models/components/ticketingproviderenum.md + - docs/models/components/ticketpropagationconfiguration.md + - docs/models/components/uar.md + - docs/models/components/uarreviewerassignmentpolicyenum.md + - docs/models/components/uarscope.md + - docs/models/components/updateaccessruleinfo.md + - docs/models/components/updateaccessruleinfostatus.md + - docs/models/components/updateconfigurationtemplateinfo.md + - docs/models/components/updategroupbindinginfo.md + - docs/models/components/updategroupbindinginfogroup.md + - docs/models/components/updategroupbindinginfolist.md + - docs/models/components/updategroupinfo.md + - docs/models/components/updategroupinfolist.md + - docs/models/components/updategroupresourcesinfo.md + - docs/models/components/updateownerinfo.md + - docs/models/components/updateownerinfolist.md + - docs/models/components/updateresourceinfo.md + - docs/models/components/updateresourceinfolist.md + - docs/models/components/user.md + - docs/models/components/userhridpstatusenum.md + - docs/models/components/useridlist.md + - docs/models/components/userlist.md + - docs/models/components/visibilityinfo.md + - docs/models/components/visibilitytypeenum.md + - docs/models/components/workdayusersecuritygroup.md + - docs/models/operations/addbundlegrouprequest.md + - docs/models/operations/addbundlegrouprequestbody.md + - docs/models/operations/addbundleresourcerequest.md + - docs/models/operations/addbundleresourcerequestbody.md + - docs/models/operations/addgroupcontaininggrouprequest.md + - docs/models/operations/addgroupresourcerequest.md + - docs/models/operations/addgroupresourcerequestbody.md + - docs/models/operations/addgrouptagrequest.md + - docs/models/operations/addgroupuserrequest.md + - docs/models/operations/addgroupuserrequestbody.md + - docs/models/operations/addresourcenhirequest.md + - docs/models/operations/addresourcenhirequestbody.md + - docs/models/operations/addresourcetagrequest.md + - docs/models/operations/addresourceuserrequest.md + - docs/models/operations/addresourceuserrequestbody.md + - docs/models/operations/addusertagrequest.md + - docs/models/operations/addusertagrequestbody.md + - docs/models/operations/approverequestrequest.md + - docs/models/operations/approverequestrequestbody.md + - docs/models/operations/approverequestresponse.md + - docs/models/operations/createrequestresponse.md + - docs/models/operations/createtagrequest.md + - docs/models/operations/deletebundlerequest.md + - docs/models/operations/deleteconfigurationtemplaterequest.md + - docs/models/operations/deletegroupbindingrequest.md + - docs/models/operations/deletegrouprequest.md + - docs/models/operations/deletegroupuserrequest.md + - docs/models/operations/deleteidpgroupmappingsrequest.md + - docs/models/operations/deleteownerrequest.md + - docs/models/operations/deleteresourcenhirequest.md + - docs/models/operations/deleteresourcerequest.md + - docs/models/operations/deleteresourceuserrequest.md + - docs/models/operations/deletetagbyidrequest.md + - docs/models/operations/eventsrequest.md + - docs/models/operations/eventsresponse.md + - docs/models/operations/getaccessrulerequest.md + - docs/models/operations/getapprequest.md + - docs/models/operations/getappsrequest.md + - docs/models/operations/getbundlegroupsrequest.md + - docs/models/operations/getbundlegroupsresponse.md + - docs/models/operations/getbundlerequest.md + - docs/models/operations/getbundleresourcesrequest.md + - docs/models/operations/getbundleresourcesresponse.md + - docs/models/operations/getbundlesrequest.md + - docs/models/operations/getbundlesresponse.md + - docs/models/operations/getbundlevisibilityrequest.md + - docs/models/operations/getgroupbindingrequest.md + - docs/models/operations/getgroupbindingsrequest.md + - docs/models/operations/getgroupbindingsresponse.md + - docs/models/operations/getgroupcontaininggrouprequest.md + - docs/models/operations/getgroupcontaininggroupsrequest.md + - docs/models/operations/getgroupmessagechannelsrequest.md + - docs/models/operations/getgrouponcallschedulesrequest.md + - docs/models/operations/getgrouprequest.md + - docs/models/operations/getgroupresourcesrequest.md + - docs/models/operations/getgroupreviewersrequest.md + - docs/models/operations/getgroupreviewerstagesrequest.md + - docs/models/operations/getgroupsrequest.md + - docs/models/operations/getgroupsresponse.md + - docs/models/operations/getgrouptagsrequest.md + - docs/models/operations/getgroupusersrequest.md + - docs/models/operations/getgroupvisibilityrequest.md + - docs/models/operations/getidpgroupmappingsrequest.md + - docs/models/operations/getmessagechannelrequest.md + - docs/models/operations/getnhisrequest.md + - docs/models/operations/getnhisresponse.md + - docs/models/operations/getoncallschedulerequest.md + - docs/models/operations/getownerfromnamerequest.md + - docs/models/operations/getownerrequest.md + - docs/models/operations/getownersrequest.md + - docs/models/operations/getownersresponse.md + - docs/models/operations/getownerusersrequest.md + - docs/models/operations/getrequestrequest.md + - docs/models/operations/getrequestsrelayrequest.md + - docs/models/operations/getrequestsrequest.md + - docs/models/operations/getrequestsresponse.md + - docs/models/operations/getresourcemessagechannelsrequest.md + - docs/models/operations/getresourcenhisrequest.md + - docs/models/operations/getresourcerequest.md + - docs/models/operations/getresourcereviewersrequest.md + - docs/models/operations/getresourcereviewerstagesrequest.md + - docs/models/operations/getresourcescopedrolepermissionsrequest.md + - docs/models/operations/getresourcesrequest.md + - docs/models/operations/getresourcesresponse.md + - docs/models/operations/getresourcetagsrequest.md + - docs/models/operations/getresourceuserrequest.md + - docs/models/operations/getresourceuserresponse.md + - docs/models/operations/getresourceusersrequest.md + - docs/models/operations/getresourcevisibilityrequest.md + - docs/models/operations/getsyncerrorsrequest.md + - docs/models/operations/gettagbyidrequest.md + - docs/models/operations/gettagrequest.md + - docs/models/operations/gettagsrequest.md + - docs/models/operations/gettagsresponse.md + - docs/models/operations/getuarrequest.md + - docs/models/operations/getuarsrequest.md + - docs/models/operations/getuarsresponse.md + - docs/models/operations/getusersrequest.md + - docs/models/operations/getusersresponse.md + - docs/models/operations/getusertagsrequest.md + - docs/models/operations/level.md + - docs/models/operations/mapping.md + - docs/models/operations/removebundlegrouprequest.md + - docs/models/operations/removebundleresourcerequest.md + - docs/models/operations/removegroupcontaininggrouprequest.md + - docs/models/operations/removegrouptagrequest.md + - docs/models/operations/removeresourcetagrequest.md + - docs/models/operations/removeusertagrequest.md + - docs/models/operations/resourceuseraccessstatusretrieverequest.md + - docs/models/operations/sessionsrequest.md + - docs/models/operations/setbundlevisibilityrequest.md + - docs/models/operations/setgroupmessagechannelsrequest.md + - docs/models/operations/setgrouponcallschedulesrequest.md + - docs/models/operations/setgroupresourcesrequest.md + - docs/models/operations/setgroupreviewersrequest.md + - docs/models/operations/setgroupreviewerstagesrequest.md + - docs/models/operations/setgroupvisibilityrequest.md + - docs/models/operations/setownerusersrequest.md + - docs/models/operations/setresourcemessagechannelsrequest.md + - docs/models/operations/setresourcereviewersrequest.md + - docs/models/operations/setresourcereviewerstagesrequest.md + - docs/models/operations/setresourcescopedrolepermissionsrequest.md + - docs/models/operations/setresourcevisibilityrequest.md + - docs/models/operations/updateaccessrulerequest.md + - docs/models/operations/updatebundlerequest.md + - docs/models/operations/updategroupuserrequest.md + - docs/models/operations/updategroupuserrequestbody.md + - docs/models/operations/updateidpgroupmappingsrequest.md + - docs/models/operations/updateidpgroupmappingsrequestbody.md + - docs/models/operations/updateresourceuserrequest.md + - docs/models/operations/updateresourceuserrequestbody.md + - docs/models/operations/userrequest.md + - docs/sdks/accessrules/README.md + - docs/sdks/apps/README.md + - docs/sdks/bundles/README.md + - docs/sdks/configurationtemplates/README.md + - docs/sdks/events/README.md + - docs/sdks/groupbindings/README.md + - docs/sdks/groups/README.md + - docs/sdks/idpgroupmappings/README.md + - docs/sdks/messagechannels/README.md + - docs/sdks/nonhumanidentities/README.md + - docs/sdks/oncallschedules/README.md + - docs/sdks/opalmcp/README.md + - docs/sdks/owners/README.md + - docs/sdks/requests/README.md + - docs/sdks/resources/README.md + - docs/sdks/scopedrolepermissions/README.md + - docs/sdks/sessions/README.md + - docs/sdks/tags/README.md + - docs/sdks/uars/README.md + - docs/sdks/users/README.md + - eslint.config.mjs + - examples/.env.template + - examples/README.md + - examples/appsGetApps.example.ts + - examples/package.json + - jsr.json + - package.json + - src/core.ts + - src/funcs/accessRulesCreateAccessRule.ts + - src/funcs/accessRulesGetAccessRule.ts + - src/funcs/accessRulesUpdateAccessRule.ts + - src/funcs/appsGetApp.ts + - src/funcs/appsGetApps.ts + - src/funcs/appsGetSyncErrors.ts + - src/funcs/bundlesAddBundleGroup.ts + - src/funcs/bundlesAddBundleResource.ts + - src/funcs/bundlesCreateBundle.ts + - src/funcs/bundlesDeleteBundle.ts + - src/funcs/bundlesGetBundle.ts + - src/funcs/bundlesGetBundleGroups.ts + - src/funcs/bundlesGetBundleResources.ts + - src/funcs/bundlesGetBundleVisibility.ts + - src/funcs/bundlesGetBundles.ts + - src/funcs/bundlesRemoveBundleGroup.ts + - src/funcs/bundlesRemoveBundleResource.ts + - src/funcs/bundlesSetBundleVisibility.ts + - src/funcs/bundlesUpdateBundle.ts + - src/funcs/configurationTemplatesCreateConfigurationTemplate.ts + - src/funcs/configurationTemplatesDeleteConfigurationTemplate.ts + - src/funcs/configurationTemplatesGetConfigurationTemplates.ts + - src/funcs/configurationTemplatesUpdateConfigurationTemplate.ts + - src/funcs/eventsEvents.ts + - src/funcs/groupBindingsCreateGroupBinding.ts + - src/funcs/groupBindingsDeleteGroupBinding.ts + - src/funcs/groupBindingsGetGroupBinding.ts + - src/funcs/groupBindingsGetGroupBindings.ts + - src/funcs/groupBindingsUpdateGroupBindings.ts + - src/funcs/groupsAddGroupContainingGroup.ts + - src/funcs/groupsAddGroupResource.ts + - src/funcs/groupsAddGroupUser.ts + - src/funcs/groupsCreateGroup.ts + - src/funcs/groupsDeleteGroup.ts + - src/funcs/groupsDeleteGroupUser.ts + - src/funcs/groupsGetGroup.ts + - src/funcs/groupsGetGroupContainingGroup.ts + - src/funcs/groupsGetGroupContainingGroups.ts + - src/funcs/groupsGetGroupMessageChannels.ts + - src/funcs/groupsGetGroupOnCallSchedules.ts + - src/funcs/groupsGetGroupResources.ts + - src/funcs/groupsGetGroupReviewerStages.ts + - src/funcs/groupsGetGroupReviewers.ts + - src/funcs/groupsGetGroupTags.ts + - src/funcs/groupsGetGroupUsers.ts + - src/funcs/groupsGetGroupVisibility.ts + - src/funcs/groupsGetGroups.ts + - src/funcs/groupsRemoveGroupContainingGroup.ts + - src/funcs/groupsSetGroupMessageChannels.ts + - src/funcs/groupsSetGroupOnCallSchedules.ts + - src/funcs/groupsSetGroupResources.ts + - src/funcs/groupsSetGroupReviewerStages.ts + - src/funcs/groupsSetGroupReviewers.ts + - src/funcs/groupsSetGroupVisibility.ts + - src/funcs/groupsUpdateGroupUser.ts + - src/funcs/groupsUpdateGroups.ts + - src/funcs/idpGroupMappingsDeleteIdpGroupMappings.ts + - src/funcs/idpGroupMappingsGetIdpGroupMappings.ts + - src/funcs/idpGroupMappingsUpdateIdpGroupMappings.ts + - src/funcs/messageChannelsCreateMessageChannel.ts + - src/funcs/messageChannelsGetMessageChannel.ts + - src/funcs/messageChannelsGetMessageChannels.ts + - src/funcs/nonHumanIdentitiesGetNhis.ts + - src/funcs/onCallSchedulesCreateOnCallSchedule.ts + - src/funcs/onCallSchedulesGetOnCallSchedule.ts + - src/funcs/onCallSchedulesGetOnCallSchedules.ts + - src/funcs/ownersCreateOwner.ts + - src/funcs/ownersDeleteOwner.ts + - src/funcs/ownersGetOwner.ts + - src/funcs/ownersGetOwnerFromName.ts + - src/funcs/ownersGetOwnerUsers.ts + - src/funcs/ownersGetOwners.ts + - src/funcs/ownersSetOwnerUsers.ts + - src/funcs/ownersUpdateOwners.ts + - src/funcs/requestsApproveRequest.ts + - src/funcs/requestsCreateRequest.ts + - src/funcs/requestsGetRequest.ts + - src/funcs/requestsGetRequests.ts + - src/funcs/requestsGetRequestsRelay.ts + - src/funcs/resourcesAddResourceNhi.ts + - src/funcs/resourcesAddResourceUser.ts + - src/funcs/resourcesCreateResource.ts + - src/funcs/resourcesDeleteResource.ts + - src/funcs/resourcesDeleteResourceNhi.ts + - src/funcs/resourcesDeleteResourceUser.ts + - src/funcs/resourcesGetResource.ts + - src/funcs/resourcesGetResourceMessageChannels.ts + - src/funcs/resourcesGetResourceNhis.ts + - src/funcs/resourcesGetResourceReviewerStages.ts + - src/funcs/resourcesGetResourceReviewers.ts + - src/funcs/resourcesGetResourceScopedRolePermissions.ts + - src/funcs/resourcesGetResourceTags.ts + - src/funcs/resourcesGetResourceUser.ts + - src/funcs/resourcesGetResourceUsers.ts + - src/funcs/resourcesGetResourceVisibility.ts + - src/funcs/resourcesGetResources.ts + - src/funcs/resourcesResourceUserAccessStatusRetrieve.ts + - src/funcs/resourcesSetResourceMessageChannels.ts + - src/funcs/resourcesSetResourceReviewerStages.ts + - src/funcs/resourcesSetResourceReviewers.ts + - src/funcs/resourcesSetResourceScopedRolePermissions.ts + - src/funcs/resourcesSetResourceVisibility.ts + - src/funcs/resourcesUpdateResourceUser.ts + - src/funcs/resourcesUpdateResources.ts + - src/funcs/sessionsSessions.ts + - src/funcs/tagsAddGroupTag.ts + - src/funcs/tagsAddResourceTag.ts + - src/funcs/tagsAddUserTag.ts + - src/funcs/tagsCreateTag.ts + - src/funcs/tagsDeleteTagByID.ts + - src/funcs/tagsGetTag.ts + - src/funcs/tagsGetTagByID.ts + - src/funcs/tagsGetTags.ts + - src/funcs/tagsRemoveGroupTag.ts + - src/funcs/tagsRemoveResourceTag.ts + - src/funcs/tagsRemoveUserTag.ts + - src/funcs/uarsCreateUar.ts + - src/funcs/uarsGetUARs.ts + - src/funcs/uarsGetUar.ts + - src/funcs/usersGetUserTags.ts + - src/funcs/usersGetUsers.ts + - src/funcs/usersUser.ts + - src/hooks/hooks.ts + - src/hooks/index.ts + - src/hooks/types.ts + - src/index.ts + - src/lib/base64.ts + - src/lib/config.ts + - src/lib/dlv.ts + - src/lib/encodings.ts + - src/lib/env.ts + - src/lib/files.ts + - src/lib/http.ts + - src/lib/is-plain-object.ts + - src/lib/logger.ts + - src/lib/matchers.ts + - src/lib/primitives.ts + - src/lib/retries.ts + - src/lib/schemas.ts + - src/lib/sdks.ts + - src/lib/security.ts + - src/lib/url.ts + - src/mcp-server/build.mts + - src/mcp-server/cli.ts + - src/mcp-server/cli/start/command.ts + - src/mcp-server/cli/start/impl.ts + - src/mcp-server/console-logger.ts + - src/mcp-server/extensions.ts + - src/mcp-server/mcp-server.ts + - src/mcp-server/prompts.ts + - src/mcp-server/resources.ts + - src/mcp-server/scopes.ts + - src/mcp-server/server.ts + - src/mcp-server/shared.ts + - src/mcp-server/tools.ts + - src/mcp-server/tools/accessRulesCreateAccessRule.ts + - src/mcp-server/tools/accessRulesGetAccessRule.ts + - src/mcp-server/tools/accessRulesUpdateAccessRule.ts + - src/mcp-server/tools/appsGetApp.ts + - src/mcp-server/tools/appsGetApps.ts + - src/mcp-server/tools/appsGetSyncErrors.ts + - src/mcp-server/tools/bundlesAddBundleGroup.ts + - src/mcp-server/tools/bundlesAddBundleResource.ts + - src/mcp-server/tools/bundlesCreateBundle.ts + - src/mcp-server/tools/bundlesDeleteBundle.ts + - src/mcp-server/tools/bundlesGetBundle.ts + - src/mcp-server/tools/bundlesGetBundleGroups.ts + - src/mcp-server/tools/bundlesGetBundleResources.ts + - src/mcp-server/tools/bundlesGetBundleVisibility.ts + - src/mcp-server/tools/bundlesGetBundles.ts + - src/mcp-server/tools/bundlesRemoveBundleGroup.ts + - src/mcp-server/tools/bundlesRemoveBundleResource.ts + - src/mcp-server/tools/bundlesSetBundleVisibility.ts + - src/mcp-server/tools/bundlesUpdateBundle.ts + - src/mcp-server/tools/configurationTemplatesCreateConfigurationTemplate.ts + - src/mcp-server/tools/configurationTemplatesDeleteConfigurationTemplate.ts + - src/mcp-server/tools/configurationTemplatesGetConfigurationTemplates.ts + - src/mcp-server/tools/configurationTemplatesUpdateConfigurationTemplate.ts + - src/mcp-server/tools/eventsEvents.ts + - src/mcp-server/tools/groupBindingsCreateGroupBinding.ts + - src/mcp-server/tools/groupBindingsDeleteGroupBinding.ts + - src/mcp-server/tools/groupBindingsGetGroupBinding.ts + - src/mcp-server/tools/groupBindingsGetGroupBindings.ts + - src/mcp-server/tools/groupBindingsUpdateGroupBindings.ts + - src/mcp-server/tools/groupsAddGroupContainingGroup.ts + - src/mcp-server/tools/groupsAddGroupResource.ts + - src/mcp-server/tools/groupsAddGroupUser.ts + - src/mcp-server/tools/groupsCreateGroup.ts + - src/mcp-server/tools/groupsDeleteGroup.ts + - src/mcp-server/tools/groupsDeleteGroupUser.ts + - src/mcp-server/tools/groupsGetGroup.ts + - src/mcp-server/tools/groupsGetGroupContainingGroup.ts + - src/mcp-server/tools/groupsGetGroupContainingGroups.ts + - src/mcp-server/tools/groupsGetGroupMessageChannels.ts + - src/mcp-server/tools/groupsGetGroupOnCallSchedules.ts + - src/mcp-server/tools/groupsGetGroupResources.ts + - src/mcp-server/tools/groupsGetGroupReviewerStages.ts + - src/mcp-server/tools/groupsGetGroupReviewers.ts + - src/mcp-server/tools/groupsGetGroupTags.ts + - src/mcp-server/tools/groupsGetGroupUsers.ts + - src/mcp-server/tools/groupsGetGroupVisibility.ts + - src/mcp-server/tools/groupsGetGroups.ts + - src/mcp-server/tools/groupsRemoveGroupContainingGroup.ts + - src/mcp-server/tools/groupsSetGroupMessageChannels.ts + - src/mcp-server/tools/groupsSetGroupOnCallSchedules.ts + - src/mcp-server/tools/groupsSetGroupResources.ts + - src/mcp-server/tools/groupsSetGroupReviewerStages.ts + - src/mcp-server/tools/groupsSetGroupReviewers.ts + - src/mcp-server/tools/groupsSetGroupVisibility.ts + - src/mcp-server/tools/groupsUpdateGroupUser.ts + - src/mcp-server/tools/groupsUpdateGroups.ts + - src/mcp-server/tools/idpGroupMappingsDeleteIdpGroupMappings.ts + - src/mcp-server/tools/idpGroupMappingsGetIdpGroupMappings.ts + - src/mcp-server/tools/idpGroupMappingsUpdateIdpGroupMappings.ts + - src/mcp-server/tools/messageChannelsCreateMessageChannel.ts + - src/mcp-server/tools/messageChannelsGetMessageChannel.ts + - src/mcp-server/tools/messageChannelsGetMessageChannels.ts + - src/mcp-server/tools/nonHumanIdentitiesGetNhis.ts + - src/mcp-server/tools/onCallSchedulesCreateOnCallSchedule.ts + - src/mcp-server/tools/onCallSchedulesGetOnCallSchedule.ts + - src/mcp-server/tools/onCallSchedulesGetOnCallSchedules.ts + - src/mcp-server/tools/ownersCreateOwner.ts + - src/mcp-server/tools/ownersDeleteOwner.ts + - src/mcp-server/tools/ownersGetOwner.ts + - src/mcp-server/tools/ownersGetOwnerFromName.ts + - src/mcp-server/tools/ownersGetOwnerUsers.ts + - src/mcp-server/tools/ownersGetOwners.ts + - src/mcp-server/tools/ownersSetOwnerUsers.ts + - src/mcp-server/tools/ownersUpdateOwners.ts + - src/mcp-server/tools/requestsApproveRequest.ts + - src/mcp-server/tools/requestsCreateRequest.ts + - src/mcp-server/tools/requestsGetRequest.ts + - src/mcp-server/tools/requestsGetRequests.ts + - src/mcp-server/tools/requestsGetRequestsRelay.ts + - src/mcp-server/tools/resourcesAddResourceNhi.ts + - src/mcp-server/tools/resourcesAddResourceUser.ts + - src/mcp-server/tools/resourcesCreateResource.ts + - src/mcp-server/tools/resourcesDeleteResource.ts + - src/mcp-server/tools/resourcesDeleteResourceNhi.ts + - src/mcp-server/tools/resourcesDeleteResourceUser.ts + - src/mcp-server/tools/resourcesGetResource.ts + - src/mcp-server/tools/resourcesGetResourceMessageChannels.ts + - src/mcp-server/tools/resourcesGetResourceNhis.ts + - src/mcp-server/tools/resourcesGetResourceReviewerStages.ts + - src/mcp-server/tools/resourcesGetResourceReviewers.ts + - src/mcp-server/tools/resourcesGetResourceScopedRolePermissions.ts + - src/mcp-server/tools/resourcesGetResourceTags.ts + - src/mcp-server/tools/resourcesGetResourceUser.ts + - src/mcp-server/tools/resourcesGetResourceUsers.ts + - src/mcp-server/tools/resourcesGetResourceVisibility.ts + - src/mcp-server/tools/resourcesGetResources.ts + - src/mcp-server/tools/resourcesResourceUserAccessStatusRetrieve.ts + - src/mcp-server/tools/resourcesSetResourceMessageChannels.ts + - src/mcp-server/tools/resourcesSetResourceReviewerStages.ts + - src/mcp-server/tools/resourcesSetResourceReviewers.ts + - src/mcp-server/tools/resourcesSetResourceScopedRolePermissions.ts + - src/mcp-server/tools/resourcesSetResourceVisibility.ts + - src/mcp-server/tools/resourcesUpdateResourceUser.ts + - src/mcp-server/tools/resourcesUpdateResources.ts + - src/mcp-server/tools/sessionsSessions.ts + - src/mcp-server/tools/tagsAddGroupTag.ts + - src/mcp-server/tools/tagsAddResourceTag.ts + - src/mcp-server/tools/tagsAddUserTag.ts + - src/mcp-server/tools/tagsCreateTag.ts + - src/mcp-server/tools/tagsDeleteTagByID.ts + - src/mcp-server/tools/tagsGetTag.ts + - src/mcp-server/tools/tagsGetTagByID.ts + - src/mcp-server/tools/tagsGetTags.ts + - src/mcp-server/tools/tagsRemoveGroupTag.ts + - src/mcp-server/tools/tagsRemoveResourceTag.ts + - src/mcp-server/tools/tagsRemoveUserTag.ts + - src/mcp-server/tools/uarsCreateUar.ts + - src/mcp-server/tools/uarsGetUARs.ts + - src/mcp-server/tools/uarsGetUar.ts + - src/mcp-server/tools/usersGetUserTags.ts + - src/mcp-server/tools/usersGetUsers.ts + - src/mcp-server/tools/usersUser.ts + - src/models/components/access.ts + - src/models/components/accesslist.ts + - src/models/components/accessrule.ts + - src/models/components/app.ts + - src/models/components/appslist.ts + - src/models/components/apptypeenum.ts + - src/models/components/appvalidation.ts + - src/models/components/appvalidationseverityenum.ts + - src/models/components/appvalidationstatusenum.ts + - src/models/components/bundle.ts + - src/models/components/bundlegroup.ts + - src/models/components/bundleinput.ts + - src/models/components/bundleresource.ts + - src/models/components/condition.ts + - src/models/components/configurationtemplate.ts + - src/models/components/createbundleinfo.ts + - src/models/components/createconfigurationtemplateinfo.ts + - src/models/components/creategroupbindinginfo.ts + - src/models/components/creategroupinfo.ts + - src/models/components/createmessagechannelinfo.ts + - src/models/components/createoncallscheduleinfo.ts + - src/models/components/createownerinfo.ts + - src/models/components/createrequestconfigurationinfolist.ts + - src/models/components/createrequestinfo.ts + - src/models/components/createresourceinfo.ts + - src/models/components/createtaginfo.ts + - src/models/components/createuarinfo.ts + - src/models/components/entitytypeenum.ts + - src/models/components/event.ts + - src/models/components/group.ts + - src/models/components/groupaccesslevel.ts + - src/models/components/groupbinding.ts + - src/models/components/groupbindinggroup.ts + - src/models/components/groupcontaininggroup.ts + - src/models/components/groupcontaininggrouplist.ts + - src/models/components/groupremoteinfo.ts + - src/models/components/groupresource.ts + - src/models/components/groupresourcelist.ts + - src/models/components/grouptypeenum.ts + - src/models/components/groupuser.ts + - src/models/components/groupuserlist.ts + - src/models/components/idpgroupmapping.ts + - src/models/components/idpgroupmappinglist.ts + - src/models/components/index.ts + - src/models/components/messagechannel.ts + - src/models/components/messagechannelidlist.ts + - src/models/components/messagechannellist.ts + - src/models/components/messagechannelproviderenum.ts + - src/models/components/oncallschedule.ts + - src/models/components/oncallscheduleidlist.ts + - src/models/components/oncallschedulelist.ts + - src/models/components/oncallscheduleproviderenum.ts + - src/models/components/owner.ts + - src/models/components/pageinfo.ts + - src/models/components/paginatedbundlegrouplist.ts + - src/models/components/paginatedbundlelist.ts + - src/models/components/paginatedbundleresourcelist.ts + - src/models/components/paginatedconfigurationtemplatelist.ts + - src/models/components/paginatedeventlist.ts + - src/models/components/paginatedgroupbindingslist.ts + - src/models/components/paginatedgroupslist.ts + - src/models/components/paginatedownerslist.ts + - src/models/components/paginatedresourceslist.ts + - src/models/components/paginatedtagslist.ts + - src/models/components/paginateduarslist.ts + - src/models/components/paginateduserslist.ts + - src/models/components/propagationstatus.ts + - src/models/components/propagationstatusenum.ts + - src/models/components/request.ts + - src/models/components/requestconfiguration.ts + - src/models/components/requestconnection.ts + - src/models/components/requestcustomfieldresponse.ts + - src/models/components/requestedge.ts + - src/models/components/requesteditem.ts + - src/models/components/requestitemstages.ts + - src/models/components/requestlist.ts + - src/models/components/requestreviewer.ts + - src/models/components/requeststage.ts + - src/models/components/requeststatusenum.ts + - src/models/components/requesttemplatecustomfieldtypeenum.ts + - src/models/components/resource.ts + - src/models/components/resourceaccesslevel.ts + - src/models/components/resourceaccessuser.ts + - src/models/components/resourceaccessuserlist.ts + - src/models/components/resourcenhi.ts + - src/models/components/resourceremoteinfo.ts + - src/models/components/resourcetypeenum.ts + - src/models/components/resourceuser.ts + - src/models/components/resourceuseraccessstatus.ts + - src/models/components/resourceuseraccessstatusenum.ts + - src/models/components/resourcewithaccesslevel.ts + - src/models/components/revieweridlist.ts + - src/models/components/reviewerstage.ts + - src/models/components/reviewerstagelist.ts + - src/models/components/reviewstageoperator.ts + - src/models/components/risksensitivityenum.ts + - src/models/components/rolepermissionnameenum.ts + - src/models/components/rolepermissiontargettypeenum.ts + - src/models/components/ruleclauses.ts + - src/models/components/ruleconjunction.ts + - src/models/components/ruledisjunction.ts + - src/models/components/scopedrolepermission.ts + - src/models/components/scopedrolepermissionlist.ts + - src/models/components/security.ts + - src/models/components/session.ts + - src/models/components/sessionslist.ts + - src/models/components/subevent.ts + - src/models/components/syncerror.ts + - src/models/components/syncerrorlist.ts + - src/models/components/tag.ts + - src/models/components/tagfilter.ts + - src/models/components/tagselector.ts + - src/models/components/tagslist.ts + - src/models/components/ticketingproviderenum.ts + - src/models/components/ticketpropagationconfiguration.ts + - src/models/components/uar.ts + - src/models/components/uarreviewerassignmentpolicyenum.ts + - src/models/components/uarscope.ts + - src/models/components/updateaccessruleinfo.ts + - src/models/components/updateconfigurationtemplateinfo.ts + - src/models/components/updategroupbindinginfo.ts + - src/models/components/updategroupbindinginfolist.ts + - src/models/components/updategroupinfo.ts + - src/models/components/updategroupinfolist.ts + - src/models/components/updategroupresourcesinfo.ts + - src/models/components/updateownerinfo.ts + - src/models/components/updateownerinfolist.ts + - src/models/components/updateresourceinfo.ts + - src/models/components/updateresourceinfolist.ts + - src/models/components/user.ts + - src/models/components/userhridpstatusenum.ts + - src/models/components/useridlist.ts + - src/models/components/userlist.ts + - src/models/components/visibilityinfo.ts + - src/models/components/visibilitytypeenum.ts + - src/models/errors/apierror.ts + - src/models/errors/httpclienterrors.ts + - src/models/errors/index.ts + - src/models/errors/opalmcperror.ts + - src/models/errors/responsevalidationerror.ts + - src/models/errors/sdkvalidationerror.ts + - src/models/operations/addbundlegroup.ts + - src/models/operations/addbundleresource.ts + - src/models/operations/addgroupcontaininggroup.ts + - src/models/operations/addgroupresource.ts + - src/models/operations/addgrouptag.ts + - src/models/operations/addgroupuser.ts + - src/models/operations/addresourcenhi.ts + - src/models/operations/addresourcetag.ts + - src/models/operations/addresourceuser.ts + - src/models/operations/addusertag.ts + - src/models/operations/approverequest.ts + - src/models/operations/createrequest.ts + - src/models/operations/createtag.ts + - src/models/operations/deletebundle.ts + - src/models/operations/deleteconfigurationtemplate.ts + - src/models/operations/deletegroup.ts + - src/models/operations/deletegroupbinding.ts + - src/models/operations/deletegroupuser.ts + - src/models/operations/deleteidpgroupmappings.ts + - src/models/operations/deleteowner.ts + - src/models/operations/deleteresource.ts + - src/models/operations/deleteresourcenhi.ts + - src/models/operations/deleteresourceuser.ts + - src/models/operations/deletetagbyid.ts + - src/models/operations/events.ts + - src/models/operations/getaccessrule.ts + - src/models/operations/getapp.ts + - src/models/operations/getapps.ts + - src/models/operations/getbundle.ts + - src/models/operations/getbundlegroups.ts + - src/models/operations/getbundleresources.ts + - src/models/operations/getbundles.ts + - src/models/operations/getbundlevisibility.ts + - src/models/operations/getgroup.ts + - src/models/operations/getgroupbinding.ts + - src/models/operations/getgroupbindings.ts + - src/models/operations/getgroupcontaininggroup.ts + - src/models/operations/getgroupcontaininggroups.ts + - src/models/operations/getgroupmessagechannels.ts + - src/models/operations/getgrouponcallschedules.ts + - src/models/operations/getgroupresources.ts + - src/models/operations/getgroupreviewers.ts + - src/models/operations/getgroupreviewerstages.ts + - src/models/operations/getgroups.ts + - src/models/operations/getgrouptags.ts + - src/models/operations/getgroupusers.ts + - src/models/operations/getgroupvisibility.ts + - src/models/operations/getidpgroupmappings.ts + - src/models/operations/getmessagechannel.ts + - src/models/operations/getnhis.ts + - src/models/operations/getoncallschedule.ts + - src/models/operations/getowner.ts + - src/models/operations/getownerfromname.ts + - src/models/operations/getowners.ts + - src/models/operations/getownerusers.ts + - src/models/operations/getrequest.ts + - src/models/operations/getrequests.ts + - src/models/operations/getrequestsrelay.ts + - src/models/operations/getresource.ts + - src/models/operations/getresourcemessagechannels.ts + - src/models/operations/getresourcenhis.ts + - src/models/operations/getresourcereviewers.ts + - src/models/operations/getresourcereviewerstages.ts + - src/models/operations/getresources.ts + - src/models/operations/getresourcescopedrolepermissions.ts + - src/models/operations/getresourcetags.ts + - src/models/operations/getresourceuser.ts + - src/models/operations/getresourceusers.ts + - src/models/operations/getresourcevisibility.ts + - src/models/operations/getsyncerrors.ts + - src/models/operations/gettag.ts + - src/models/operations/gettagbyid.ts + - src/models/operations/gettags.ts + - src/models/operations/getuar.ts + - src/models/operations/getuars.ts + - src/models/operations/getusers.ts + - src/models/operations/getusertags.ts + - src/models/operations/index.ts + - src/models/operations/removebundlegroup.ts + - src/models/operations/removebundleresource.ts + - src/models/operations/removegroupcontaininggroup.ts + - src/models/operations/removegrouptag.ts + - src/models/operations/removeresourcetag.ts + - src/models/operations/removeusertag.ts + - src/models/operations/resourceuseraccessstatusretrieve.ts + - src/models/operations/sessions.ts + - src/models/operations/setbundlevisibility.ts + - src/models/operations/setgroupmessagechannels.ts + - src/models/operations/setgrouponcallschedules.ts + - src/models/operations/setgroupresources.ts + - src/models/operations/setgroupreviewers.ts + - src/models/operations/setgroupreviewerstages.ts + - src/models/operations/setgroupvisibility.ts + - src/models/operations/setownerusers.ts + - src/models/operations/setresourcemessagechannels.ts + - src/models/operations/setresourcereviewers.ts + - src/models/operations/setresourcereviewerstages.ts + - src/models/operations/setresourcescopedrolepermissions.ts + - src/models/operations/setresourcevisibility.ts + - src/models/operations/updateaccessrule.ts + - src/models/operations/updatebundle.ts + - src/models/operations/updategroupuser.ts + - src/models/operations/updateidpgroupmappings.ts + - src/models/operations/updateresourceuser.ts + - src/models/operations/user.ts + - src/sdk/accessrules.ts + - src/sdk/apps.ts + - src/sdk/bundles.ts + - src/sdk/configurationtemplates.ts + - src/sdk/events.ts + - src/sdk/groupbindings.ts + - src/sdk/groups.ts + - src/sdk/idpgroupmappings.ts + - src/sdk/index.ts + - src/sdk/messagechannels.ts + - src/sdk/nonhumanidentities.ts + - src/sdk/oncallschedules.ts + - src/sdk/owners.ts + - src/sdk/requests.ts + - src/sdk/resources.ts + - src/sdk/scopedrolepermissions.ts + - src/sdk/sdk.ts + - src/sdk/sessions.ts + - src/sdk/tags.ts + - src/sdk/uars.ts + - src/sdk/users.ts + - src/types/async.ts + - src/types/blobs.ts + - src/types/constdatetime.ts + - src/types/enums.ts + - src/types/fp.ts + - src/types/index.ts + - src/types/operations.ts + - src/types/rfcdate.ts + - src/types/streams.ts + - tsconfig.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a24b069..548a629 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -19,29 +19,42 @@ generation: auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true + hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" + persistentEdits: {} tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.7.0 + version: 0.8.0 + acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} peerDependencies: {} additionalPackageJSON: {} + additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: OpalMcpError clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true + constFieldsAlwaysOptional: false defaultErrorName: APIError enableCustomCodeRegions: false enableMCPServer: true enableReactQuery: false enumFormat: union envVarPrefix: OPALMCP + exportZodModelNamespace: false + flatAdditionalProperties: false flattenGlobalSecurity: true flatteningOrder: parameters-first + formStringArrayEncodeMode: encoded-string + forwardCompatibleEnumsByDefault: false + forwardCompatibleUnionsByDefault: "false" generateExamples: true imports: option: openapi @@ -51,13 +64,23 @@ typescript: operations: models/operations shared: models/components webhooks: models/webhooks + inferUnionDiscriminators: true inputModelSuffix: input jsonpath: rfc9535 + laxMode: strict maxMethodParams: 0 methodArguments: require-security-and-request + modelPropertyCasing: camel moduleFormat: dual + multipartArrayFormat: legacy outputModelSuffix: output packageName: opal-mcp + preApplyUnionDiscriminators: true + preserveModelFieldNames: false responseFormat: flat + sseFlatResponse: false templateVersion: v2 + unionStrategy: left-to-right + usageSDKInitImports: [] useIndexModules: true + zodVersion: v3 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6a21e8e..d2b3ba2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,21 @@ -speakeasyVersion: 1.592.1 +speakeasyVersion: 1.683.0 sources: Opal API: sourceNamespace: opal-api - sourceRevisionDigest: sha256:4a4bd5ee1457eec63bff5d655817c4b617e109ead6e9f1132644d856d9ff2209 - sourceBlobDigest: sha256:353c5629289a76065ee83e77014e064454e57c4eb73955c10c6b018b9da09623 + sourceRevisionDigest: sha256:7dbfde0dbe10328a1be3cd4f1c039040c4e5a4647e70d150fc6db2c3f4a1059c + sourceBlobDigest: sha256:569a3b684d32e1ff2d585c8392b73b00c2a415e01a9f5543001e2e7b4a3f9762 tags: - latest + - speakeasy-sdk-regen-1762733295 - "1.0" targets: opal-mcp: source: Opal API sourceNamespace: opal-api - sourceRevisionDigest: sha256:4a4bd5ee1457eec63bff5d655817c4b617e109ead6e9f1132644d856d9ff2209 - sourceBlobDigest: sha256:353c5629289a76065ee83e77014e064454e57c4eb73955c10c6b018b9da09623 + sourceRevisionDigest: sha256:7dbfde0dbe10328a1be3cd4f1c039040c4e5a4647e70d150fc6db2c3f4a1059c + sourceBlobDigest: sha256:569a3b684d32e1ff2d585c8392b73b00c2a415e01a9f5543001e2e7b4a3f9762 codeSamplesNamespace: opal-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:744f37e853a8eda4f41141b669cc712de2583e769c3ab8d2dae7ab10f54b390f + codeSamplesRevisionDigest: sha256:e054c2adc399387483c723a382d49abfeded8780ff1c234b0975466257ac299b workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index f7ec725..3662b6c 100644 --- a/README.md +++ b/README.md @@ -283,23 +283,23 @@ For additional help, you can:
Available methods -### [accessRules](docs/sdks/accessrules/README.md) +### [AccessRules](docs/sdks/accessrules/README.md) * [createAccessRule](docs/sdks/accessrules/README.md#createaccessrule) - Creates a new access rule config for the given group_id. * [getAccessRule](docs/sdks/accessrules/README.md#getaccessrule) - Returns a list of access rule config given the group_id of the access rule. * [updateAccessRule](docs/sdks/accessrules/README.md#updateaccessrule) - Updates the access rule config for the given group_id. -### [apps](docs/sdks/apps/README.md) +### [Apps](docs/sdks/apps/README.md) -* [getApps](docs/sdks/apps/README.md#getapps) - Returns a list of `App` objects. -* [getApp](docs/sdks/apps/README.md#getapp) - Returns an `App` object. +* [getApps](docs/sdks/apps/README.md#getapps) - Get apps +* [getApp](docs/sdks/apps/README.md#getapp) - Get app by ID * [getSyncErrors](docs/sdks/apps/README.md#getsyncerrors) - Returns a list of recent sync errors that have occurred since the last successful sync. -### [bundles](docs/sdks/bundles/README.md) +### [Bundles](docs/sdks/bundles/README.md) -* [getBundles](docs/sdks/bundles/README.md#getbundles) - Returns a list of `Bundle` objects. +* [getBundles](docs/sdks/bundles/README.md#getbundles) - Get bundles * [createBundle](docs/sdks/bundles/README.md#createbundle) - Creates a bundle. -* [getBundle](docs/sdks/bundles/README.md#getbundle) - Returns a `Bundle` object. +* [getBundle](docs/sdks/bundles/README.md#getbundle) - Get bundle by ID * [deleteBundle](docs/sdks/bundles/README.md#deletebundle) - Deletes a bundle. * [updateBundle](docs/sdks/bundles/README.md#updatebundle) - Updates a bundle. * [getBundleResources](docs/sdks/bundles/README.md#getbundleresources) - Returns a list of `Resource` objects in a given bundle. @@ -311,31 +311,38 @@ For additional help, you can: * [getBundleVisibility](docs/sdks/bundles/README.md#getbundlevisibility) - Gets the visibility of the bundle. * [setBundleVisibility](docs/sdks/bundles/README.md#setbundlevisibility) - Sets the visibility of the bundle. -### [configurationTemplates](docs/sdks/configurationtemplates/README.md) +### [ConfigurationTemplates](docs/sdks/configurationtemplates/README.md) * [getConfigurationTemplates](docs/sdks/configurationtemplates/README.md#getconfigurationtemplates) - Returns a list of `ConfigurationTemplate` objects. * [createConfigurationTemplate](docs/sdks/configurationtemplates/README.md#createconfigurationtemplate) - Creates a configuration template. * [updateConfigurationTemplate](docs/sdks/configurationtemplates/README.md#updateconfigurationtemplate) - Update a configuration template. * [deleteConfigurationTemplate](docs/sdks/configurationtemplates/README.md#deleteconfigurationtemplate) - Deletes a configuration template. -### [events](docs/sdks/events/README.md) +### [Delegations](docs/sdks/delegations/README.md) + +* [getDelegations](docs/sdks/delegations/README.md#getdelegations) - Get delegations +* [createDelegation](docs/sdks/delegations/README.md#createdelegation) - Creates a new request reviewer delegation to delegate access review requests from one user to another. +* [getDelegation](docs/sdks/delegations/README.md#getdelegation) - Get delegation by ID +* [deleteDelegation](docs/sdks/delegations/README.md#deletedelegation) - Deletes a delegation by its ID. + +### [Events](docs/sdks/events/README.md) * [events](docs/sdks/events/README.md#events) - Returns a list of `Event` objects. -### [groupBindings](docs/sdks/groupbindings/README.md) +### [GroupBindings](docs/sdks/groupbindings/README.md) -* [getGroupBindings](docs/sdks/groupbindings/README.md#getgroupbindings) - Returns a list of `GroupBinding` objects. +* [getGroupBindings](docs/sdks/groupbindings/README.md#getgroupbindings) - Get group bindings * [createGroupBinding](docs/sdks/groupbindings/README.md#creategroupbinding) - Creates a group binding. * [updateGroupBindings](docs/sdks/groupbindings/README.md#updategroupbindings) - Bulk updates a list of group bindings. -* [getGroupBinding](docs/sdks/groupbindings/README.md#getgroupbinding) - Returns a `GroupBinding` object. +* [getGroupBinding](docs/sdks/groupbindings/README.md#getgroupbinding) - Get group binding by ID * [deleteGroupBinding](docs/sdks/groupbindings/README.md#deletegroupbinding) - Deletes a group binding. -### [groups](docs/sdks/groups/README.md) +### [Groups](docs/sdks/groups/README.md) -* [getGroups](docs/sdks/groups/README.md#getgroups) - Returns a list of groups for your organization. +* [getGroups](docs/sdks/groups/README.md#getgroups) - Get groups * [updateGroups](docs/sdks/groups/README.md#updategroups) - Bulk updates a list of groups. * [createGroup](docs/sdks/groups/README.md#creategroup) - Creates an Opal group or [imports a remote group](https://docs.opal.dev/reference/end-system-objects). -* [getGroup](docs/sdks/groups/README.md#getgroup) - Returns a `Group` object. +* [getGroup](docs/sdks/groups/README.md#getgroup) - Get group by ID * [deleteGroup](docs/sdks/groups/README.md#deletegroup) - Deletes a group. * [getGroupMessageChannels](docs/sdks/groups/README.md#getgroupmessagechannels) - Gets the list of audit and reviewer message channels attached to a group. * [setGroupMessageChannels](docs/sdks/groups/README.md#setgroupmessagechannels) - Sets the list of audit message channels attached to a group. @@ -343,9 +350,9 @@ For additional help, you can: * [setGroupOnCallSchedules](docs/sdks/groups/README.md#setgrouponcallschedules) - Sets the list of on call schedules attached to a group. * [getGroupResources](docs/sdks/groups/README.md#getgroupresources) - Gets the list of resources that the group gives access to. * [setGroupResources](docs/sdks/groups/README.md#setgroupresources) - Sets the list of resources that the group gives access to. -* [getGroupContainingGroups](docs/sdks/groups/README.md#getgroupcontaininggroups) - Gets the list of groups that the group gives access to. +* [getGroupContainingGroups](docs/sdks/groups/README.md#getgroupcontaininggroups) - Get nested groups * [addGroupContainingGroup](docs/sdks/groups/README.md#addgroupcontaininggroup) - Creates a new containing group. -* [getGroupContainingGroup](docs/sdks/groups/README.md#getgroupcontaininggroup) - Gets a specific containing group for a group. +* [getGroupContainingGroup](docs/sdks/groups/README.md#getgroupcontaininggroup) - Get nested group by ID * [removeGroupContainingGroup](docs/sdks/groups/README.md#removegroupcontaininggroup) - Removes a containing group from a group. * [addGroupResource](docs/sdks/groups/README.md#addgroupresource) - Adds a resource to a group. * [getGroupVisibility](docs/sdks/groups/README.md#getgroupvisibility) - Gets the visibility of this group. @@ -359,55 +366,65 @@ For additional help, you can: * [updateGroupUser](docs/sdks/groups/README.md#updategroupuser) - Updates a user's access level or duration in this group. * [addGroupUser](docs/sdks/groups/README.md#addgroupuser) - Adds a user to this group. * [deleteGroupUser](docs/sdks/groups/README.md#deletegroupuser) - Removes a user's access from this group. +* [getUserGroups](docs/sdks/groups/README.md#getusergroups) - Returns all groups that the user is a member of. -### [idpGroupMappings](docs/sdks/idpgroupmappings/README.md) +### [IdpGroupMappings](docs/sdks/idpgroupmappings/README.md) * [getIdpGroupMappings](docs/sdks/idpgroupmappings/README.md#getidpgroupmappings) - Returns the configured set of available `IdpGroupMapping` objects for an Okta app. * [updateIdpGroupMappings](docs/sdks/idpgroupmappings/README.md#updateidpgroupmappings) - Updates the list of available `IdpGroupMapping` objects for an Okta app. +* [getIdpGroupMapping](docs/sdks/idpgroupmappings/README.md#getidpgroupmapping) - Gets an `IdpGroupMapping` object for an Okta app and group. +* [createIdpGroupMapping](docs/sdks/idpgroupmappings/README.md#createidpgroupmapping) - Creates or updates an individual `IdpGroupMapping` object (upsert operation). + +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated + * [deleteIdpGroupMappings](docs/sdks/idpgroupmappings/README.md#deleteidpgroupmappings) - Deletes an `IdpGroupMapping` object. -### [messageChannels](docs/sdks/messagechannels/README.md) +### [MessageChannels](docs/sdks/messagechannels/README.md) -* [getMessageChannels](docs/sdks/messagechannels/README.md#getmessagechannels) - Returns a list of `MessageChannel` objects. +* [getMessageChannels](docs/sdks/messagechannels/README.md#getmessagechannels) - Get message channels * [createMessageChannel](docs/sdks/messagechannels/README.md#createmessagechannel) - Creates a `MessageChannel` objects. -* [getMessageChannel](docs/sdks/messagechannels/README.md#getmessagechannel) - Gets a `MessageChannel` object. +* [getMessageChannel](docs/sdks/messagechannels/README.md#getmessagechannel) - Get message channel by ID -### [nonHumanIdentities](docs/sdks/nonhumanidentities/README.md) +### [NonHumanIdentities](docs/sdks/nonhumanidentities/README.md) * [getNhis](docs/sdks/nonhumanidentities/README.md#getnhis) - Returns a list of non-human identities for your organization. -### [onCallSchedules](docs/sdks/oncallschedules/README.md) +### [OnCallSchedules](docs/sdks/oncallschedules/README.md) -* [getOnCallSchedules](docs/sdks/oncallschedules/README.md#getoncallschedules) - Returns a list of `OnCallSchedule` objects. +* [getOnCallSchedules](docs/sdks/oncallschedules/README.md#getoncallschedules) - Get on call schedules * [createOnCallSchedule](docs/sdks/oncallschedules/README.md#createoncallschedule) - Creates a `OnCallSchedule` objects. -* [getOnCallSchedule](docs/sdks/oncallschedules/README.md#getoncallschedule) - Gets a `OnCallSchedule` object. +* [getOnCallSchedule](docs/sdks/oncallschedules/README.md#getoncallschedule) - Get on call schedule by ID +### [Owners](docs/sdks/owners/README.md) -### [owners](docs/sdks/owners/README.md) - -* [getOwners](docs/sdks/owners/README.md#getowners) - Returns a list of `Owner` objects. +* [getOwners](docs/sdks/owners/README.md#getowners) - Get owners * [createOwner](docs/sdks/owners/README.md#createowner) - Creates an owner. * [updateOwners](docs/sdks/owners/README.md#updateowners) - Bulk updates a list of owners. -* [getOwner](docs/sdks/owners/README.md#getowner) - Returns an `Owner` object. +* [getOwner](docs/sdks/owners/README.md#getowner) - Get owner by ID * [deleteOwner](docs/sdks/owners/README.md#deleteowner) - Deletes an owner. * [getOwnerFromName](docs/sdks/owners/README.md#getownerfromname) - Returns an `Owner` object. Does not support owners with `/` in their name, use /owners?name=... instead. * [getOwnerUsers](docs/sdks/owners/README.md#getownerusers) - Gets the list of users for this owner, in escalation priority order if applicable. * [setOwnerUsers](docs/sdks/owners/README.md#setownerusers) - Sets the list of users for this owner. If escalation is enabled, the order of this list is the escalation priority order of the users. If the owner has a source group, adding or removing users from this list won't be possible. -### [requests](docs/sdks/requests/README.md) +### [Requests](docs/sdks/requests/README.md) -* [getRequests](docs/sdks/requests/README.md#getrequests) - Returns a list of requests for your organization that is visible by the admin. +* [getRequests](docs/sdks/requests/README.md#getrequests) - Get requests * [createRequest](docs/sdks/requests/README.md#createrequest) - Create an access request -* [~~getRequestsRelay~~](docs/sdks/requests/README.md#getrequestsrelay) - Returns a paginated list of requests using Relay-style cursor pagination. :warning: **Deprecated** -* [getRequest](docs/sdks/requests/README.md#getrequest) - Returns a request by ID. +* [~~getRequestsRelay~~](docs/sdks/requests/README.md#getrequestsrelay) - Get requests via Relay :warning: **Deprecated** +* [getRequest](docs/sdks/requests/README.md#getrequest) - Get request by ID * [approveRequest](docs/sdks/requests/README.md#approverequest) - Approve an access request +* [denyRequest](docs/sdks/requests/README.md#denyrequest) - Deny an access request +* [getRequestComments](docs/sdks/requests/README.md#getrequestcomments) - Returns a list of comments for a specific request. +* [createRequestComment](docs/sdks/requests/README.md#createrequestcomment) - Comment on an access request -### [resources](docs/sdks/resources/README.md) +### [Resources](docs/sdks/resources/README.md) -* [getResources](docs/sdks/resources/README.md#getresources) - Returns a list of resources for your organization. +* [getResources](docs/sdks/resources/README.md#getresources) - Get resources * [updateResources](docs/sdks/resources/README.md#updateresources) - Bulk updates a list of resources. * [createResource](docs/sdks/resources/README.md#createresource) - Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects) for details about importing resources. -* [getResource](docs/sdks/resources/README.md#getresource) - Retrieves a resource. +* [getResource](docs/sdks/resources/README.md#getresource) - Get resource by ID * [deleteResource](docs/sdks/resources/README.md#deleteresource) - Deletes a resource. * [getResourceMessageChannels](docs/sdks/resources/README.md#getresourcemessagechannels) - Gets the list of audit message channels attached to a resource. * [setResourceMessageChannels](docs/sdks/resources/README.md#setresourcemessagechannels) - Sets the list of audit message channels attached to a resource. @@ -418,34 +435,30 @@ For additional help, you can: * [getResourceReviewerStages](docs/sdks/resources/README.md#getresourcereviewerstages) - Gets the list reviewer stages for a resource. * [setResourceReviewerStages](docs/sdks/resources/README.md#setresourcereviewerstages) - Sets the list of reviewer stages for a resource. * [getResourceNhis](docs/sdks/resources/README.md#getresourcenhis) - Gets the list of non-human identities with access to this resource. -* [getResourceUsers](docs/sdks/resources/README.md#getresourceusers) - Gets the list of users for this resource. +* [getResourceUsers](docs/sdks/resources/README.md#getresourceusers) - Get resource users * [addResourceNhi](docs/sdks/resources/README.md#addresourcenhi) - Gives a non-human identity access to this resource. * [deleteResourceNhi](docs/sdks/resources/README.md#deleteresourcenhi) - Removes a non-human identity's direct access from this resource. * [addResourceUser](docs/sdks/resources/README.md#addresourceuser) - Adds a user to this resource. * [updateResourceUser](docs/sdks/resources/README.md#updateresourceuser) - Updates a user's access level or duration on this resource. * [deleteResourceUser](docs/sdks/resources/README.md#deleteresourceuser) - Removes a user's direct access from this resource. -* [getResourceUser](docs/sdks/resources/README.md#getresourceuser) - Returns information about a specific user's access to a resource. +* [getResourceUser](docs/sdks/resources/README.md#getresourceuser) - Get resource user * [~~resourceUserAccessStatusRetrieve~~](docs/sdks/resources/README.md#resourceuseraccessstatusretrieve) - Get user's access status to a resource. :warning: **Deprecated** * [getResourceTags](docs/sdks/resources/README.md#getresourcetags) - Returns all tags applied to the resource. * [getResourceScopedRolePermissions](docs/sdks/resources/README.md#getresourcescopedrolepermissions) - Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. * [setResourceScopedRolePermissions](docs/sdks/resources/README.md#setresourcescopedrolepermissions) - Sets all the scoped role permissions on an OPAL_SCOPED_ROLE resource. +* [getUserResources](docs/sdks/resources/README.md#getuserresources) - Gets the list of resources for this user. -### [scopedRolePermissions](docs/sdks/scopedrolepermissions/README.md) - -* [getResourceScopedRolePermissions](docs/sdks/scopedrolepermissions/README.md#getresourcescopedrolepermissions) - Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. -* [setResourceScopedRolePermissions](docs/sdks/scopedrolepermissions/README.md#setresourcescopedrolepermissions) - Sets all the scoped role permissions on an OPAL_SCOPED_ROLE resource. - -### [sessions](docs/sdks/sessions/README.md) +### [Sessions](docs/sdks/sessions/README.md) * [sessions](docs/sdks/sessions/README.md#sessions) - Returns a list of `Session` objects. -### [tags](docs/sdks/tags/README.md) +### [Tags](docs/sdks/tags/README.md) -* [getTagByID](docs/sdks/tags/README.md#gettagbyid) - UNSTABLE. May be removed at any time. Gets a tag with the given id. +* [getTagByID](docs/sdks/tags/README.md#gettagbyid) - Get tag by ID * [deleteTagByID](docs/sdks/tags/README.md#deletetagbyid) - UNSTABLE. May be removed at any time. Deletes a tag with the given id. * [getTag](docs/sdks/tags/README.md#gettag) - Gets a tag with the given key and value. * [createTag](docs/sdks/tags/README.md#createtag) - Creates a tag with the given key and value. -* [getTags](docs/sdks/tags/README.md#gettags) - Returns a list of tags created by your organization. +* [getTags](docs/sdks/tags/README.md#gettags) - Get tags * [addUserTag](docs/sdks/tags/README.md#addusertag) - Applies a tag to a user. * [removeUserTag](docs/sdks/tags/README.md#removeusertag) - Removes a tag from a user. * [addGroupTag](docs/sdks/tags/README.md#addgrouptag) - Applies a tag to a group. @@ -453,13 +466,13 @@ For additional help, you can: * [addResourceTag](docs/sdks/tags/README.md#addresourcetag) - Applies a tag to a resource. * [removeResourceTag](docs/sdks/tags/README.md#removeresourcetag) - Removes a tag from a resource. -### [uars](docs/sdks/uars/README.md) +### [Uars](docs/sdks/uars/README.md) * [getUARs](docs/sdks/uars/README.md#getuars) - Returns a list of `UAR` objects. * [createUar](docs/sdks/uars/README.md#createuar) - Starts a User Access Review. * [getUar](docs/sdks/uars/README.md#getuar) - Retrieves a specific UAR. -### [users](docs/sdks/users/README.md) +### [Users](docs/sdks/users/README.md) * [user](docs/sdks/users/README.md#user) - Retrieves detailed user information from Opal. This endpoint is designed to fetch user details by either user ID (UUID) or email address. The endpoint follows a strict precedence rule where @@ -476,6 +489,7 @@ Authentication: - Respects standard Opal authorization rules * [getUsers](docs/sdks/users/README.md#getusers) - Returns a list of users for your organization. +* [getRemoteUsers](docs/sdks/users/README.md#getremoteusers) - Returns a list of remote users for your organization. * [getUserTags](docs/sdks/users/README.md#getusertags) - Returns all tags applied to the user.
diff --git a/RELEASES.md b/RELEASES.md index 0e75e08..fbd5528 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [typescript v0.1.0] . ### Releases -- [NPM v0.1.0] https://www.npmjs.com/package/opal-mcp/v/0.1.0 - . \ No newline at end of file +- [NPM v0.1.0] https://www.npmjs.com/package/opal-mcp/v/0.1.0 - . + +## 2026-01-09 00:08:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.683.0 (2.792.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.8.0] . +### Releases +- [NPM v0.8.0] https://www.npmjs.com/package/opal-mcp/v/0.8.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea94..27731c3 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/models/components/anthropicworkspace.md b/docs/models/components/anthropicworkspace.md new file mode 100644 index 0000000..fff0a1e --- /dev/null +++ b/docs/models/components/anthropicworkspace.md @@ -0,0 +1,19 @@ +# AnthropicWorkspace + +Remote info for Anthropic workspace. + +## Example Usage + +```typescript +import { AnthropicWorkspace } from "opal-mcp/models/components"; + +let value: AnthropicWorkspace = { + workspaceId: "ws-123456", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `workspaceId` | *string* | :heavy_check_mark: | The id of the workspace. | ws-123456 | \ No newline at end of file diff --git a/docs/models/components/awsrdscluster.md b/docs/models/components/awsrdscluster.md new file mode 100644 index 0000000..b968a84 --- /dev/null +++ b/docs/models/components/awsrdscluster.md @@ -0,0 +1,29 @@ +# AwsRdsCluster + +Remote info for AWS RDS cluster. + +## Example Usage + +```typescript +import { AwsRdsCluster } from "opal-mcp/models/components"; + +let value: AwsRdsCluster = { + clusterId: "demo-mysql-cluster", + region: "us-east-2", + resourceId: "cluster-AOO8V0XUCNU13XLZXQDQRSN0NQ", + accountId: "234234234234", + databaseName: "mydatabase", + engine: "POSTGRESQL", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `clusterId` | *string* | :heavy_check_mark: | The clusterId of the RDS cluster. | demo-mysql-cluster | +| `region` | *string* | :heavy_check_mark: | The region of the RDS cluster. | us-east-2 | +| `resourceId` | *string* | :heavy_check_mark: | The resourceId of the RDS cluster. | cluster-AOO8V0XUCNU13XLZXQDQRSN0NQ | +| `accountId` | *string* | :heavy_check_mark: | The id of the AWS account. Required for AWS Organizations. | 234234234234 | +| `databaseName` | *string* | :heavy_check_mark: | The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. | mydatabase | +| `engine` | [components.RDSEngineEnum](../../models/components/rdsengineenum.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/awsssogroup.md b/docs/models/components/awsssogroup.md new file mode 100644 index 0000000..0e6ad36 --- /dev/null +++ b/docs/models/components/awsssogroup.md @@ -0,0 +1,19 @@ +# AwsSsoGroup + +Remote info for AWS SSO group. + +## Example Usage + +```typescript +import { AwsSsoGroup } from "opal-mcp/models/components"; + +let value: AwsSsoGroup = { + groupId: "898931321", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `groupId` | *string* | :heavy_check_mark: | The id of the AWS SSO group. | 898931321 | \ No newline at end of file diff --git a/docs/models/components/azureenterpriseapp.md b/docs/models/components/azureenterpriseapp.md new file mode 100644 index 0000000..5a8fed8 --- /dev/null +++ b/docs/models/components/azureenterpriseapp.md @@ -0,0 +1,19 @@ +# AzureEnterpriseApp + +Remote info for Azure Enterprise App. + +## Example Usage + +```typescript +import { AzureEnterpriseApp } from "opal-mcp/models/components"; + +let value: AzureEnterpriseApp = { + resourceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The remote application identifier (service principal or application object ID). | aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee | \ No newline at end of file diff --git a/docs/models/components/azureentraidrole.md b/docs/models/components/azureentraidrole.md new file mode 100644 index 0000000..f7b3cd7 --- /dev/null +++ b/docs/models/components/azureentraidrole.md @@ -0,0 +1,19 @@ +# AzureEntraIdRole + +Remote info for Azure Entra ID role. + +## Example Usage + +```typescript +import { AzureEntraIdRole } from "opal-mcp/models/components"; + +let value: AzureEntraIdRole = { + resourceId: "11111111-2222-3333-4444-555555555555", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The remote role identifier from Entra (object ID). | 11111111-2222-3333-4444-555555555555 | \ No newline at end of file diff --git a/docs/models/components/azuremanagementgroup.md b/docs/models/components/azuremanagementgroup.md new file mode 100644 index 0000000..7ed5417 --- /dev/null +++ b/docs/models/components/azuremanagementgroup.md @@ -0,0 +1,19 @@ +# AzureManagementGroup + +Remote info for Azure management group. + +## Example Usage + +```typescript +import { AzureManagementGroup } from "opal-mcp/models/components"; + +let value: AzureManagementGroup = { + resourceId: "/providers/Microsoft.Management/managementGroups/my-mg", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the management group. | /providers/Microsoft.Management/managementGroups/my-mg | \ No newline at end of file diff --git a/docs/models/components/azureresourcegroup.md b/docs/models/components/azureresourcegroup.md new file mode 100644 index 0000000..6d8e6ad --- /dev/null +++ b/docs/models/components/azureresourcegroup.md @@ -0,0 +1,20 @@ +# AzureResourceGroup + +Remote info for Azure resource group. + +## Example Usage + +```typescript +import { AzureResourceGroup } from "opal-mcp/models/components"; + +let value: AzureResourceGroup = { + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the resource group. | /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg | \ No newline at end of file diff --git a/docs/models/components/azuresqldatabase.md b/docs/models/components/azuresqldatabase.md new file mode 100644 index 0000000..54c6647 --- /dev/null +++ b/docs/models/components/azuresqldatabase.md @@ -0,0 +1,20 @@ +# AzureSqlDatabase + +Remote info for Azure SQL database. + +## Example Usage + +```typescript +import { AzureSqlDatabase } from "opal-mcp/models/components"; + +let value: AzureSqlDatabase = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the SQL database. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01 | \ No newline at end of file diff --git a/docs/models/components/azuresqlmanageddatabase.md b/docs/models/components/azuresqlmanageddatabase.md new file mode 100644 index 0000000..02eb65a --- /dev/null +++ b/docs/models/components/azuresqlmanageddatabase.md @@ -0,0 +1,20 @@ +# AzureSqlManagedDatabase + +Remote info for Azure SQL managed database. + +## Example Usage + +```typescript +import { AzureSqlManagedDatabase } from "opal-mcp/models/components"; + +let value: AzureSqlManagedDatabase = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the SQL managed database. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01 | \ No newline at end of file diff --git a/docs/models/components/azuresqlmanagedinstance.md b/docs/models/components/azuresqlmanagedinstance.md new file mode 100644 index 0000000..8f3bf84 --- /dev/null +++ b/docs/models/components/azuresqlmanagedinstance.md @@ -0,0 +1,20 @@ +# AzureSqlManagedInstance + +Remote info for Azure SQL managed instance. + +## Example Usage + +```typescript +import { AzureSqlManagedInstance } from "opal-mcp/models/components"; + +let value: AzureSqlManagedInstance = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the SQL managed instance. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01 | \ No newline at end of file diff --git a/docs/models/components/azuresqlserver.md b/docs/models/components/azuresqlserver.md new file mode 100644 index 0000000..22ec9dc --- /dev/null +++ b/docs/models/components/azuresqlserver.md @@ -0,0 +1,20 @@ +# AzureSqlServer + +Remote info for Azure SQL server. + +## Example Usage + +```typescript +import { AzureSqlServer } from "opal-mcp/models/components"; + +let value: AzureSqlServer = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the SQL server. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01 | \ No newline at end of file diff --git a/docs/models/components/azurestorageaccount.md b/docs/models/components/azurestorageaccount.md new file mode 100644 index 0000000..1001aed --- /dev/null +++ b/docs/models/components/azurestorageaccount.md @@ -0,0 +1,20 @@ +# AzureStorageAccount + +Remote info for Azure storage account. + +## Example Usage + +```typescript +import { AzureStorageAccount } from "opal-mcp/models/components"; + +let value: AzureStorageAccount = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the storage account. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01 | \ No newline at end of file diff --git a/docs/models/components/azurestoragecontainer.md b/docs/models/components/azurestoragecontainer.md new file mode 100644 index 0000000..50cde8a --- /dev/null +++ b/docs/models/components/azurestoragecontainer.md @@ -0,0 +1,20 @@ +# AzureStorageContainer + +Remote info for Azure storage container. + +## Example Usage + +```typescript +import { AzureStorageContainer } from "opal-mcp/models/components"; + +let value: AzureStorageContainer = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the storage container. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01 | \ No newline at end of file diff --git a/docs/models/components/azuresubscription.md b/docs/models/components/azuresubscription.md new file mode 100644 index 0000000..095d721 --- /dev/null +++ b/docs/models/components/azuresubscription.md @@ -0,0 +1,19 @@ +# AzureSubscription + +Remote info for Azure subscription. + +## Example Usage + +```typescript +import { AzureSubscription } from "opal-mcp/models/components"; + +let value: AzureSubscription = { + resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the subscription. | /subscriptions/00000000-0000-0000-0000-000000000000 | \ No newline at end of file diff --git a/docs/models/components/azureuserassignedmanagedidentity.md b/docs/models/components/azureuserassignedmanagedidentity.md new file mode 100644 index 0000000..8be1a9a --- /dev/null +++ b/docs/models/components/azureuserassignedmanagedidentity.md @@ -0,0 +1,20 @@ +# AzureUserAssignedManagedIdentity + +Remote info for Azure user assigned managed identity. + +## Example Usage + +```typescript +import { AzureUserAssignedManagedIdentity } from "opal-mcp/models/components"; + +let value: AzureUserAssignedManagedIdentity = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the user assigned managed identity. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01 | \ No newline at end of file diff --git a/docs/models/components/azurevirtualmachine.md b/docs/models/components/azurevirtualmachine.md new file mode 100644 index 0000000..ec9b9ee --- /dev/null +++ b/docs/models/components/azurevirtualmachine.md @@ -0,0 +1,20 @@ +# AzureVirtualMachine + +Remote info for Azure virtual machine. + +## Example Usage + +```typescript +import { AzureVirtualMachine } from "opal-mcp/models/components"; + +let value: AzureVirtualMachine = { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `resourceId` | *string* | :heavy_check_mark: | The ARM resource ID of the virtual machine. | /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01 | \ No newline at end of file diff --git a/docs/models/components/connectorgroup.md b/docs/models/components/connectorgroup.md new file mode 100644 index 0000000..942ae6c --- /dev/null +++ b/docs/models/components/connectorgroup.md @@ -0,0 +1,19 @@ +# ConnectorGroup + +Remote info for Connector group. + +## Example Usage + +```typescript +import { ConnectorGroup } from "opal-mcp/models/components"; + +let value: ConnectorGroup = { + groupId: "898931321", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `groupId` | *string* | :heavy_check_mark: | The id of the Connector group. | 898931321 | \ No newline at end of file diff --git a/docs/models/components/couparole.md b/docs/models/components/couparole.md new file mode 100644 index 0000000..9c8e6a6 --- /dev/null +++ b/docs/models/components/couparole.md @@ -0,0 +1,19 @@ +# CoupaRole + +Remote info for Coupa role. + +## Example Usage + +```typescript +import { CoupaRole } from "opal-mcp/models/components"; + +let value: CoupaRole = { + roleId: "999", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | 999 | \ No newline at end of file diff --git a/docs/models/components/createdelegationrequest.md b/docs/models/components/createdelegationrequest.md new file mode 100644 index 0000000..90a7cda --- /dev/null +++ b/docs/models/components/createdelegationrequest.md @@ -0,0 +1,27 @@ +# CreateDelegationRequest + +Request body for creating a new delegation of access review requests from one user to another. + +## Example Usage + +```typescript +import { CreateDelegationRequest } from "opal-mcp/models/components"; + +let value: CreateDelegationRequest = { + delegatorUserId: "123e4567-e89b-12d3-a456-426614174000", + delegateUserId: "7c86c85d-0651-43e2-a748-d69d658418e8", + startTime: new Date("2023-10-01T12:00:00Z"), + endTime: new Date("2023-10-01T12:00:00Z"), + reason: "I need to be out of the office", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `delegatorUserId` | *string* | :heavy_check_mark: | The ID of the user delegating their access review requests. | 123e4567-e89b-12d3-a456-426614174000 | +| `delegateUserId` | *string* | :heavy_check_mark: | The ID of the user being delegated to. | 7c86c85d-0651-43e2-a748-d69d658418e8 | +| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | +| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | +| `reason` | *string* | :heavy_check_mark: | The reason for the delegation. | I need to be out of the office | \ No newline at end of file diff --git a/docs/models/components/creategroupinfo.md b/docs/models/components/creategroupinfo.md index 57a3229..2971f46 100644 --- a/docs/models/components/creategroupinfo.md +++ b/docs/models/components/creategroupinfo.md @@ -31,7 +31,7 @@ let value: CreateGroupInfo = { | `description` | *string* | :heavy_minus_sign: | A description of the remote group. | Engineering team Okta group. | | `groupType` | [components.GroupTypeEnum](../../models/components/grouptypeenum.md) | :heavy_check_mark: | The type of the group. | OPAL_GROUP | | `appId` | *string* | :heavy_check_mark: | The ID of the app for the group. | f454d283-ca87-4a8a-bdbb-df212eca5353 | -| `remoteInfo` | [components.GroupRemoteInfo](../../models/components/groupremoteinfo.md) | :heavy_minus_sign: | Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. | | +| `remoteInfo` | [components.GroupRemoteInfo](../../models/components/groupremoteinfo.md) | :heavy_minus_sign: | Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. | | | ~~`remoteGroupId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated - use remote_info instead. The ID of the group on the remote system. Include only for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details on how to specify this field. | 00g4fixjd6Bc9w012345 | | ~~`metadata`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated - use remote_info instead.

JSON metadata about the remote group. Include only for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details on how to specify this field.
The required format is dependent on group_type and should have the following schema:

```json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Group Metadata",
"properties": {
"ad_group": {
"properties": {
"object_guid": {
"type": "string"
}
},
"required": ["object_guid"],
"additionalProperties": false,
"type": "object",
"title": "Active Directory Group"
},
"duo_group": {
"properties": {
"group_id": {
"type": "string"
}
},
"required": ["group_id"],
"additionalProperties": false,
"type": "object",
"title": "Duo Group"
},
"git_hub_team": {
"properties": {
"org_name": {
"type": "string"
},
"team_slug": {
"type": "string"
}
},
"required": ["org_name", "team_slug"],
"additionalProperties": false,
"type": "object",
"title": "GitHub Team"
},
"google_groups_group": {
"properties": {
"group_id": {
"type": "string"
}
},
"required": ["group_id"],
"additionalProperties": false,
"type": "object",
"title": "Google Groups Group"
},
"ldap_group": {
"properties": {
"group_uid": {
"type": "string"
}
},
"required": ["group_uid"],
"additionalProperties": false,
"type": "object",
"title": "LDAP Group"
},
"okta_directory_group": {
"properties": {
"group_id": {
"type": "string"
}
},
"required": ["group_id"],
"additionalProperties": false,
"type": "object",
"title": "Okta Directory Group"
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1,
"type": "object"
}
``` | { "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } } | | `customRequestNotification` | *string* | :heavy_minus_sign: | Custom request notification sent upon request approval. | Check your email to register your account. | diff --git a/docs/models/components/createrequestinfo.md b/docs/models/components/createrequestinfo.md index d48f16a..5b65a91 100644 --- a/docs/models/components/createrequestinfo.md +++ b/docs/models/components/createrequestinfo.md @@ -12,7 +12,6 @@ let value: CreateRequestInfo = { { id: "group283-ca87-4a8a-bdbb-df212eca5353", accessLevelRemoteId: "arn:aws:iam::490306337630:role/SupportUser", - accessLevelName: "arn:aws:iam::490306337630:role/SupportUser", }, ], groups: [ diff --git a/docs/models/components/createrequestinforesource.md b/docs/models/components/createrequestinforesource.md index 1b12107..0b0516b 100644 --- a/docs/models/components/createrequestinforesource.md +++ b/docs/models/components/createrequestinforesource.md @@ -8,14 +8,13 @@ import { CreateRequestInfoResource } from "opal-mcp/models/components"; let value: CreateRequestInfoResource = { id: "group283-ca87-4a8a-bdbb-df212eca5353", accessLevelRemoteId: "arn:aws:iam::490306337630:role/SupportUser", - accessLevelName: "arn:aws:iam::490306337630:role/SupportUser", }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_minus_sign: | The ID of the resource requested. Should not be specified if group_id is specified. | group283-ca87-4a8a-bdbb-df212eca5353 | -| `accessLevelRemoteId` | *string* | :heavy_minus_sign: | The ID of the access level requested on the remote system. | arn:aws:iam::490306337630:role/SupportUser | -| `accessLevelName` | *string* | :heavy_minus_sign: | The ID of the access level requested on the remote system. | arn:aws:iam::490306337630:role/SupportUser | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_minus_sign: | The ID of the resource requested. Should not be specified if group_id is specified. | group283-ca87-4a8a-bdbb-df212eca5353 | +| `accessLevelRemoteId` | *string* | :heavy_minus_sign: | The ID of the access level requested on the remote system. | arn:aws:iam::490306337630:role/SupportUser | +| ~~`accessLevelName`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. | arn:aws:iam::490306337630:role/SupportUser | \ No newline at end of file diff --git a/docs/models/components/createresourceinfo.md b/docs/models/components/createresourceinfo.md index 7a35bf3..c61a31d 100644 --- a/docs/models/components/createresourceinfo.md +++ b/docs/models/components/createresourceinfo.md @@ -19,13 +19,8 @@ let value: CreateResourceInfo = { appId: "f454d283-ca87-4a8a-bdbb-df212eca5353", remoteResourceId: "API_ACCESS_MANAGEMENT_ADMIN-51d203da-313a-4fd9-8fcf-420ce6312345", - metadata: "{\n" - + " \"okta_directory_role\":\n" - + " {\n" - + " \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n" - + " \"role_type\": \"SUPER_ADMIN\",\n" - + " },\n" - + "}", + metadata: + "{\n \"okta_directory_role\":\n {\n \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n \"role_type\": \"SUPER_ADMIN\",\n },\n}", }; ``` diff --git a/docs/models/components/createuarinfo.md b/docs/models/components/createuarinfo.md index ef8c54a..4587239 100644 --- a/docs/models/components/createuarinfo.md +++ b/docs/models/components/createuarinfo.md @@ -46,11 +46,12 @@ let value: CreateUARInfo = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *string* | :heavy_check_mark: | The name of the UAR. | Monthly UAR (July) | -| `reviewerAssignmentPolicy` | [components.UARReviewerAssignmentPolicyEnum](../../models/components/uarreviewerassignmentpolicyenum.md) | :heavy_check_mark: | A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. | MANUALLY | +| `reviewerAssignmentPolicy` | [components.UARReviewerAssignmentPolicyEnum](../../models/components/uarreviewerassignmentpolicyenum.md) | :heavy_check_mark: | A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. | MANUALLY | | `sendReviewerAssignmentNotification` | *boolean* | :heavy_check_mark: | A bool representing whether to send a notification to reviewers when they're assigned a new review. Default is False. | false | | `deadline` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The last day for reviewers to complete their access reviews. | 2022-07-14 06:59:59 +0000 UTC | | `timeZone` | *string* | :heavy_check_mark: | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | America/Los_Angeles | | `selfReviewAllowed` | *boolean* | :heavy_check_mark: | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | false | +| `instantlyActionReviews` | *boolean* | :heavy_minus_sign: | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | false | | `reminderSchedule` | *number*[] | :heavy_minus_sign: | N/A | | | `reminderIncludeManager` | *boolean* | :heavy_minus_sign: | N/A | false | | `uarScope` | [components.UARScope](../../models/components/uarscope.md) | :heavy_minus_sign: | If set, the access review will only contain resources and groups that match at least one of the filters in scope. | {
"filter_operator": "ANY",
"users": [
"userd283-ca87-4a8a-bdbb-df212eca5353"
],
"include_group_bindings": true,
"tags": [
{
"key": "uar_scope",
"value": "high_priority"
}
],
"names": [
"demo",
"api"
],
"admins": [
"f454d283-ca87-4a8a-bdbb-df212eca5353",
"8763d283-ca87-4a8a-bdbb-df212ecab139"
],
"resource_types": [
"GCP_CLOUD_SQL_POSTGRES_INSTANCE"
],
"group_types": [
"AWS_SSO_GROUP"
],
"apps": [
"pas2d283-ca87-4a8a-bdbb-df212eca5353",
"apss2d283-ca87-4a8a-bdbb-df212eca5353"
],
"entities": [
"f454d283-as87-4a8a-bdbb-df212eca5353",
"f454d283-as87-4a8a-bdbb-df212eca5329"
]
} | \ No newline at end of file diff --git a/docs/models/components/cursororganization.md b/docs/models/components/cursororganization.md new file mode 100644 index 0000000..cbf0359 --- /dev/null +++ b/docs/models/components/cursororganization.md @@ -0,0 +1,19 @@ +# CursorOrganization + +Remote info for a Cursor organization. + +## Example Usage + +```typescript +import { CursorOrganization } from "opal-mcp/models/components"; + +let value: CursorOrganization = { + orgId: "123e4567-e89b-12d3-a456-426614174000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `orgId` | *string* | :heavy_check_mark: | The id of the organization. | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file diff --git a/docs/models/components/databricksaccountgroup.md b/docs/models/components/databricksaccountgroup.md new file mode 100644 index 0000000..be59ba1 --- /dev/null +++ b/docs/models/components/databricksaccountgroup.md @@ -0,0 +1,19 @@ +# DatabricksAccountGroup + +Remote info for Databricks account group. + +## Example Usage + +```typescript +import { DatabricksAccountGroup } from "opal-mcp/models/components"; + +let value: DatabricksAccountGroup = { + groupId: "898931321", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `groupId` | *string* | :heavy_check_mark: | The id of the Databricks account group. | 898931321 | \ No newline at end of file diff --git a/docs/models/components/databricksaccountserviceprincipal.md b/docs/models/components/databricksaccountserviceprincipal.md new file mode 100644 index 0000000..8ea6fb4 --- /dev/null +++ b/docs/models/components/databricksaccountserviceprincipal.md @@ -0,0 +1,21 @@ +# DatabricksAccountServicePrincipal + +Remote info for Databricks account service principal. + +## Example Usage + +```typescript +import { DatabricksAccountServicePrincipal } from "opal-mcp/models/components"; + +let value: DatabricksAccountServicePrincipal = { + applicationId: "00000000-0000-0000-0000-000000000000", + resourceId: "00000000-0000-0000-0000-000000000000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `applicationId` | *string* | :heavy_check_mark: | The application ID of the service principal. | 00000000-0000-0000-0000-000000000000 | +| `resourceId` | *string* | :heavy_check_mark: | The resource ID of the service principal. | 00000000-0000-0000-0000-000000000000 | \ No newline at end of file diff --git a/docs/models/components/datastaxastrarole.md b/docs/models/components/datastaxastrarole.md new file mode 100644 index 0000000..e872697 --- /dev/null +++ b/docs/models/components/datastaxastrarole.md @@ -0,0 +1,19 @@ +# DatastaxAstraRole + +Remote info for an Astra role. + +## Example Usage + +```typescript +import { DatastaxAstraRole } from "opal-mcp/models/components"; + +let value: DatastaxAstraRole = { + roleId: "123e4567-e89b-12d3-a456-426614174000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file diff --git a/docs/models/components/delegation.md b/docs/models/components/delegation.md new file mode 100644 index 0000000..633c74e --- /dev/null +++ b/docs/models/components/delegation.md @@ -0,0 +1,39 @@ +# Delegation + +# Delegation Object +### Description +The `Delegation` object represents a delegation of access review requests from one user to another. + +### Usage Example +List from the `GET Delegations` endpoint. +Get from the `GET Delegation` endpoint. + +## Example Usage + +```typescript +import { Delegation } from "opal-mcp/models/components"; + +let value: Delegation = { + id: "4aed3e8a-727b-4d72-8010-3b8710c50bec", + delegatorUserId: "123e4567-e89b-12d3-a456-426614174000", + delegateUserId: "7c86c85d-0651-43e2-a748-d69d658418e8", + startTime: new Date("2023-10-01T12:00:00Z"), + endTime: new Date("2023-10-01T12:00:00Z"), + reason: "I need to be out of the office", + createdAt: new Date("2023-10-01T12:00:00Z"), + updatedAt: new Date("2023-10-01T12:00:00Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the delegation. | 4aed3e8a-727b-4d72-8010-3b8710c50bec | +| `delegatorUserId` | *string* | :heavy_check_mark: | The ID of the user delegating their access review requests. | 123e4567-e89b-12d3-a456-426614174000 | +| `delegateUserId` | *string* | :heavy_check_mark: | The ID of the user being delegated to. | 7c86c85d-0651-43e2-a748-d69d658418e8 | +| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The start time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | +| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The end time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | +| `reason` | *string* | :heavy_check_mark: | The reason for the delegation. | I need to be out of the office | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The creation time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The last updated time of the delegation. | 2023-10-01 12:00:00 +0000 UTC | \ No newline at end of file diff --git a/docs/models/components/devingroup.md b/docs/models/components/devingroup.md new file mode 100644 index 0000000..24b4110 --- /dev/null +++ b/docs/models/components/devingroup.md @@ -0,0 +1,19 @@ +# DevinGroup + +Remote info for Devin group. + +## Example Usage + +```typescript +import { DevinGroup } from "opal-mcp/models/components"; + +let value: DevinGroup = { + groupName: "devin-group-01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `groupName` | *string* | :heavy_check_mark: | The name of the Devin group. | devin-group-01 | \ No newline at end of file diff --git a/docs/models/components/devinorganization.md b/docs/models/components/devinorganization.md new file mode 100644 index 0000000..32afd9b --- /dev/null +++ b/docs/models/components/devinorganization.md @@ -0,0 +1,19 @@ +# DevinOrganization + +Remote info for Devin organization. + +## Example Usage + +```typescript +import { DevinOrganization } from "opal-mcp/models/components"; + +let value: DevinOrganization = { + orgId: "devin-org-01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `orgId` | *string* | :heavy_check_mark: | The id of the organization. | devin-org-01 | \ No newline at end of file diff --git a/docs/models/components/devinrole.md b/docs/models/components/devinrole.md new file mode 100644 index 0000000..1b52eef --- /dev/null +++ b/docs/models/components/devinrole.md @@ -0,0 +1,19 @@ +# DevinRole + +Remote info for Devin role. + +## Example Usage + +```typescript +import { DevinRole } from "opal-mcp/models/components"; + +let value: DevinRole = { + roleId: "devin-role-01", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | devin-role-01 | \ No newline at end of file diff --git a/docs/models/components/githuborg.md b/docs/models/components/githuborg.md new file mode 100644 index 0000000..9c379aa --- /dev/null +++ b/docs/models/components/githuborg.md @@ -0,0 +1,19 @@ +# GithubOrg + +Remote info for GitHub organization. + +## Example Usage + +```typescript +import { GithubOrg } from "opal-mcp/models/components"; + +let value: GithubOrg = { + orgName: "Opal Security", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `orgName` | *string* | :heavy_check_mark: | The name of the organization. | Opal Security | \ No newline at end of file diff --git a/docs/models/components/githuborgrole.md b/docs/models/components/githuborgrole.md new file mode 100644 index 0000000..b0cca17 --- /dev/null +++ b/docs/models/components/githuborgrole.md @@ -0,0 +1,19 @@ +# GithubOrgRole + +Remote info for GitHub organization role. + +## Example Usage + +```typescript +import { GithubOrgRole } from "opal-mcp/models/components"; + +let value: GithubOrgRole = { + roleId: "112233", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | 112233 | \ No newline at end of file diff --git a/docs/models/components/group.md b/docs/models/components/group.md index 10d52a5..27ab487 100644 --- a/docs/models/components/group.md +++ b/docs/models/components/group.md @@ -41,6 +41,7 @@ let value: Group = { | `groupType` | [components.GroupTypeEnum](../../models/components/grouptypeenum.md) | :heavy_minus_sign: | The type of the group. | OPAL_GROUP | | `maxDuration` | *number* | :heavy_minus_sign: | The maximum duration for which the group can be requested (in minutes). | 120 | | `recommendedDuration` | *number* | :heavy_minus_sign: | The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. | 120 | +| `extensionsDurationInMinutes` | *number* | :heavy_minus_sign: | The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. | 120 | | ~~`requireManagerApproval`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

A bool representing whether or not access requests to the group require manager approval. | false | | `requireSupportTicket` | *boolean* | :heavy_minus_sign: | A bool representing whether or not access requests to the group require an access ticket. | false | | `requireMfaToApprove` | *boolean* | :heavy_minus_sign: | A bool representing whether or not to require MFA for reviewers to approve requests for this group. | false | @@ -53,7 +54,8 @@ let value: Group = { | `requestConfigurations` | [components.RequestConfiguration](../../models/components/requestconfiguration.md)[] | :heavy_minus_sign: | A list of request configurations for this group. | [] | | ~~`requestConfigurationList`~~ | [components.RequestConfiguration](../../models/components/requestconfiguration.md)[] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

A list of request configurations for this group. Deprecated in favor of `request_configurations`. | [] | | ~~`metadata`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

JSON metadata about the remote group. Only set for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details. | { "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } } | -| `remoteInfo` | [components.GroupRemoteInfo](../../models/components/groupremoteinfo.md) | :heavy_minus_sign: | Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. | | +| `remoteInfo` | [components.GroupRemoteInfo](../../models/components/groupremoteinfo.md) | :heavy_minus_sign: | Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. | | | `customRequestNotification` | *string* | :heavy_minus_sign: | Custom request notification sent to the requester when the request is approved. | Check your email to register your account. | | `riskSensitivity` | [components.GroupRiskSensitivity](../../models/components/grouprisksensitivity.md) | :heavy_minus_sign: | The risk sensitivity level for the group. When an override is set, this field will match that. | | -| `riskSensitivityOverride` | [components.RiskSensitivityEnum](../../models/components/risksensitivityenum.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `riskSensitivityOverride` | [components.RiskSensitivityEnum](../../models/components/risksensitivityenum.md) | :heavy_minus_sign: | N/A | | +| `lastSuccessfulSync` | [components.SyncTask](../../models/components/synctask.md) | :heavy_minus_sign: | Represents a sync task that has been completed, either successfully or with errors. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"completed_at": "2023-10-01T12:00:00Z"
} | \ No newline at end of file diff --git a/docs/models/components/groupcontaininggroup.md b/docs/models/components/groupcontaininggroup.md index 67f334e..9875218 100644 --- a/docs/models/components/groupcontaininggroup.md +++ b/docs/models/components/groupcontaininggroup.md @@ -16,6 +16,8 @@ let value: GroupContainingGroup = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `containingGroupId` | *string* | :heavy_check_mark: | The groupID of the containing group. | f454d283-ca87-4a8a-bdbb-df212eca5353 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `containingGroupId` | *string* | :heavy_check_mark: | The groupID of the containing group. | f454d283-ca87-4a8a-bdbb-df212eca5353 | +| `durationMinutes` | *number* | :heavy_minus_sign: | The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. | 120 | +| `accessLevelRemoteId` | *string* | :heavy_minus_sign: | The updated remote ID of the access level granted to this group. | arn:aws:iam::590304332660:role/ReadOnlyAccess | \ No newline at end of file diff --git a/docs/models/components/groupremoteinfo.md b/docs/models/components/groupremoteinfo.md index bbbe6b4..3cdc800 100644 --- a/docs/models/components/groupremoteinfo.md +++ b/docs/models/components/groupremoteinfo.md @@ -1,6 +1,6 @@ # GroupRemoteInfo -Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. +Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. ## Example Usage @@ -11,6 +11,18 @@ let value: GroupRemoteInfo = { activeDirectoryGroup: { groupId: "01fa7402-01d8-103b-8deb-5f3a0ab7884", }, + tailscaleGroup: { + groupId: "898931321", + }, + awsSsoGroup: { + groupId: "898931321", + }, + databricksAccountGroup: { + groupId: "898931321", + }, + connectorGroup: { + groupId: "898931321", + }, githubTeam: { teamSlug: "opal-security", }, @@ -44,6 +56,15 @@ let value: GroupRemoteInfo = { workdayUserSecurityGroup: { groupId: "123abc456def", }, + pagerdutyOnCallSchedule: { + scheduleId: "PNZNINN", + }, + incidentioOnCallSchedule: { + scheduleId: "01HZ8XQM9ZQX8RKMZQ8ZQX8RK", + }, + devinGroup: { + groupName: "devin-group-01", + }, }; ``` @@ -52,6 +73,10 @@ let value: GroupRemoteInfo = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `activeDirectoryGroup` | [components.ActiveDirectoryGroup](../../models/components/activedirectorygroup.md) | :heavy_minus_sign: | Remote info for Active Directory group. | +| `tailscaleGroup` | [components.TailscaleGroup](../../models/components/tailscalegroup.md) | :heavy_minus_sign: | Remote info for Tailscale group. | +| `awsSsoGroup` | [components.AwsSsoGroup](../../models/components/awsssogroup.md) | :heavy_minus_sign: | Remote info for AWS SSO group. | +| `databricksAccountGroup` | [components.DatabricksAccountGroup](../../models/components/databricksaccountgroup.md) | :heavy_minus_sign: | Remote info for Databricks account group. | +| `connectorGroup` | [components.ConnectorGroup](../../models/components/connectorgroup.md) | :heavy_minus_sign: | Remote info for Connector group. | | `githubTeam` | [components.GithubTeam](../../models/components/githubteam.md) | :heavy_minus_sign: | Remote info for GitHub team. | | `gitlabGroup` | [components.GitlabGroup](../../models/components/gitlabgroup.md) | :heavy_minus_sign: | Remote info for Gitlab group. | | `googleGroup` | [components.GoogleGroup](../../models/components/googlegroup.md) | :heavy_minus_sign: | Remote info for Google group. | @@ -62,4 +87,7 @@ let value: GroupRemoteInfo = { | `azureAdMicrosoft365Group` | [components.AzureAdMicrosoft365Group](../../models/components/azureadmicrosoft365group.md) | :heavy_minus_sign: | Remote info for Microsoft Entra ID Microsoft 365 group. | | `snowflakeRole` | [components.SnowflakeRole](../../models/components/snowflakerole.md) | :heavy_minus_sign: | Remote info for Snowflake role. | | `oktaGroupRule` | [components.OktaGroupRule](../../models/components/oktagrouprule.md) | :heavy_minus_sign: | Remote info for Okta Directory group rule. | -| `workdayUserSecurityGroup` | [components.WorkdayUserSecurityGroup](../../models/components/workdayusersecuritygroup.md) | :heavy_minus_sign: | Remote info for Workday User Security group. | \ No newline at end of file +| `workdayUserSecurityGroup` | [components.WorkdayUserSecurityGroup](../../models/components/workdayusersecuritygroup.md) | :heavy_minus_sign: | Remote info for Workday User Security group. | +| `pagerdutyOnCallSchedule` | [components.PagerdutyOnCallSchedule](../../models/components/pagerdutyoncallschedule.md) | :heavy_minus_sign: | Remote info for PagerDuty on-call schedule group. | +| `incidentioOnCallSchedule` | [components.IncidentioOnCallSchedule](../../models/components/incidentiooncallschedule.md) | :heavy_minus_sign: | Remote info for Incident.io on-call schedule group. | +| `devinGroup` | [components.DevinGroup](../../models/components/devingroup.md) | :heavy_minus_sign: | Remote info for Devin group. | \ No newline at end of file diff --git a/docs/models/components/grouptypeenum.md b/docs/models/components/grouptypeenum.md index 128d99a..bd2e325 100644 --- a/docs/models/components/grouptypeenum.md +++ b/docs/models/components/grouptypeenum.md @@ -13,5 +13,5 @@ let value: GroupTypeEnum = "OPAL_GROUP"; ## Values ```typescript -"ACTIVE_DIRECTORY_GROUP" | "AWS_SSO_GROUP" | "DATABRICKS_ACCOUNT_GROUP" | "DUO_GROUP" | "GIT_HUB_TEAM" | "GIT_LAB_GROUP" | "GOOGLE_GROUPS_GROUP" | "GOOGLE_GROUPS_GKE_GROUP" | "LDAP_GROUP" | "OKTA_GROUP" | "OKTA_GROUP_RULE" | "TAILSCALE_GROUP" | "OPAL_GROUP" | "OPAL_ACCESS_RULE" | "AZURE_AD_SECURITY_GROUP" | "AZURE_AD_MICROSOFT_365_GROUP" | "CONNECTOR_GROUP" | "SNOWFLAKE_ROLE" | "WORKDAY_USER_SECURITY_GROUP" +"ACTIVE_DIRECTORY_GROUP" | "AWS_SSO_GROUP" | "DATABRICKS_ACCOUNT_GROUP" | "DUO_GROUP" | "GIT_HUB_TEAM" | "GIT_LAB_GROUP" | "GOOGLE_GROUPS_GROUP" | "GOOGLE_GROUPS_GKE_GROUP" | "LDAP_GROUP" | "OKTA_GROUP" | "OKTA_GROUP_RULE" | "TAILSCALE_GROUP" | "OPAL_GROUP" | "OPAL_ACCESS_RULE" | "AZURE_AD_SECURITY_GROUP" | "AZURE_AD_MICROSOFT_365_GROUP" | "CONNECTOR_GROUP" | "SNOWFLAKE_ROLE" | "WORKDAY_USER_SECURITY_GROUP" | "PAGERDUTY_ON_CALL_SCHEDULE" | "INCIDENTIO_ON_CALL_SCHEDULE" | "DEVIN_GROUP" ``` \ No newline at end of file diff --git a/docs/models/components/groupuser.md b/docs/models/components/groupuser.md index 0af7378..10f4bd7 100644 --- a/docs/models/components/groupuser.md +++ b/docs/models/components/groupuser.md @@ -14,6 +14,8 @@ import { GroupUser } from "opal-mcp/models/components"; let value: GroupUser = { groupId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + groupName: "API Group", + description: "Group required to request API's", userId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", fullName: "Jake Barnes", email: "jake@company.dev", @@ -26,6 +28,8 @@ let value: GroupUser = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 1b978423-db0a-4037-a4cf-f79c60cb67b3 | +| `groupName` | *string* | :heavy_check_mark: | The name of the group. | API Group | +| `description` | *string* | :heavy_check_mark: | The description of the group. | Group required to request API's | | `userId` | *string* | :heavy_check_mark: | The ID of the user. | 29827fb8-f2dd-4e80-9576-28e31e9934ac | | `accessLevel` | [components.GroupAccessLevel](../../models/components/groupaccesslevel.md) | :heavy_minus_sign: | # Access Level Object
### Description
The `GroupAccessLevel` object is used to represent the level of access that a user has to a group or a group has to a group. The "default" access
level is a `GroupAccessLevel` object whose fields are all empty strings.

### Usage Example
View the `GroupAccessLevel` of a group/user or group/group pair to see the level of access granted to the group. | {
"access_level_name": "Developer",
"access_level_remote_id": 20
} | | `fullName` | *string* | :heavy_check_mark: | The user's full name. | Jake Barnes | diff --git a/docs/models/components/groupuserlist.md b/docs/models/components/groupuserlist.md index 93aa5bb..3efe050 100644 --- a/docs/models/components/groupuserlist.md +++ b/docs/models/components/groupuserlist.md @@ -9,6 +9,8 @@ let value: GroupUserList = { results: [ { groupId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + groupName: "API Group", + description: "Group required to request API's", userId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", fullName: "Jake Barnes", email: "jake@company.dev", @@ -16,17 +18,23 @@ let value: GroupUserList = { }, { groupId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + groupName: "API Group", + description: "Group required to request API's", userId: "7646aa9a-e2ee-4eb5-8c62-91f29038a373", fullName: "Brett Ashley", email: "brett@company.dev", expirationDate: new Date("2022-02-03T12:33:02Z"), }, ], + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", }; ``` ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `results` | [components.GroupUser](../../models/components/groupuser.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `results` | [components.GroupUser](../../models/components/groupuser.md)[] | :heavy_minus_sign: | N/A | | +| `next` | *string* | :heavy_minus_sign: | The cursor with which to continue pagination if additional result pages exist. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `previous` | *string* | :heavy_minus_sign: | The cursor used to obtain the current result page. | cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ | \ No newline at end of file diff --git a/docs/models/components/idpgroupmapping.md b/docs/models/components/idpgroupmapping.md index 9447bb9..4cd9b7b 100644 --- a/docs/models/components/idpgroupmapping.md +++ b/docs/models/components/idpgroupmapping.md @@ -8,6 +8,7 @@ Information about a group mapping. import { IdpGroupMapping } from "opal-mcp/models/components"; let value: IdpGroupMapping = { + appResourceId: "1520617d-e72a-47f5-a84c-693817ab48ad2", groupId: "6f99639b-7928-4043-8184-47cbc6766145", alias: "finance-team", hiddenFromEndUser: false, @@ -18,6 +19,7 @@ let value: IdpGroupMapping = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `appResourceId` | *string* | :heavy_minus_sign: | The ID of the app resource. | 1520617d-e72a-47f5-a84c-693817ab48ad2 | | `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 6f99639b-7928-4043-8184-47cbc6766145 | | `alias` | *string* | :heavy_minus_sign: | The alias of the group. | finance-team | | `hiddenFromEndUser` | *boolean* | :heavy_check_mark: | A bool representing whether or not the group is hidden from the end user. | false | \ No newline at end of file diff --git a/docs/models/components/ileveladvancedrole.md b/docs/models/components/ileveladvancedrole.md new file mode 100644 index 0000000..55bd5b7 --- /dev/null +++ b/docs/models/components/ileveladvancedrole.md @@ -0,0 +1,19 @@ +# IlevelAdvancedRole + +Remote info for iLevel Advanced role. + +## Example Usage + +```typescript +import { IlevelAdvancedRole } from "opal-mcp/models/components"; + +let value: IlevelAdvancedRole = { + roleName: "IT User", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | +| `roleName` | *string* | :heavy_check_mark: | The name of the role. | IT User | \ No newline at end of file diff --git a/docs/models/components/incidentiooncallschedule.md b/docs/models/components/incidentiooncallschedule.md new file mode 100644 index 0000000..480baa6 --- /dev/null +++ b/docs/models/components/incidentiooncallschedule.md @@ -0,0 +1,19 @@ +# IncidentioOnCallSchedule + +Remote info for Incident.io on-call schedule group. + +## Example Usage + +```typescript +import { IncidentioOnCallSchedule } from "opal-mcp/models/components"; + +let value: IncidentioOnCallSchedule = { + scheduleId: "01HZ8XQM9ZQX8RKMZQ8ZQX8RK", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `scheduleId` | *string* | :heavy_check_mark: | The id of the Incident.io on-call schedule. | 01HZ8XQM9ZQX8RKMZQ8ZQX8RK | \ No newline at end of file diff --git a/docs/models/components/openaiplatformproject.md b/docs/models/components/openaiplatformproject.md new file mode 100644 index 0000000..5428098 --- /dev/null +++ b/docs/models/components/openaiplatformproject.md @@ -0,0 +1,19 @@ +# OpenaiPlatformProject + +Remote info for OpenAI Platform project. + +## Example Usage + +```typescript +import { OpenaiPlatformProject } from "opal-mcp/models/components"; + +let value: OpenaiPlatformProject = { + projectId: "proj_abc", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `projectId` | *string* | :heavy_check_mark: | The id of the project. | proj_abc | \ No newline at end of file diff --git a/docs/models/components/openaiplatformserviceaccount.md b/docs/models/components/openaiplatformserviceaccount.md new file mode 100644 index 0000000..476cf47 --- /dev/null +++ b/docs/models/components/openaiplatformserviceaccount.md @@ -0,0 +1,21 @@ +# OpenaiPlatformServiceAccount + +Remote info for OpenAI Platform service account. + +## Example Usage + +```typescript +import { OpenaiPlatformServiceAccount } from "opal-mcp/models/components"; + +let value: OpenaiPlatformServiceAccount = { + projectId: "proj_abc", + serviceAccountId: "svc_acct_abc", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `projectId` | *string* | :heavy_check_mark: | The id of the project for the service account. | proj_abc | +| `serviceAccountId` | *string* | :heavy_check_mark: | The id of the service account. | svc_acct_abc | \ No newline at end of file diff --git a/docs/models/components/oraclefusionrole.md b/docs/models/components/oraclefusionrole.md new file mode 100644 index 0000000..780acdc --- /dev/null +++ b/docs/models/components/oraclefusionrole.md @@ -0,0 +1,19 @@ +# OracleFusionRole + +Remote info for Oracle Fusion role. + +## Example Usage + +```typescript +import { OracleFusionRole } from "opal-mcp/models/components"; + +let value: OracleFusionRole = { + roleId: "123e4567-e89b-12d3-a456-426614174000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | 123e4567-e89b-12d3-a456-426614174000 | \ No newline at end of file diff --git a/docs/models/components/pagerdutyoncallschedule.md b/docs/models/components/pagerdutyoncallschedule.md new file mode 100644 index 0000000..53e107a --- /dev/null +++ b/docs/models/components/pagerdutyoncallschedule.md @@ -0,0 +1,19 @@ +# PagerdutyOnCallSchedule + +Remote info for PagerDuty on-call schedule group. + +## Example Usage + +```typescript +import { PagerdutyOnCallSchedule } from "opal-mcp/models/components"; + +let value: PagerdutyOnCallSchedule = { + scheduleId: "PNZNINN", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `scheduleId` | *string* | :heavy_check_mark: | The id of the PagerDuty on-call schedule. | PNZNINN | \ No newline at end of file diff --git a/docs/models/components/paginateddelegationslist.md b/docs/models/components/paginateddelegationslist.md new file mode 100644 index 0000000..a3dacee --- /dev/null +++ b/docs/models/components/paginateddelegationslist.md @@ -0,0 +1,36 @@ +# PaginatedDelegationsList + +A list of delegations for your organization. + +## Example Usage + +```typescript +import { PaginatedDelegationsList } from "opal-mcp/models/components"; + +let value: PaginatedDelegationsList = { + results: [ + { + id: "4aed3e8a-727b-4d72-8010-3b8710c50bec", + delegatorUserId: "123e4567-e89b-12d3-a456-426614174000", + delegateUserId: "7c86c85d-0651-43e2-a748-d69d658418e8", + startTime: new Date("2023-10-01T12:00:00Z"), + endTime: new Date("2023-10-01T12:00:00Z"), + reason: "I need to be out of the office", + createdAt: new Date("2023-10-01T12:00:00Z"), + updatedAt: new Date("2023-10-01T12:00:00Z"), + }, + ], + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + totalCount: 2, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `results` | [components.Delegation](../../models/components/delegation.md)[] | :heavy_minus_sign: | The delegations in the result set. | | +| `next` | *string* | :heavy_minus_sign: | The cursor with which to continue pagination if additional result pages exist. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `previous` | *string* | :heavy_minus_sign: | The cursor used to obtain the current result page. | cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ | +| `totalCount` | *number* | :heavy_minus_sign: | The total number of items in the result set. | 2 | \ No newline at end of file diff --git a/docs/models/components/paginatedremoteuserslist.md b/docs/models/components/paginatedremoteuserslist.md new file mode 100644 index 0000000..d1f1101 --- /dev/null +++ b/docs/models/components/paginatedremoteuserslist.md @@ -0,0 +1,32 @@ +# PaginatedRemoteUsersList + +## Example Usage + +```typescript +import { PaginatedRemoteUsersList } from "opal-mcp/models/components"; + +let value: PaginatedRemoteUsersList = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + userId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + remoteId: "1234567890", + thirdPartyProvider: "GIT_LAB", + }, + { + userId: "29827fb8-f2dd-4e80-9576-238979927392", + remoteId: "remoteid123", + thirdPartyProvider: "GIT_HUB", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `next` | *string* | :heavy_minus_sign: | The cursor with which to continue pagination if additional result pages exist. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `previous` | *string* | :heavy_minus_sign: | The cursor used to obtain the current result page. | cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ | +| `results` | [components.RemoteUser](../../models/components/remoteuser.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/paginateduarslist.md b/docs/models/components/paginateduarslist.md index 3a2ecf3..79133e0 100644 --- a/docs/models/components/paginateduarslist.md +++ b/docs/models/components/paginateduarslist.md @@ -19,6 +19,7 @@ let value: PaginatedUARsList = { deadline: new Date("2022-07-14T06:59:59Z"), timeZone: "America/Los_Angeles", selfReviewAllowed: false, + instantlyActionReviews: false, uarScope: { admins: [ "f454d283-ca87-4a8a-bdbb-df212eca5353", @@ -44,6 +45,7 @@ let value: PaginatedUARsList = { deadline: new Date("2022-08-14T06:59:59Z"), timeZone: "America/Los_Angeles", selfReviewAllowed: false, + instantlyActionReviews: false, uarScope: { admins: [ "f454d283-ca87-4a8a-bdbb-df212eca5353", diff --git a/docs/models/components/rdsengineenum.md b/docs/models/components/rdsengineenum.md new file mode 100644 index 0000000..1bb19a1 --- /dev/null +++ b/docs/models/components/rdsengineenum.md @@ -0,0 +1,17 @@ +# RDSEngineEnum + +The database engine for the RDS instance. + +## Example Usage + +```typescript +import { RDSEngineEnum } from "opal-mcp/models/components"; + +let value: RDSEngineEnum = "POSTGRESQL"; +``` + +## Values + +```typescript +"MYSQL" | "POSTGRESQL" +``` \ No newline at end of file diff --git a/docs/models/components/remoteuser.md b/docs/models/components/remoteuser.md new file mode 100644 index 0000000..750f367 --- /dev/null +++ b/docs/models/components/remoteuser.md @@ -0,0 +1,25 @@ +# RemoteUser + +# RemoteUser Object +### Description +The `RemoteUser` object is used to represent a remote user. + +## Example Usage + +```typescript +import { RemoteUser } from "opal-mcp/models/components"; + +let value: RemoteUser = { + userId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + remoteId: "1234567890", + thirdPartyProvider: "GIT_HUB", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user. | 29827fb8-f2dd-4e80-9576-28e31e9934ac | +| `remoteId` | *string* | :heavy_check_mark: | The ID of the remote user. | 1234567890 | +| `thirdPartyProvider` | [components.ThirdPartyProviderEnum](../../models/components/thirdpartyproviderenum.md) | :heavy_check_mark: | The third party provider of the remote user. | GIT_HUB | \ No newline at end of file diff --git a/docs/models/components/requestapprovalenum.md b/docs/models/components/requestapprovalenum.md new file mode 100644 index 0000000..8c8d19e --- /dev/null +++ b/docs/models/components/requestapprovalenum.md @@ -0,0 +1,17 @@ +# RequestApprovalEnum + +The decision level for the approval + +## Example Usage + +```typescript +import { RequestApprovalEnum } from "opal-mcp/models/components"; + +let value: RequestApprovalEnum = "REGULAR"; +``` + +## Values + +```typescript +"REGULAR" | "ADMIN" +``` \ No newline at end of file diff --git a/docs/models/components/requestcomment.md b/docs/models/components/requestcomment.md new file mode 100644 index 0000000..c8ab84e --- /dev/null +++ b/docs/models/components/requestcomment.md @@ -0,0 +1,32 @@ +# RequestComment + +# Request Comment Object +### Description +The `RequestComment` object is used to represent a comment on a request. + +### Usage Example +Returned from the `GET Requests` endpoint as part of a `Request` object. + +## Example Usage + +```typescript +import { RequestComment } from "opal-mcp/models/components"; + +let value: RequestComment = { + createdAt: new Date("2021-01-06T20:00:00Z"), + requestId: "4c86c85d-0651-43e2-a748-d69d658418e8", + userId: "c86c85d-0651-43e2-a748-d69d658418e8", + comment: "This is a comment.", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The date and time the comment was created. | 2021-01-06 20:00:00 +0000 UTC | +| `requestId` | *string* | :heavy_check_mark: | The unique identifier of the request the comment is associated with. | 7c86c85d-0651-43e2-a748-d69d658418e8 | +| `userId` | *string* | :heavy_check_mark: | The unique identifier of the user who made the comment. | 7c86c85d-0651-43e2-a748-d69d658418e8 | +| `userFullName` | *string* | :heavy_minus_sign: | The user's full name. | Jake Barnes | +| `userEmail` | *string* | :heavy_minus_sign: | The user's email address. | jake.barnes@company.com | +| `comment` | *string* | :heavy_check_mark: | The content of the comment. | This is a comment. | \ No newline at end of file diff --git a/docs/models/components/requestcommentlist.md b/docs/models/components/requestcommentlist.md new file mode 100644 index 0000000..9d531b4 --- /dev/null +++ b/docs/models/components/requestcommentlist.md @@ -0,0 +1,26 @@ +# RequestCommentList + +A paginated list of request comments + +## Example Usage + +```typescript +import { RequestCommentList } from "opal-mcp/models/components"; + +let value: RequestCommentList = { + comments: [ + { + createdAt: new Date("2021-01-06T20:00:00Z"), + requestId: "4c86c85d-0651-43e2-a748-d69d658418e8", + userId: "c86c85d-0651-43e2-a748-d69d658418e8", + comment: "This is a comment.", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `comments` | [components.RequestComment](../../models/components/requestcomment.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/requestconfiguration.md b/docs/models/components/requestconfiguration.md index d4038dd..7e889a1 100644 --- a/docs/models/components/requestconfiguration.md +++ b/docs/models/components/requestconfiguration.md @@ -45,6 +45,7 @@ let value: RequestConfiguration = { | `maxDurationMinutes` | *number* | :heavy_minus_sign: | The maximum duration for which the resource can be requested (in minutes). | 120 | | `recommendedDurationMinutes` | *number* | :heavy_minus_sign: | The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. | 120 | | `requireSupportTicket` | *boolean* | :heavy_check_mark: | A bool representing whether or not access requests to the resource require an access ticket. | false | +| `extensionsDurationInMinutes` | *number* | :heavy_minus_sign: | The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. | 120 | | `requestTemplateId` | *string* | :heavy_minus_sign: | The ID of the associated request template. | 06851574-e50d-40ca-8c78-f72ae6ab4304 | | `reviewerStages` | [components.ReviewerStage](../../models/components/reviewerstage.md)[] | :heavy_minus_sign: | The list of reviewer stages for the request configuration. | | | `priority` | *number* | :heavy_check_mark: | The priority of the request configuration. | 1 | \ No newline at end of file diff --git a/docs/models/components/requestconnection.md b/docs/models/components/requestconnection.md index 9044ac0..0afb8a7 100644 --- a/docs/models/components/requestconnection.md +++ b/docs/models/components/requestconnection.md @@ -18,43 +18,18 @@ let value: RequestConnection = { status: "CANCELED", reason: "I need this resource.", durationMinutes: 1440, - stages: { - requestedRoleName: "Admin", - requestedItemName: "AWS Production Account", - stages: [ - { - stage: 1, - operator: "AND", - reviewers: [ - { - id: "7c86c85d-0651-43e2-a748-d69d658418e8", - status: "PENDING", - }, - ], - }, - { - stage: 2, - operator: "OR", - reviewers: [ - { - id: "8d86c85d-0651-43e2-a748-d69d658418e9", - status: "APPROVED", - }, - ], - }, - ], - }, + reviewerStages: "", }, cursor: "", }, ], pageInfo: { - hasNextPage: false, + hasNextPage: true, endCursor: "", hasPreviousPage: true, startCursor: "", }, - totalCount: 430701, + totalCount: 505727, }; ``` diff --git a/docs/models/components/requestedge.md b/docs/models/components/requestedge.md index 0052b8e..f5e14f7 100644 --- a/docs/models/components/requestedge.md +++ b/docs/models/components/requestedge.md @@ -16,32 +16,7 @@ let value: RequestEdge = { status: "APPROVED", reason: "I need this resource.", durationMinutes: 1440, - stages: { - requestedRoleName: "Admin", - requestedItemName: "AWS Production Account", - stages: [ - { - stage: 1, - operator: "AND", - reviewers: [ - { - id: "7c86c85d-0651-43e2-a748-d69d658418e8", - status: "PENDING", - }, - ], - }, - { - stage: 2, - operator: "OR", - reviewers: [ - { - id: "8d86c85d-0651-43e2-a748-d69d658418e9", - status: "APPROVED", - }, - ], - }, - ], - }, + reviewerStages: [], }, cursor: "", }; @@ -49,7 +24,7 @@ let value: RequestEdge = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `node` | [components.RequestT](../../models/components/requestt.md) | :heavy_check_mark: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"stages": {
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
} | -| `cursor` | *string* | :heavy_check_mark: | The cursor for this request edge | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `node` | [components.RequestT](../../models/components/requestt.md) | :heavy_check_mark: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
} | +| `cursor` | *string* | :heavy_check_mark: | The cursor for this request edge | | \ No newline at end of file diff --git a/docs/models/components/requestitemstages.md b/docs/models/components/requestitemstages.md index 0647b37..4d17369 100644 --- a/docs/models/components/requestitemstages.md +++ b/docs/models/components/requestitemstages.md @@ -1,7 +1,9 @@ -# RequestItemStages +# ~~RequestItemStages~~ The stages configuration for a request item +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + ## Example Usage ```typescript @@ -11,9 +13,15 @@ let value: RequestItemStages = { requestedItemName: "", stages: [ { - stage: 759761, + stage: 506134, operator: "AND", - reviewers: [], + reviewers: [ + { + id: "020729d7-6ef5-4700-aa93-7567afc9c5b0", + fullName: "Jake Barnes", + status: "APPROVED", + }, + ], }, ], }; diff --git a/docs/models/components/requestreviewer.md b/docs/models/components/requestreviewer.md index f28ff3a..abfebca 100644 --- a/docs/models/components/requestreviewer.md +++ b/docs/models/components/requestreviewer.md @@ -9,13 +9,15 @@ import { RequestReviewer } from "opal-mcp/models/components"; let value: RequestReviewer = { id: "3c4ee6ee-b77b-4ca9-97b7-4a5eb181dc00", + fullName: "Jake Barnes", status: "PENDING", }; ``` ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | The unique identifier of the reviewer | -| `status` | [components.RequestReviewerStatus](../../models/components/requestreviewerstatus.md) | :heavy_check_mark: | The status of this reviewer's review | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | The unique identifier of the reviewer | | +| `fullName` | *string* | :heavy_minus_sign: | The user's full name. | Jake Barnes | +| `status` | [components.RequestReviewerStatus](../../models/components/requestreviewerstatus.md) | :heavy_check_mark: | The status of this reviewer's review | | \ No newline at end of file diff --git a/docs/models/components/requestreviewerstages.md b/docs/models/components/requestreviewerstages.md new file mode 100644 index 0000000..52a96ba --- /dev/null +++ b/docs/models/components/requestreviewerstages.md @@ -0,0 +1,27 @@ +# RequestReviewerStages + +The stages configuration for a request item + +## Example Usage + +```typescript +import { RequestReviewerStages } from "opal-mcp/models/components"; + +let value: RequestReviewerStages = { + accessLevelName: "admin", + accessLevelRemoteId: "arn:aws:iam::490306337630:role/SupportUser", + itemName: "", + itemId: "f454d283-ca87-4a8a-bdbb-df212eca5353", + stages: [], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `accessLevelName` | *string* | :heavy_minus_sign: | The name of the access level requested. | admin | +| `accessLevelRemoteId` | *string* | :heavy_minus_sign: | The ID of the access level requested on the remote system. | arn:aws:iam::490306337630:role/SupportUser | +| `itemName` | *string* | :heavy_check_mark: | The name of the requested item | | +| `itemId` | *string* | :heavy_check_mark: | The ID of the resource requested. | f454d283-ca87-4a8a-bdbb-df212eca5353 | +| `stages` | [components.RequestStage](../../models/components/requeststage.md)[] | :heavy_check_mark: | The stages of review for this request | | \ No newline at end of file diff --git a/docs/models/components/requeststage.md b/docs/models/components/requeststage.md index df23e61..c26ec2c 100644 --- a/docs/models/components/requeststage.md +++ b/docs/models/components/requeststage.md @@ -12,7 +12,8 @@ let value: RequestStage = { operator: "OR", reviewers: [ { - id: "ad49e317-29f3-4a7c-bca4-979dabe188a1", + id: "020729d7-6ef5-4700-aa93-7567afc9c5b0", + fullName: "Jake Barnes", status: "APPROVED", }, ], diff --git a/docs/models/components/requestt.md b/docs/models/components/requestt.md index dcc56f9..85f13c1 100644 --- a/docs/models/components/requestt.md +++ b/docs/models/components/requestt.md @@ -22,32 +22,27 @@ let value: RequestT = { status: "DENIED", reason: "I need this resource.", durationMinutes: 1440, - stages: { - requestedRoleName: "Admin", - requestedItemName: "AWS Production Account", - stages: [ - { - stage: 1, - operator: "AND", - reviewers: [ - { - id: "7c86c85d-0651-43e2-a748-d69d658418e8", - status: "PENDING", - }, - ], - }, - { - stage: 2, - operator: "OR", - reviewers: [ - { - id: "8d86c85d-0651-43e2-a748-d69d658418e9", - status: "APPROVED", - }, - ], - }, - ], - }, + reviewerStages: [ + { + accessLevelName: "admin", + accessLevelRemoteId: "arn:aws:iam::490306337630:role/SupportUser", + itemName: "", + itemId: "f454d283-ca87-4a8a-bdbb-df212eca5353", + stages: [ + { + stage: 506134, + operator: "AND", + reviewers: [ + { + id: "020729d7-6ef5-4700-aa93-7567afc9c5b0", + fullName: "Jake Barnes", + status: "APPROVED", + }, + ], + }, + ], + }, + ], }; ``` @@ -66,4 +61,5 @@ let value: RequestT = { | `durationMinutes` | *number* | :heavy_minus_sign: | The duration of the request in minutes. | 120 | | `requestedItemsList` | [components.RequestedItem](../../models/components/requesteditem.md)[] | :heavy_minus_sign: | The list of targets for the request. | | | `customFieldsResponses` | [components.RequestCustomFieldResponse](../../models/components/requestcustomfieldresponse.md)[] | :heavy_minus_sign: | The responses given to the custom fields associated to the request | | -| `stages` | [components.RequestItemStages](../../models/components/requestitemstages.md) | :heavy_minus_sign: | The stages configuration for a request item | | \ No newline at end of file +| ~~`stages`~~ | [components.RequestItemStages](../../models/components/requestitemstages.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The stages configuration for a request item | | +| `reviewerStages` | *components.ReviewerStages* | :heavy_minus_sign: | The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded | | \ No newline at end of file diff --git a/docs/models/components/resource.md b/docs/models/components/resource.md index 6a70127..219f567 100644 --- a/docs/models/components/resource.md +++ b/docs/models/components/resource.md @@ -44,6 +44,7 @@ let value: Resource = { | `resourceType` | [components.ResourceTypeEnum](../../models/components/resourcetypeenum.md) | :heavy_minus_sign: | The type of the resource. | AWS_IAM_ROLE | | `maxDuration` | *number* | :heavy_minus_sign: | The maximum duration for which the resource can be requested (in minutes). | 120 | | `recommendedDuration` | *number* | :heavy_minus_sign: | The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. | 120 | +| `extensionsDurationInMinutes` | *number* | :heavy_minus_sign: | The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. | 120 | | ~~`requireManagerApproval`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

A bool representing whether or not access requests to the resource require manager approval. | false | | `requireSupportTicket` | *boolean* | :heavy_minus_sign: | A bool representing whether or not access requests to the resource require an access ticket. | false | | `requireMfaToApprove` | *boolean* | :heavy_minus_sign: | A bool representing whether or not to require MFA for reviewers to approve requests for this resource. | false | @@ -63,4 +64,5 @@ let value: Resource = { | ~~`metadata`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

JSON metadata about the remote resource. Only set for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details. | {
"okta_directory_role":
{
"role_id": "SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345",
"role_type": "SUPER_ADMIN",
},
} | | `remoteInfo` | [components.ResourceRemoteInfo](../../models/components/resourceremoteinfo.md) | :heavy_minus_sign: | Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. | | | `ancestorResourceIds` | *string*[] | :heavy_minus_sign: | List of resource IDs that are ancestors of this resource. | [
"f454d283-ca67-4a8a-bdbb-df212eca5345",
"f454d283-ca67-4a8a-bdbb-df212eca5346"
] | -| `descendantResourceIds` | *string*[] | :heavy_minus_sign: | List of resource IDs that are descendants of this resource. | [
"f454d283-ca67-4a8a-bdbb-df212eca5347",
"f454d283-ca67-4a8a-bdbb-df212eca5348"
] | \ No newline at end of file +| `descendantResourceIds` | *string*[] | :heavy_minus_sign: | List of resource IDs that are descendants of this resource. | [
"f454d283-ca67-4a8a-bdbb-df212eca5347",
"f454d283-ca67-4a8a-bdbb-df212eca5348"
] | +| `lastSuccessfulSync` | [components.SyncTask](../../models/components/synctask.md) | :heavy_minus_sign: | Represents a sync task that has been completed, either successfully or with errors. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"completed_at": "2023-10-01T12:00:00Z"
} | \ No newline at end of file diff --git a/docs/models/components/resourceaccessuser.md b/docs/models/components/resourceaccessuser.md index 4b61fd4..ab6d1f5 100644 --- a/docs/models/components/resourceaccessuser.md +++ b/docs/models/components/resourceaccessuser.md @@ -32,6 +32,8 @@ let value: ResourceAccessUser = { | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `resourceId` | *string* | :heavy_check_mark: | The ID of the resource. | 1b978423-db0a-4037-a4cf-f79c60cb67b3 | +| `resourceName` | *string* | :heavy_minus_sign: | The name of the resource. | AdministratorAccess | +| `description` | *string* | :heavy_minus_sign: | The description of the resource. | Full access to all resources and settings. | | `userId` | *string* | :heavy_check_mark: | The ID of the user. | 29827fb8-f2dd-4e80-9576-28e31e9934ac | | `accessLevel` | [components.ResourceAccessLevel](../../models/components/resourceaccesslevel.md) | :heavy_check_mark: | # Access Level Object
### Description
The `AccessLevel` object is used to represent the level of access that a principal has. The "default" access
level is a `AccessLevel` object whose fields are all empty strings.

### Usage Example
View the `AccessLevel` of a resource/user or resource/group pair to see the level of access granted to the resource. | {
"access_level_name": "AdminRole",
"access_level_remote_id": "arn:aws:iam::590304332660:role/AdministratorAccess"
} | | `fullName` | *string* | :heavy_check_mark: | The user's full name. | Jake Barnes | diff --git a/docs/models/components/resourceaccessuserlist.md b/docs/models/components/resourceaccessuserlist.md index 2fedbbe..5a6e8ea 100644 --- a/docs/models/components/resourceaccessuserlist.md +++ b/docs/models/components/resourceaccessuserlist.md @@ -41,6 +41,8 @@ let value: ResourceAccessUserList = { ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `results` | [components.ResourceAccessUser](../../models/components/resourceaccessuser.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `next` | *string* | :heavy_minus_sign: | The cursor with which to continue pagination if additional result pages exist. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `previous` | *string* | :heavy_minus_sign: | The cursor used to obtain the current result page. | cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ | +| `results` | [components.ResourceAccessUser](../../models/components/resourceaccessuser.md)[] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/resourceremoteinfo.md b/docs/models/components/resourceremoteinfo.md index 049a20a..85a5c5c 100644 --- a/docs/models/components/resourceremoteinfo.md +++ b/docs/models/components/resourceremoteinfo.md @@ -8,6 +8,58 @@ Information that defines the remote resource. This replaces the deprecated remot import { ResourceRemoteInfo } from "opal-mcp/models/components"; let value: ResourceRemoteInfo = { + databricksAccountServicePrincipal: { + applicationId: "00000000-0000-0000-0000-000000000000", + resourceId: "00000000-0000-0000-0000-000000000000", + }, + azureSubscription: { + resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000", + }, + azureResourceGroup: { + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg", + }, + azureManagementGroup: { + resourceId: "/providers/Microsoft.Management/managementGroups/my-mg", + }, + azureVirtualMachine: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01", + }, + azureStorageAccount: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01", + }, + azureStorageContainer: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01", + }, + azureSqlServer: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01", + }, + azureSqlDatabase: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01", + }, + azureSqlManagedInstance: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01", + }, + azureSqlManagedDatabase: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01", + }, + azureUserAssignedManagedIdentity: { + resourceId: + "/subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01", + }, + azureEnterpriseApp: { + resourceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", + }, + azureEntraIdRole: { + resourceId: "11111111-2222-3333-4444-555555555555", + }, awsOrganizationalUnit: { parentId: "ou-1234", organizationalUnitId: "ou-1234", @@ -29,6 +81,14 @@ let value: ResourceRemoteInfo = { region: "us-east-2", accountId: "234234234234", }, + awsRdsCluster: { + clusterId: "demo-mysql-cluster", + region: "us-east-2", + resourceId: "cluster-AOO8V0XUCNU13XLZXQDQRSN0NQ", + accountId: "234234234234", + databaseName: "mydatabase", + engine: "MYSQL", + }, awsRdsInstance: { instanceId: "demo-mysql-db", region: "us-east-2", @@ -87,6 +147,12 @@ let value: ResourceRemoteInfo = { githubRepo: { repoName: "Opal Security", }, + githubOrgRole: { + roleId: "112233", + }, + githubOrg: { + orgName: "Opal Security", + }, gitlabProject: { projectId: "898931321", }, @@ -99,9 +165,30 @@ let value: ResourceRemoteInfo = { oktaCustomRole: { roleId: "a9dfas0f678asdf67867", }, + snowflakeDatabase: { + databaseName: "mydatabase", + }, + snowflakeSchema: { + databaseName: "mydatabase", + schemaName: "mycatalogschema", + }, + snowflakeTable: { + databaseName: "mydatabase", + schemaName: "mycatalogschema", + tableName: "myitemstable", + }, + ilevelAdvancedRole: { + roleName: "IT User", + }, + tailscaleSsh: { + tagName: "admin", + }, pagerdutyRole: { roleName: "owner", }, + workdayRole: { + roleId: "123abc456def", + }, salesforcePermissionSet: { permissionSetId: "0PS5Y090202wOV7WAM", }, @@ -115,39 +202,99 @@ let value: ResourceRemoteInfo = { teleportRole: { roleName: "admin_role", }, + datastaxAstraRole: { + roleId: "123e4567-e89b-12d3-a456-426614174000", + }, + coupaRole: { + roleId: "999", + }, + cursorOrganization: { + orgId: "123e4567-e89b-12d3-a456-426614174000", + }, + openaiPlatformProject: { + projectId: "proj_abc", + }, + openaiPlatformServiceAccount: { + projectId: "proj_abc", + serviceAccountId: "svc_acct_abc", + }, + anthropicWorkspace: { + workspaceId: "ws-123456", + }, + oracleFusionRole: { + roleId: "123e4567-e89b-12d3-a456-426614174000", + }, + devinOrganization: { + orgId: "devin-org-01", + }, + devinRole: { + roleId: "devin-role-01", + }, }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `awsOrganizationalUnit` | [components.AwsOrganizationalUnit](../../models/components/awsorganizationalunit.md) | :heavy_minus_sign: | Remote info for AWS organizational unit. | -| `awsAccount` | [components.AwsAccount](../../models/components/awsaccount.md) | :heavy_minus_sign: | Remote info for AWS account. | -| `awsPermissionSet` | [components.AwsPermissionSet](../../models/components/awspermissionset.md) | :heavy_minus_sign: | Remote info for AWS Identity Center permission set. | -| `awsIamRole` | [components.AwsIamRole](../../models/components/awsiamrole.md) | :heavy_minus_sign: | Remote info for AWS IAM role. | -| `awsEc2Instance` | [components.AwsEc2Instance](../../models/components/awsec2instance.md) | :heavy_minus_sign: | Remote info for AWS EC2 instance. | -| `awsRdsInstance` | [components.AwsRdsInstance](../../models/components/awsrdsinstance.md) | :heavy_minus_sign: | Remote info for AWS RDS instance. | -| `awsEksCluster` | [components.AwsEksCluster](../../models/components/awsekscluster.md) | :heavy_minus_sign: | Remote info for AWS EKS cluster. | -| `customConnector` | [components.CustomConnector](../../models/components/customconnector.md) | :heavy_minus_sign: | Remote info for a custom connector resource. | -| `gcpOrganization` | [components.GcpOrganization](../../models/components/gcporganization.md) | :heavy_minus_sign: | Remote info for GCP organization. | -| `gcpBucket` | [components.GcpBucket](../../models/components/gcpbucket.md) | :heavy_minus_sign: | Remote info for GCP bucket. | -| `gcpComputeInstance` | [components.GcpComputeInstance](../../models/components/gcpcomputeinstance.md) | :heavy_minus_sign: | Remote info for GCP compute instance. | -| `gcpBigQueryDataset` | [components.GcpBigQueryDataset](../../models/components/gcpbigquerydataset.md) | :heavy_minus_sign: | Remote info for GCP BigQuery Dataset. | -| `gcpBigQueryTable` | [components.GcpBigQueryTable](../../models/components/gcpbigquerytable.md) | :heavy_minus_sign: | Remote info for GCP BigQuery Table. | -| `gcpFolder` | [components.GcpFolder](../../models/components/gcpfolder.md) | :heavy_minus_sign: | Remote info for GCP folder. | -| `gcpGkeCluster` | [components.GcpGkeCluster](../../models/components/gcpgkecluster.md) | :heavy_minus_sign: | Remote info for GCP GKE cluster. | -| `gcpProject` | [components.GcpProject](../../models/components/gcpproject.md) | :heavy_minus_sign: | Remote info for GCP project. | -| `gcpSqlInstance` | [components.GcpSqlInstance](../../models/components/gcpsqlinstance.md) | :heavy_minus_sign: | Remote info for GCP SQL instance. | -| `gcpServiceAccount` | [components.GcpServiceAccount](../../models/components/gcpserviceaccount.md) | :heavy_minus_sign: | Remote info for a GCP service account. | -| `googleWorkspaceRole` | [components.GoogleWorkspaceRole](../../models/components/googleworkspacerole.md) | :heavy_minus_sign: | Remote info for GCP workspace role. | -| `githubRepo` | [components.GithubRepo](../../models/components/githubrepo.md) | :heavy_minus_sign: | Remote info for GitHub repository. | -| `gitlabProject` | [components.GitlabProject](../../models/components/gitlabproject.md) | :heavy_minus_sign: | Remote info for Gitlab project. | -| `oktaApp` | [components.OktaApp](../../models/components/oktaapp.md) | :heavy_minus_sign: | Remote info for Okta directory app. | -| `oktaStandardRole` | [components.OktaStandardRole](../../models/components/oktastandardrole.md) | :heavy_minus_sign: | Remote info for Okta directory standard role. | -| `oktaCustomRole` | [components.OktaCustomRole](../../models/components/oktacustomrole.md) | :heavy_minus_sign: | Remote info for Okta directory custom role. | -| `pagerdutyRole` | [components.PagerdutyRole](../../models/components/pagerdutyrole.md) | :heavy_minus_sign: | Remote info for Pagerduty role. | -| `salesforcePermissionSet` | [components.SalesforcePermissionSet](../../models/components/salesforcepermissionset.md) | :heavy_minus_sign: | Remote info for Salesforce permission set. | -| `salesforceProfile` | [components.SalesforceProfile](../../models/components/salesforceprofile.md) | :heavy_minus_sign: | Remote info for Salesforce profile. | -| `salesforceRole` | [components.SalesforceRole](../../models/components/salesforcerole.md) | :heavy_minus_sign: | Remote info for Salesforce role. | -| `teleportRole` | [components.TeleportRole](../../models/components/teleportrole.md) | :heavy_minus_sign: | Remote info for Teleport role. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `databricksAccountServicePrincipal` | [components.DatabricksAccountServicePrincipal](../../models/components/databricksaccountserviceprincipal.md) | :heavy_minus_sign: | Remote info for Databricks account service principal. | +| `azureSubscription` | [components.AzureSubscription](../../models/components/azuresubscription.md) | :heavy_minus_sign: | Remote info for Azure subscription. | +| `azureResourceGroup` | [components.AzureResourceGroup](../../models/components/azureresourcegroup.md) | :heavy_minus_sign: | Remote info for Azure resource group. | +| `azureManagementGroup` | [components.AzureManagementGroup](../../models/components/azuremanagementgroup.md) | :heavy_minus_sign: | Remote info for Azure management group. | +| `azureVirtualMachine` | [components.AzureVirtualMachine](../../models/components/azurevirtualmachine.md) | :heavy_minus_sign: | Remote info for Azure virtual machine. | +| `azureStorageAccount` | [components.AzureStorageAccount](../../models/components/azurestorageaccount.md) | :heavy_minus_sign: | Remote info for Azure storage account. | +| `azureStorageContainer` | [components.AzureStorageContainer](../../models/components/azurestoragecontainer.md) | :heavy_minus_sign: | Remote info for Azure storage container. | +| `azureSqlServer` | [components.AzureSqlServer](../../models/components/azuresqlserver.md) | :heavy_minus_sign: | Remote info for Azure SQL server. | +| `azureSqlDatabase` | [components.AzureSqlDatabase](../../models/components/azuresqldatabase.md) | :heavy_minus_sign: | Remote info for Azure SQL database. | +| `azureSqlManagedInstance` | [components.AzureSqlManagedInstance](../../models/components/azuresqlmanagedinstance.md) | :heavy_minus_sign: | Remote info for Azure SQL managed instance. | +| `azureSqlManagedDatabase` | [components.AzureSqlManagedDatabase](../../models/components/azuresqlmanageddatabase.md) | :heavy_minus_sign: | Remote info for Azure SQL managed database. | +| `azureUserAssignedManagedIdentity` | [components.AzureUserAssignedManagedIdentity](../../models/components/azureuserassignedmanagedidentity.md) | :heavy_minus_sign: | Remote info for Azure user assigned managed identity. | +| `azureEnterpriseApp` | [components.AzureEnterpriseApp](../../models/components/azureenterpriseapp.md) | :heavy_minus_sign: | Remote info for Azure Enterprise App. | +| `azureEntraIdRole` | [components.AzureEntraIdRole](../../models/components/azureentraidrole.md) | :heavy_minus_sign: | Remote info for Azure Entra ID role. | +| `awsOrganizationalUnit` | [components.AwsOrganizationalUnit](../../models/components/awsorganizationalunit.md) | :heavy_minus_sign: | Remote info for AWS organizational unit. | +| `awsAccount` | [components.AwsAccount](../../models/components/awsaccount.md) | :heavy_minus_sign: | Remote info for AWS account. | +| `awsPermissionSet` | [components.AwsPermissionSet](../../models/components/awspermissionset.md) | :heavy_minus_sign: | Remote info for AWS Identity Center permission set. | +| `awsIamRole` | [components.AwsIamRole](../../models/components/awsiamrole.md) | :heavy_minus_sign: | Remote info for AWS IAM role. | +| `awsEc2Instance` | [components.AwsEc2Instance](../../models/components/awsec2instance.md) | :heavy_minus_sign: | Remote info for AWS EC2 instance. | +| `awsRdsCluster` | [components.AwsRdsCluster](../../models/components/awsrdscluster.md) | :heavy_minus_sign: | Remote info for AWS RDS cluster. | +| `awsRdsInstance` | [components.AwsRdsInstance](../../models/components/awsrdsinstance.md) | :heavy_minus_sign: | Remote info for AWS RDS instance. | +| `awsEksCluster` | [components.AwsEksCluster](../../models/components/awsekscluster.md) | :heavy_minus_sign: | Remote info for AWS EKS cluster. | +| `customConnector` | [components.CustomConnector](../../models/components/customconnector.md) | :heavy_minus_sign: | Remote info for a custom connector resource. | +| `gcpOrganization` | [components.GcpOrganization](../../models/components/gcporganization.md) | :heavy_minus_sign: | Remote info for GCP organization. | +| `gcpBucket` | [components.GcpBucket](../../models/components/gcpbucket.md) | :heavy_minus_sign: | Remote info for GCP bucket. | +| `gcpComputeInstance` | [components.GcpComputeInstance](../../models/components/gcpcomputeinstance.md) | :heavy_minus_sign: | Remote info for GCP compute instance. | +| `gcpBigQueryDataset` | [components.GcpBigQueryDataset](../../models/components/gcpbigquerydataset.md) | :heavy_minus_sign: | Remote info for GCP BigQuery Dataset. | +| `gcpBigQueryTable` | [components.GcpBigQueryTable](../../models/components/gcpbigquerytable.md) | :heavy_minus_sign: | Remote info for GCP BigQuery Table. | +| `gcpFolder` | [components.GcpFolder](../../models/components/gcpfolder.md) | :heavy_minus_sign: | Remote info for GCP folder. | +| `gcpGkeCluster` | [components.GcpGkeCluster](../../models/components/gcpgkecluster.md) | :heavy_minus_sign: | Remote info for GCP GKE cluster. | +| `gcpProject` | [components.GcpProject](../../models/components/gcpproject.md) | :heavy_minus_sign: | Remote info for GCP project. | +| `gcpSqlInstance` | [components.GcpSqlInstance](../../models/components/gcpsqlinstance.md) | :heavy_minus_sign: | Remote info for GCP SQL instance. | +| `gcpServiceAccount` | [components.GcpServiceAccount](../../models/components/gcpserviceaccount.md) | :heavy_minus_sign: | Remote info for a GCP service account. | +| `googleWorkspaceRole` | [components.GoogleWorkspaceRole](../../models/components/googleworkspacerole.md) | :heavy_minus_sign: | Remote info for GCP workspace role. | +| `githubRepo` | [components.GithubRepo](../../models/components/githubrepo.md) | :heavy_minus_sign: | Remote info for GitHub repository. | +| `githubOrgRole` | [components.GithubOrgRole](../../models/components/githuborgrole.md) | :heavy_minus_sign: | Remote info for GitHub organization role. | +| `githubOrg` | [components.GithubOrg](../../models/components/githuborg.md) | :heavy_minus_sign: | Remote info for GitHub organization. | +| `gitlabProject` | [components.GitlabProject](../../models/components/gitlabproject.md) | :heavy_minus_sign: | Remote info for Gitlab project. | +| `oktaApp` | [components.OktaApp](../../models/components/oktaapp.md) | :heavy_minus_sign: | Remote info for Okta directory app. | +| `oktaStandardRole` | [components.OktaStandardRole](../../models/components/oktastandardrole.md) | :heavy_minus_sign: | Remote info for Okta directory standard role. | +| `oktaCustomRole` | [components.OktaCustomRole](../../models/components/oktacustomrole.md) | :heavy_minus_sign: | Remote info for Okta directory custom role. | +| `snowflakeDatabase` | [components.SnowflakeDatabase](../../models/components/snowflakedatabase.md) | :heavy_minus_sign: | Remote info for Snowflake database. | +| `snowflakeSchema` | [components.SnowflakeSchema](../../models/components/snowflakeschema.md) | :heavy_minus_sign: | Remote info for Snowflake schema. | +| `snowflakeTable` | [components.SnowflakeTable](../../models/components/snowflaketable.md) | :heavy_minus_sign: | Remote info for Snowflake table. | +| `ilevelAdvancedRole` | [components.IlevelAdvancedRole](../../models/components/ileveladvancedrole.md) | :heavy_minus_sign: | Remote info for iLevel Advanced role. | +| `tailscaleSsh` | [components.TailscaleSsh](../../models/components/tailscalessh.md) | :heavy_minus_sign: | Remote info for Tailscale SSH tag. | +| `pagerdutyRole` | [components.PagerdutyRole](../../models/components/pagerdutyrole.md) | :heavy_minus_sign: | Remote info for Pagerduty role. | +| `workdayRole` | [components.WorkdayRole](../../models/components/workdayrole.md) | :heavy_minus_sign: | Remote info for Workday role. | +| `salesforcePermissionSet` | [components.SalesforcePermissionSet](../../models/components/salesforcepermissionset.md) | :heavy_minus_sign: | Remote info for Salesforce permission set. | +| `salesforceProfile` | [components.SalesforceProfile](../../models/components/salesforceprofile.md) | :heavy_minus_sign: | Remote info for Salesforce profile. | +| `salesforceRole` | [components.SalesforceRole](../../models/components/salesforcerole.md) | :heavy_minus_sign: | Remote info for Salesforce role. | +| `teleportRole` | [components.TeleportRole](../../models/components/teleportrole.md) | :heavy_minus_sign: | Remote info for Teleport role. | +| `datastaxAstraRole` | [components.DatastaxAstraRole](../../models/components/datastaxastrarole.md) | :heavy_minus_sign: | Remote info for an Astra role. | +| `coupaRole` | [components.CoupaRole](../../models/components/couparole.md) | :heavy_minus_sign: | Remote info for Coupa role. | +| `cursorOrganization` | [components.CursorOrganization](../../models/components/cursororganization.md) | :heavy_minus_sign: | Remote info for a Cursor organization. | +| `openaiPlatformProject` | [components.OpenaiPlatformProject](../../models/components/openaiplatformproject.md) | :heavy_minus_sign: | Remote info for OpenAI Platform project. | +| `openaiPlatformServiceAccount` | [components.OpenaiPlatformServiceAccount](../../models/components/openaiplatformserviceaccount.md) | :heavy_minus_sign: | Remote info for OpenAI Platform service account. | +| `anthropicWorkspace` | [components.AnthropicWorkspace](../../models/components/anthropicworkspace.md) | :heavy_minus_sign: | Remote info for Anthropic workspace. | +| `oracleFusionRole` | [components.OracleFusionRole](../../models/components/oraclefusionrole.md) | :heavy_minus_sign: | Remote info for Oracle Fusion role. | +| `devinOrganization` | [components.DevinOrganization](../../models/components/devinorganization.md) | :heavy_minus_sign: | Remote info for Devin organization. | +| `devinRole` | [components.DevinRole](../../models/components/devinrole.md) | :heavy_minus_sign: | Remote info for Devin role. | \ No newline at end of file diff --git a/docs/models/components/resourcetypeenum.md b/docs/models/components/resourcetypeenum.md index 9971d26..3e54cb1 100644 --- a/docs/models/components/resourcetypeenum.md +++ b/docs/models/components/resourcetypeenum.md @@ -13,5 +13,5 @@ let value: ResourceTypeEnum = "AWS_IAM_ROLE"; ## Values ```typescript -"AWS_IAM_ROLE" | "AWS_EC2_INSTANCE" | "AWS_EKS_CLUSTER" | "AWS_RDS_POSTGRES_CLUSTER" | "AWS_RDS_POSTGRES_INSTANCE" | "AWS_RDS_MYSQL_CLUSTER" | "AWS_RDS_MYSQL_INSTANCE" | "AWS_ACCOUNT" | "AWS_SSO_PERMISSION_SET" | "AWS_ORGANIZATIONAL_UNIT" | "AZURE_MANAGEMENT_GROUP" | "AZURE_RESOURCE_GROUP" | "AZURE_SUBSCRIPTION" | "AZURE_VIRTUAL_MACHINE" | "AZURE_STORAGE_ACCOUNT" | "AZURE_STORAGE_CONTAINER" | "AZURE_SQL_SERVER" | "AZURE_SQL_MANAGED_INSTANCE" | "AZURE_SQL_DATABASE" | "AZURE_SQL_MANAGED_DATABASE" | "AZURE_USER_ASSIGNED_MANAGED_Identity" | "AZURE_ENTRA_ID_ROLE" | "AZURE_ENTERPRISE_APP" | "CUSTOM" | "CUSTOM_CONNECTOR" | "DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL" | "GCP_ORGANIZATION" | "GCP_BUCKET" | "GCP_COMPUTE_INSTANCE" | "GCP_FOLDER" | "GCP_GKE_CLUSTER" | "GCP_PROJECT" | "GCP_CLOUD_SQL_POSTGRES_INSTANCE" | "GCP_CLOUD_SQL_MYSQL_INSTANCE" | "GCP_BIG_QUERY_DATASET" | "GCP_BIG_QUERY_TABLE" | "GCP_SERVICE_ACCOUNT" | "GIT_HUB_REPO" | "GIT_HUB_ORG_ROLE" | "GIT_LAB_PROJECT" | "GOOGLE_WORKSPACE_ROLE" | "MONGO_INSTANCE" | "MONGO_ATLAS_INSTANCE" | "OKTA_APP" | "OKTA_ROLE" | "OPAL_ROLE" | "OPAL_SCOPED_ROLE" | "PAGERDUTY_ROLE" | "TAILSCALE_SSH" | "SALESFORCE_PERMISSION_SET" | "SALESFORCE_PROFILE" | "SALESFORCE_ROLE" | "SNOWFLAKE_DATABASE" | "SNOWFLAKE_SCHEMA" | "SNOWFLAKE_TABLE" | "WORKDAY_ROLE" | "MYSQL_INSTANCE" | "MARIADB_INSTANCE" | "POSTGRES_INSTANCE" | "TELEPORT_ROLE" +"AWS_IAM_ROLE" | "AWS_EC2_INSTANCE" | "AWS_EKS_CLUSTER" | "AWS_RDS_POSTGRES_CLUSTER" | "AWS_RDS_POSTGRES_INSTANCE" | "AWS_RDS_MYSQL_CLUSTER" | "AWS_RDS_MYSQL_INSTANCE" | "AWS_ACCOUNT" | "AWS_SSO_PERMISSION_SET" | "AWS_ORGANIZATIONAL_UNIT" | "AZURE_MANAGEMENT_GROUP" | "AZURE_RESOURCE_GROUP" | "AZURE_SUBSCRIPTION" | "AZURE_VIRTUAL_MACHINE" | "AZURE_STORAGE_ACCOUNT" | "AZURE_STORAGE_CONTAINER" | "AZURE_SQL_SERVER" | "AZURE_SQL_MANAGED_INSTANCE" | "AZURE_SQL_DATABASE" | "AZURE_SQL_MANAGED_DATABASE" | "AZURE_USER_ASSIGNED_MANAGED_Identity" | "AZURE_ENTRA_ID_ROLE" | "AZURE_ENTERPRISE_APP" | "CUSTOM" | "CUSTOM_CONNECTOR" | "DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL" | "GCP_ORGANIZATION" | "GCP_BUCKET" | "GCP_COMPUTE_INSTANCE" | "GCP_FOLDER" | "GCP_GKE_CLUSTER" | "GCP_PROJECT" | "GCP_CLOUD_SQL_POSTGRES_INSTANCE" | "GCP_CLOUD_SQL_MYSQL_INSTANCE" | "GCP_BIG_QUERY_DATASET" | "GCP_BIG_QUERY_TABLE" | "GCP_SERVICE_ACCOUNT" | "GIT_HUB_REPO" | "GIT_HUB_ORG_ROLE" | "GIT_LAB_PROJECT" | "GOOGLE_WORKSPACE_ROLE" | "MONGO_INSTANCE" | "MONGO_ATLAS_INSTANCE" | "OKTA_APP" | "OKTA_ROLE" | "OPAL_ROLE" | "OPAL_SCOPED_ROLE" | "PAGERDUTY_ROLE" | "TAILSCALE_SSH" | "SALESFORCE_PERMISSION_SET" | "SALESFORCE_PROFILE" | "SALESFORCE_ROLE" | "SNOWFLAKE_DATABASE" | "SNOWFLAKE_SCHEMA" | "SNOWFLAKE_TABLE" | "WORKDAY_ROLE" | "MYSQL_INSTANCE" | "MARIADB_INSTANCE" | "POSTGRES_INSTANCE" | "TELEPORT_ROLE" | "ILEVEL_ADVANCED_ROLE" | "DATASTAX_ASTRA_ROLE" | "COUPA_ROLE" | "CURSOR_ORGANIZATION" | "OPENAI_PLATFORM_PROJECT" | "OPENAI_PLATFORM_SERVICE_ACCOUNT" | "ANTHROPIC_WORKSPACE" | "GIT_HUB_ORG" | "ORACLE_FUSION_ROLE" | "DEVIN_ORGANIZATION" | "DEVIN_ROLE" | "VAULT_SECRET" | "VAULT_POLICY" | "VAULT_OIDC_ROLE" ``` \ No newline at end of file diff --git a/docs/models/components/reviewerstages.md b/docs/models/components/reviewerstages.md new file mode 100644 index 0000000..15795a5 --- /dev/null +++ b/docs/models/components/reviewerstages.md @@ -0,0 +1,27 @@ +# ReviewerStages + +The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded + + +## Supported Types + +### `components.RequestReviewerStages[]` + +```typescript +const value: components.RequestReviewerStages[] = [ + { + accessLevelName: "admin", + accessLevelRemoteId: "arn:aws:iam::490306337630:role/SupportUser", + itemName: "", + itemId: "f454d283-ca87-4a8a-bdbb-df212eca5353", + stages: [], + }, +]; +``` + +### `string` + +```typescript +const value: string = ""; +``` + diff --git a/docs/models/components/rolepermissiontargettypeenum.md b/docs/models/components/rolepermissiontargettypeenum.md index 31151f1..1e52594 100644 --- a/docs/models/components/rolepermissiontargettypeenum.md +++ b/docs/models/components/rolepermissiontargettypeenum.md @@ -13,5 +13,5 @@ let value: RolePermissionTargetTypeEnum = "RESOURCE"; ## Values ```typescript -"RESOURCE" | "CONNECTION" | "GROUP" | "BUNDLE" | "USER" | "ACCESS_REVIEW" +"RESOURCE" | "CONNECTION" | "GROUP" | "BUNDLE" | "USER" | "ACCESS_REVIEW" | "OWNER" ``` \ No newline at end of file diff --git a/docs/models/components/snowflakedatabase.md b/docs/models/components/snowflakedatabase.md new file mode 100644 index 0000000..690075b --- /dev/null +++ b/docs/models/components/snowflakedatabase.md @@ -0,0 +1,19 @@ +# SnowflakeDatabase + +Remote info for Snowflake database. + +## Example Usage + +```typescript +import { SnowflakeDatabase } from "opal-mcp/models/components"; + +let value: SnowflakeDatabase = { + databaseName: "mydatabase", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `databaseName` | *string* | :heavy_check_mark: | The name of the database. | mydatabase | \ No newline at end of file diff --git a/docs/models/components/snowflakeschema.md b/docs/models/components/snowflakeschema.md new file mode 100644 index 0000000..453b8cf --- /dev/null +++ b/docs/models/components/snowflakeschema.md @@ -0,0 +1,21 @@ +# SnowflakeSchema + +Remote info for Snowflake schema. + +## Example Usage + +```typescript +import { SnowflakeSchema } from "opal-mcp/models/components"; + +let value: SnowflakeSchema = { + databaseName: "mydatabase", + schemaName: "mycatalogschema", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `databaseName` | *string* | :heavy_check_mark: | The name of the database the schema is in. | mydatabase | +| `schemaName` | *string* | :heavy_check_mark: | The name of the schema. | mycatalogschema | \ No newline at end of file diff --git a/docs/models/components/snowflaketable.md b/docs/models/components/snowflaketable.md new file mode 100644 index 0000000..9da2266 --- /dev/null +++ b/docs/models/components/snowflaketable.md @@ -0,0 +1,23 @@ +# SnowflakeTable + +Remote info for Snowflake table. + +## Example Usage + +```typescript +import { SnowflakeTable } from "opal-mcp/models/components"; + +let value: SnowflakeTable = { + databaseName: "mydatabase", + schemaName: "mycatalogschema", + tableName: "myitemstable", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `databaseName` | *string* | :heavy_check_mark: | The name of the database the table is in. | mydatabase | +| `schemaName` | *string* | :heavy_check_mark: | The name of the schema the table is in. | mycatalogschema | +| `tableName` | *string* | :heavy_check_mark: | The name of the table. | myitemstable | \ No newline at end of file diff --git a/docs/models/components/synctask.md b/docs/models/components/synctask.md new file mode 100644 index 0000000..30d81f3 --- /dev/null +++ b/docs/models/components/synctask.md @@ -0,0 +1,21 @@ +# SyncTask + +Represents a sync task that has been completed, either successfully or with errors. + +## Example Usage + +```typescript +import { SyncTask } from "opal-mcp/models/components"; + +let value: SyncTask = { + id: "7c86c85d-0651-43e2-a748-d69d658418e8", + completedAt: new Date("2023-10-01T12:00:00Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the sync task. | 7c86c85d-0651-43e2-a748-d69d658418e8 | +| `completedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The time when the sync task was completed. | 2023-10-01 12:00:00 +0000 UTC | \ No newline at end of file diff --git a/docs/models/components/tailscalegroup.md b/docs/models/components/tailscalegroup.md new file mode 100644 index 0000000..3225d19 --- /dev/null +++ b/docs/models/components/tailscalegroup.md @@ -0,0 +1,19 @@ +# TailscaleGroup + +Remote info for Tailscale group. + +## Example Usage + +```typescript +import { TailscaleGroup } from "opal-mcp/models/components"; + +let value: TailscaleGroup = { + groupId: "898931321", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `groupId` | *string* | :heavy_check_mark: | The id of the Tailscale group. | 898931321 | \ No newline at end of file diff --git a/docs/models/components/tailscalessh.md b/docs/models/components/tailscalessh.md new file mode 100644 index 0000000..57ceebf --- /dev/null +++ b/docs/models/components/tailscalessh.md @@ -0,0 +1,19 @@ +# TailscaleSsh + +Remote info for Tailscale SSH tag. + +## Example Usage + +```typescript +import { TailscaleSsh } from "opal-mcp/models/components"; + +let value: TailscaleSsh = { + tagName: "admin", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | +| `tagName` | *string* | :heavy_check_mark: | The name of the tag. | admin | \ No newline at end of file diff --git a/docs/models/components/thirdpartyproviderenum.md b/docs/models/components/thirdpartyproviderenum.md new file mode 100644 index 0000000..bd79799 --- /dev/null +++ b/docs/models/components/thirdpartyproviderenum.md @@ -0,0 +1,17 @@ +# ThirdPartyProviderEnum + +The third party provider of the remote user. + +## Example Usage + +```typescript +import { ThirdPartyProviderEnum } from "opal-mcp/models/components"; + +let value: ThirdPartyProviderEnum = "GIT_HUB"; +``` + +## Values + +```typescript +"AUTH0" | "SLACK" | "GOOGLE_CHAT" | "JIRA" | "LINEAR" | "SERVICE_NOW" | "FRESH_SERVICE" | "SHORTCUT" | "PAGER_DUTY" | "OPSGENIE" | "GIT_HUB" | "GIT_LAB" | "GIT_LAB_CONNECTION" | "TELEPORT" +``` \ No newline at end of file diff --git a/docs/models/components/uar.md b/docs/models/components/uar.md index 275a122..587d816 100644 --- a/docs/models/components/uar.md +++ b/docs/models/components/uar.md @@ -15,6 +15,7 @@ let value: Uar = { deadline: new Date("2022-07-14T06:59:59Z"), timeZone: "America/Los_Angeles", selfReviewAllowed: false, + instantlyActionReviews: false, uarScope: { admins: [ "f454d283-ca87-4a8a-bdbb-df212eca5353", @@ -40,9 +41,10 @@ let value: Uar = { | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `uarId` | *string* | :heavy_check_mark: | The ID of the UAR. | f454d283-ca87-4a8a-bdbb-df212eca5353 | | `name` | *string* | :heavy_check_mark: | The name of the UAR. | Monthly UAR (July) | -| `reviewerAssignmentPolicy` | [components.UARReviewerAssignmentPolicyEnum](../../models/components/uarreviewerassignmentpolicyenum.md) | :heavy_check_mark: | A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. | MANUALLY | +| `reviewerAssignmentPolicy` | [components.UARReviewerAssignmentPolicyEnum](../../models/components/uarreviewerassignmentpolicyenum.md) | :heavy_check_mark: | A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. | MANUALLY | | `sendReviewerAssignmentNotification` | *boolean* | :heavy_check_mark: | A bool representing whether to send a notification to reviewers when they're assigned a new review. Default is False. | false | | `deadline` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The last day for reviewers to complete their access reviews. | 2022-07-14 06:59:59 +0000 UTC | | `timeZone` | *string* | :heavy_check_mark: | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | America/Los_Angeles | | `selfReviewAllowed` | *boolean* | :heavy_check_mark: | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | false | +| `instantlyActionReviews` | *boolean* | :heavy_check_mark: | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | false | | `uarScope` | [components.UARScope](../../models/components/uarscope.md) | :heavy_minus_sign: | If set, the access review will only contain resources and groups that match at least one of the filters in scope. | {
"filter_operator": "ANY",
"users": [
"userd283-ca87-4a8a-bdbb-df212eca5353"
],
"include_group_bindings": true,
"tags": [
{
"key": "uar_scope",
"value": "high_priority"
}
],
"names": [
"demo",
"api"
],
"admins": [
"f454d283-ca87-4a8a-bdbb-df212eca5353",
"8763d283-ca87-4a8a-bdbb-df212ecab139"
],
"resource_types": [
"GCP_CLOUD_SQL_POSTGRES_INSTANCE"
],
"group_types": [
"AWS_SSO_GROUP"
],
"apps": [
"pas2d283-ca87-4a8a-bdbb-df212eca5353",
"apss2d283-ca87-4a8a-bdbb-df212eca5353"
],
"entities": [
"f454d283-as87-4a8a-bdbb-df212eca5353",
"f454d283-as87-4a8a-bdbb-df212eca5329"
]
} | \ No newline at end of file diff --git a/docs/models/components/uarreviewerassignmentpolicyenum.md b/docs/models/components/uarreviewerassignmentpolicyenum.md index dea8f73..3ca4ca2 100644 --- a/docs/models/components/uarreviewerassignmentpolicyenum.md +++ b/docs/models/components/uarreviewerassignmentpolicyenum.md @@ -1,6 +1,6 @@ # UARReviewerAssignmentPolicyEnum -A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. +A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. ## Example Usage @@ -13,5 +13,5 @@ let value: UARReviewerAssignmentPolicyEnum = "MANUALLY"; ## Values ```typescript -"MANUALLY" | "BY_OWNING_TEAM_ADMIN" | "BY_MANAGER" +"MANUALLY" | "BY_OWNING_TEAM_ADMIN" | "BY_OWNING_TEAM_ADMIN_ALL" | "BY_MANAGER" | "BY_APPROVERS" | "BY_APPROVERS_ALL" ``` \ No newline at end of file diff --git a/docs/models/components/updategroupinfo.md b/docs/models/components/updategroupinfo.md index a5df7d5..141533e 100644 --- a/docs/models/components/updategroupinfo.md +++ b/docs/models/components/updategroupinfo.md @@ -41,6 +41,7 @@ let value: UpdateGroupInfo = { | ~~`requestTemplateId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The ID of the associated request template. Deprecated in favor of `request_configurations`. | 06851574-e50d-40ca-8c78-f72ae6ab4304 | | ~~`isRequestable`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

A bool representing whether or not to allow access requests to this group. Deprecated in favor of `request_configurations`. | false | | `groupLeaderUserIds` | *string*[] | :heavy_minus_sign: | A list of User IDs for the group leaders of the group | | +| ~~`extensionsDurationInMinutes`~~ | *number* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. | 120 | | `requestConfigurations` | [components.RequestConfiguration](../../models/components/requestconfiguration.md)[] | :heavy_minus_sign: | The request configuration list of the configuration template. If not provided, the default request configuration will be used. | | | `requestConfigurationList` | [components.CreateRequestConfigurationInfoList](../../models/components/createrequestconfigurationinfolist.md) | :heavy_minus_sign: | # CreateRequestConfigurationInfoList Object
### Description
The `CreateRequestConfigurationInfoList` object is used as an input to the CreateRequestConfigurations API.

### Formatting Requirements
The `CreateRequestConfigurationInfoList` object must contain a list of `RequestConfiguration` objects.
Exactly one default `RequestConfiguration` must be provided. A default `RequestConfiguration` is one with a `condition` of `null`
and a `priority` of `0`. The default `RequestConfiguration` will be used when no other `RequestConfiguration` matches the request.

Only one `RequestConfiguration` may be provided for each priority, and the priorities must be contiguous. For example, if there are
two `RequestConfigurations` with priorities 0 and 2, there must be a `RequestConfiguration` with priority 1.

To use the `condition` field, the `condition` must be a valid JSON object.

The `condition` must be a JSON object with the key `group_ids` (more options may be added in the future), whose value is a list of
group IDs.
The `condition` will match if the user requesting access is a member of any of the groups in the list. Currently, we only support
using a single group as a condition. | {
"request_configurations": [
{
"request_configuration_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"organization_id": "w86c85d-0651-43e2-a748-d69d658418e8",
"condition": null,
"allow_requests": true,
"auto_approval": false,
"require_mfa_to_request": false,
"max_duration_minutes": 120,
"recommended_duration_minutes": 120,
"require_support_ticket": false,
"reviewer_stages": [
{
"reviewer_stage_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"owner_ids": [
"37cb7e41-12ba-46da-92ff-030abe0450b1",
"37cb7e41-12ba-46da-92ff-030abe0450b2"
],
"stage": 1
}
],
"priority": 0
},
{
"request_configuration_id": "7c86c85d-0651-43e2-a748-d69d658418e9",
"organization_id": "w86c85d-0651-43e2-a748-d69d658418e8",
"condition": {
"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b4"
},
"allow_requests": true,
"auto_approval": false,
"require_mfa_to_request": false,
"max_duration_minutes": 120,
"recommended_duration_minutes": 120,
"require_support_ticket": false,
"reviewer_stages": [
{
"reviewer_stage_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"owner_ids": [
"37cb7e41-12ba-46da-92ff-030abe0450b1",
"37cb7e41-12ba-46da-92ff-030abe0450b2"
],
"stage": 1
}
],
"priority": 1
}
]
} | | `customRequestNotification` | *string* | :heavy_minus_sign: | Custom request notification sent to the requester when the request is approved. | Check your email to register your account. | diff --git a/docs/models/components/updateresourceinfo.md b/docs/models/components/updateresourceinfo.md index 197e3c6..d9bedce 100644 --- a/docs/models/components/updateresourceinfo.md +++ b/docs/models/components/updateresourceinfo.md @@ -43,5 +43,6 @@ let value: UpdateResourceInfo = { | `configurationTemplateId` | *string* | :heavy_minus_sign: | The ID of the associated configuration template. | 06851574-e50d-40ca-8c78-f72ae6ab4304 | | ~~`requestTemplateId`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The ID of the associated request template. Deprecated in favor of `request_configurations`. | 06851574-e50d-40ca-8c78-f72ae6ab4304 | | ~~`isRequestable`~~ | *boolean* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

A bool representing whether or not to allow access requests to this resource. Deprecated in favor of `request_configurations`. | false | +| ~~`extensionsDurationInMinutes`~~ | *number* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. | 120 | | `requestConfigurations` | [components.RequestConfiguration](../../models/components/requestconfiguration.md)[] | :heavy_minus_sign: | A list of configurations for requests to this resource. If not provided, the default request configuration will be used. | | | `requestConfigurationList` | [components.CreateRequestConfigurationInfoList](../../models/components/createrequestconfigurationinfolist.md) | :heavy_minus_sign: | # CreateRequestConfigurationInfoList Object
### Description
The `CreateRequestConfigurationInfoList` object is used as an input to the CreateRequestConfigurations API.

### Formatting Requirements
The `CreateRequestConfigurationInfoList` object must contain a list of `RequestConfiguration` objects.
Exactly one default `RequestConfiguration` must be provided. A default `RequestConfiguration` is one with a `condition` of `null`
and a `priority` of `0`. The default `RequestConfiguration` will be used when no other `RequestConfiguration` matches the request.

Only one `RequestConfiguration` may be provided for each priority, and the priorities must be contiguous. For example, if there are
two `RequestConfigurations` with priorities 0 and 2, there must be a `RequestConfiguration` with priority 1.

To use the `condition` field, the `condition` must be a valid JSON object.

The `condition` must be a JSON object with the key `group_ids` (more options may be added in the future), whose value is a list of
group IDs.
The `condition` will match if the user requesting access is a member of any of the groups in the list. Currently, we only support
using a single group as a condition. | {
"request_configurations": [
{
"request_configuration_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"organization_id": "w86c85d-0651-43e2-a748-d69d658418e8",
"condition": null,
"allow_requests": true,
"auto_approval": false,
"require_mfa_to_request": false,
"max_duration_minutes": 120,
"recommended_duration_minutes": 120,
"require_support_ticket": false,
"reviewer_stages": [
{
"reviewer_stage_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"owner_ids": [
"37cb7e41-12ba-46da-92ff-030abe0450b1",
"37cb7e41-12ba-46da-92ff-030abe0450b2"
],
"stage": 1
}
],
"priority": 0
},
{
"request_configuration_id": "7c86c85d-0651-43e2-a748-d69d658418e9",
"organization_id": "w86c85d-0651-43e2-a748-d69d658418e8",
"condition": {
"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b4"
},
"allow_requests": true,
"auto_approval": false,
"require_mfa_to_request": false,
"max_duration_minutes": 120,
"recommended_duration_minutes": 120,
"require_support_ticket": false,
"reviewer_stages": [
{
"reviewer_stage_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"owner_ids": [
"37cb7e41-12ba-46da-92ff-030abe0450b1",
"37cb7e41-12ba-46da-92ff-030abe0450b2"
],
"stage": 1
}
],
"priority": 1
}
]
} | \ No newline at end of file diff --git a/docs/models/components/workdayrole.md b/docs/models/components/workdayrole.md new file mode 100644 index 0000000..98846d9 --- /dev/null +++ b/docs/models/components/workdayrole.md @@ -0,0 +1,19 @@ +# WorkdayRole + +Remote info for Workday role. + +## Example Usage + +```typescript +import { WorkdayRole } from "opal-mcp/models/components"; + +let value: WorkdayRole = { + roleId: "123abc456def", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `roleId` | *string* | :heavy_check_mark: | The id of the role. | 123abc456def | \ No newline at end of file diff --git a/docs/models/operations/approverequestrequestbody.md b/docs/models/operations/approverequestrequestbody.md index 2aca0f4..6f650fb 100644 --- a/docs/models/operations/approverequestrequestbody.md +++ b/docs/models/operations/approverequestrequestbody.md @@ -15,7 +15,7 @@ let value: ApproveRequestRequestBody = { ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `level` | [operations.Level](../../models/operations/level.md) | :heavy_check_mark: | The decision level for the approval | REGULAR | -| `comment` | *string* | :heavy_minus_sign: | Optional comment for the approval | Approved after security review | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `level` | [components.RequestApprovalEnum](../../models/components/requestapprovalenum.md) | :heavy_check_mark: | The decision level for the approval | REGULAR | +| `comment` | *string* | :heavy_minus_sign: | Optional comment for the approval | Approved after security review | \ No newline at end of file diff --git a/docs/models/operations/approverequestresponse.md b/docs/models/operations/approverequestresponse.md index 162793a..dd6d9f8 100644 --- a/docs/models/operations/approverequestresponse.md +++ b/docs/models/operations/approverequestresponse.md @@ -18,40 +18,13 @@ let value: ApproveRequestResponse = { status: "DENIED", reason: "I need this resource.", durationMinutes: 1440, - stages: { - requestedRoleName: "Admin", - requestedItemName: "AWS Production Account", - stages: [ - { - stage: 1, - operator: "AND", - reviewers: [ - { - id: "7c86c85d-0651-43e2-a748-d69d658418e8", - status: "PENDING", - }, - ], - }, - { - stage: 2, - operator: "OR", - reviewers: [ - { - id: "8d86c85d-0651-43e2-a748-d69d658418e9", - status: "APPROVED", - }, - ], - }, - ], - }, + reviewerStages: "", }, - taskId: "c6f85bfb-3fe7-4936-a68d-7a5e1e3d0f6a", }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.RequestT](../../models/components/requestt.md) | :heavy_minus_sign: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"stages": {
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
} | -| `taskId` | *string* | :heavy_minus_sign: | ID of the task created for propagating access | c6f85bfb-3fe7-4936-a68d-7a5e1e3d0f6a | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [components.RequestT](../../models/components/requestt.md) | :heavy_minus_sign: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/operations/createidpgroupmappingrequest.md b/docs/models/operations/createidpgroupmappingrequest.md new file mode 100644 index 0000000..c6a6fd4 --- /dev/null +++ b/docs/models/operations/createidpgroupmappingrequest.md @@ -0,0 +1,20 @@ +# CreateIdpGroupMappingRequest + +## Example Usage + +```typescript +import { CreateIdpGroupMappingRequest } from "opal-mcp/models/operations"; + +let value: CreateIdpGroupMappingRequest = { + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `appResourceId` | *string* | :heavy_check_mark: | The ID of the Okta app. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `requestBody` | [operations.CreateIdpGroupMappingRequestBody](../../models/operations/createidpgroupmappingrequestbody.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/createidpgroupmappingrequestbody.md b/docs/models/operations/createidpgroupmappingrequestbody.md new file mode 100644 index 0000000..4b5000b --- /dev/null +++ b/docs/models/operations/createidpgroupmappingrequestbody.md @@ -0,0 +1,16 @@ +# CreateIdpGroupMappingRequestBody + +## Example Usage + +```typescript +import { CreateIdpGroupMappingRequestBody } from "opal-mcp/models/operations"; + +let value: CreateIdpGroupMappingRequestBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `alias` | *string* | :heavy_minus_sign: | Optional alias for the group mapping | +| `hiddenFromEndUser` | *boolean* | :heavy_minus_sign: | Whether this mapping should be hidden from end users.
- **New mappings**: If not provided, defaults to `false`
- **Existing mappings**: If not provided, existing value is preserved (no change)
- **Explicit values**: If provided, value is updated to the specified boolean
| \ No newline at end of file diff --git a/docs/models/operations/createrequestcommentrequest.md b/docs/models/operations/createrequestcommentrequest.md new file mode 100644 index 0000000..fb20f37 --- /dev/null +++ b/docs/models/operations/createrequestcommentrequest.md @@ -0,0 +1,22 @@ +# CreateRequestCommentRequest + +## Example Usage + +```typescript +import { CreateRequestCommentRequest } from "opal-mcp/models/operations"; + +let value: CreateRequestCommentRequest = { + id: "9041c256-1591-47de-a70d-c7b1c2a85359", + requestBody: { + comment: + "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the request to comment on | +| `requestBody` | [operations.CreateRequestCommentRequestBody](../../models/operations/createrequestcommentrequestbody.md) | :heavy_check_mark: | Comment parameters | \ No newline at end of file diff --git a/docs/models/operations/createrequestcommentrequestbody.md b/docs/models/operations/createrequestcommentrequestbody.md new file mode 100644 index 0000000..3aec6ab --- /dev/null +++ b/docs/models/operations/createrequestcommentrequestbody.md @@ -0,0 +1,20 @@ +# CreateRequestCommentRequestBody + +Comment parameters + +## Example Usage + +```typescript +import { CreateRequestCommentRequestBody } from "opal-mcp/models/operations"; + +let value: CreateRequestCommentRequestBody = { + comment: + "The Nagasaki Lander is the trademarked name of several series of Nagasaki sport bikes, that started with the 1984 ABC800J", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `comment` | *string* | :heavy_check_mark: | comment | \ No newline at end of file diff --git a/docs/models/operations/createrequestcommentresponse.md b/docs/models/operations/createrequestcommentresponse.md new file mode 100644 index 0000000..35014a2 --- /dev/null +++ b/docs/models/operations/createrequestcommentresponse.md @@ -0,0 +1,30 @@ +# CreateRequestCommentResponse + +Request successfully commented + +## Example Usage + +```typescript +import { CreateRequestCommentResponse } from "opal-mcp/models/operations"; + +let value: CreateRequestCommentResponse = { + request: { + id: "7c86c85d-0651-43e2-a748-d69d658418e8", + createdAt: new Date("2021-01-06T20:00:00Z"), + updatedAt: new Date("2021-01-06T20:00:00Z"), + requesterId: "c86c85d-0651-43e2-a748-d69d658418e8", + targetUserId: "r86c85d-0651-43e2-a748-d69d658418e8", + targetGroupId: "r86c85d-0651-43e2-a748-d69d658418e8", + status: "PENDING", + reason: "I need this resource.", + durationMinutes: 1440, + reviewerStages: "", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [components.RequestT](../../models/components/requestt.md) | :heavy_minus_sign: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/operations/deletedelegationrequest.md b/docs/models/operations/deletedelegationrequest.md new file mode 100644 index 0000000..3f3b2c3 --- /dev/null +++ b/docs/models/operations/deletedelegationrequest.md @@ -0,0 +1,17 @@ +# DeleteDelegationRequest + +## Example Usage + +```typescript +import { DeleteDelegationRequest } from "opal-mcp/models/operations"; + +let value: DeleteDelegationRequest = { + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `delegationId` | *string* | :heavy_check_mark: | The ID of the delegation to remove. | 32acc112-21ff-4669-91c2-21e27683eaa1 | \ No newline at end of file diff --git a/docs/models/operations/denyrequestrequest.md b/docs/models/operations/denyrequestrequest.md new file mode 100644 index 0000000..e422b6d --- /dev/null +++ b/docs/models/operations/denyrequestrequest.md @@ -0,0 +1,22 @@ +# DenyRequestRequest + +## Example Usage + +```typescript +import { DenyRequestRequest } from "opal-mcp/models/operations"; + +let value: DenyRequestRequest = { + id: "4a244a1a-389e-4a44-8b66-0fbe2244d954", + requestBody: { + comment: "Denied due to insufficient justification", + level: "REGULAR", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the request to deny | +| `requestBody` | [operations.DenyRequestRequestBody](../../models/operations/denyrequestrequestbody.md) | :heavy_check_mark: | Denial parameters | \ No newline at end of file diff --git a/docs/models/operations/denyrequestrequestbody.md b/docs/models/operations/denyrequestrequestbody.md new file mode 100644 index 0000000..4ac93e4 --- /dev/null +++ b/docs/models/operations/denyrequestrequestbody.md @@ -0,0 +1,21 @@ +# DenyRequestRequestBody + +Denial parameters + +## Example Usage + +```typescript +import { DenyRequestRequestBody } from "opal-mcp/models/operations"; + +let value: DenyRequestRequestBody = { + comment: "Denied due to insufficient justification", + level: "REGULAR", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `comment` | *string* | :heavy_check_mark: | Comment for the denial | Denied due to insufficient justification | +| `level` | [components.RequestApprovalEnum](../../models/components/requestapprovalenum.md) | :heavy_minus_sign: | The decision level for the approval | REGULAR | \ No newline at end of file diff --git a/docs/models/operations/denyrequestresponse.md b/docs/models/operations/denyrequestresponse.md new file mode 100644 index 0000000..1bbd69d --- /dev/null +++ b/docs/models/operations/denyrequestresponse.md @@ -0,0 +1,30 @@ +# DenyRequestResponse + +Request successfully denied + +## Example Usage + +```typescript +import { DenyRequestResponse } from "opal-mcp/models/operations"; + +let value: DenyRequestResponse = { + request: { + id: "7c86c85d-0651-43e2-a748-d69d658418e8", + createdAt: new Date("2021-01-06T20:00:00Z"), + updatedAt: new Date("2021-01-06T20:00:00Z"), + requesterId: "c86c85d-0651-43e2-a748-d69d658418e8", + targetUserId: "r86c85d-0651-43e2-a748-d69d658418e8", + targetGroupId: "r86c85d-0651-43e2-a748-d69d658418e8", + status: "PENDING", + reason: "I need this resource.", + durationMinutes: 1440, + reviewerStages: [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [components.RequestT](../../models/components/requestt.md) | :heavy_minus_sign: | # Request Object
### Description
The `Request` object is used to represent a request.

### Usage Example
Returned from the `GET Requests` endpoint. | {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/operations/getdelegationrequest.md b/docs/models/operations/getdelegationrequest.md new file mode 100644 index 0000000..3924459 --- /dev/null +++ b/docs/models/operations/getdelegationrequest.md @@ -0,0 +1,17 @@ +# GetDelegationRequest + +## Example Usage + +```typescript +import { GetDelegationRequest } from "opal-mcp/models/operations"; + +let value: GetDelegationRequest = { + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `delegationId` | *string* | :heavy_check_mark: | The ID of the delegation to retrieve. | 32acc112-21ff-4669-91c2-21e27683eaa1 | \ No newline at end of file diff --git a/docs/models/operations/getdelegationsrequest.md b/docs/models/operations/getdelegationsrequest.md new file mode 100644 index 0000000..884f412 --- /dev/null +++ b/docs/models/operations/getdelegationsrequest.md @@ -0,0 +1,23 @@ +# GetDelegationsRequest + +## Example Usage + +```typescript +import { GetDelegationsRequest } from "opal-mcp/models/operations"; + +let value: GetDelegationsRequest = { + delegatorUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + delegateUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `delegatorUserId` | *string* | :heavy_minus_sign: | The delegator user ID to filter delegations by the user delegating their access review requests. | 29827fb8-f2dd-4e80-9576-28e31e9934ac | +| `delegateUserId` | *string* | :heavy_minus_sign: | The delegate user ID to filter delegations by the user being delegated to. | 29827fb8-f2dd-4e80-9576-28e31e9934ac | +| `cursor` | *string* | :heavy_minus_sign: | A cursor to indicate where to start fetching results. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `pageSize` | *number* | :heavy_minus_sign: | The maximum number of results to return per page. The default is 200. | 200 | \ No newline at end of file diff --git a/docs/models/operations/getgroupusersrequest.md b/docs/models/operations/getgroupusersrequest.md index 6ba4780..8e7d1ce 100644 --- a/docs/models/operations/getgroupusersrequest.md +++ b/docs/models/operations/getgroupusersrequest.md @@ -7,11 +7,15 @@ import { GetGroupUsersRequest } from "opal-mcp/models/operations"; let value: GetGroupUsersRequest = { groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | \ No newline at end of file diff --git a/docs/models/operations/getidpgroupmappingrequest.md b/docs/models/operations/getidpgroupmappingrequest.md new file mode 100644 index 0000000..dd7436d --- /dev/null +++ b/docs/models/operations/getidpgroupmappingrequest.md @@ -0,0 +1,19 @@ +# GetIdpGroupMappingRequest + +## Example Usage + +```typescript +import { GetIdpGroupMappingRequest } from "opal-mcp/models/operations"; + +let value: GetIdpGroupMappingRequest = { + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `appResourceId` | *string* | :heavy_check_mark: | The ID of the Okta app. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | \ No newline at end of file diff --git a/docs/models/operations/getremoteusersrequest.md b/docs/models/operations/getremoteusersrequest.md new file mode 100644 index 0000000..005848d --- /dev/null +++ b/docs/models/operations/getremoteusersrequest.md @@ -0,0 +1,31 @@ +# GetRemoteUsersRequest + +## Example Usage + +```typescript +import { GetRemoteUsersRequest } from "opal-mcp/models/operations"; + +let value: GetRemoteUsersRequest = { + thirdPartyProvider: [ + "GIT_HUB", + ], + userId: [ + "32acc112-21ff-4669-91c2-21e27683eaa1", + ], + remoteId: [ + "1234567890", + ], + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `thirdPartyProvider` | [components.ThirdPartyProviderEnum](../../models/components/thirdpartyproviderenum.md)[] | :heavy_minus_sign: | Filter remote users by their third party provider. | [
"GIT_HUB"
] | +| `userId` | *string*[] | :heavy_minus_sign: | Filter remote users by their user ID. | [
"32acc112-21ff-4669-91c2-21e27683eaa1"
] | +| `remoteId` | *string*[] | :heavy_minus_sign: | Filter remote users by their remote ID. | [
1234567890
] | +| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | \ No newline at end of file diff --git a/docs/models/operations/getrequestcommentsrequest.md b/docs/models/operations/getrequestcommentsrequest.md new file mode 100644 index 0000000..2187e95 --- /dev/null +++ b/docs/models/operations/getrequestcommentsrequest.md @@ -0,0 +1,17 @@ +# GetRequestCommentsRequest + +## Example Usage + +```typescript +import { GetRequestCommentsRequest } from "opal-mcp/models/operations"; + +let value: GetRequestCommentsRequest = { + id: "cc4736d2-191a-410a-a3dc-851eb2462f1e", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the request to get comments for | \ No newline at end of file diff --git a/docs/models/operations/getrequestsrequest.md b/docs/models/operations/getrequestsrequest.md index fdeaa57..1de26ee 100644 --- a/docs/models/operations/getrequestsrequest.md +++ b/docs/models/operations/getrequestsrequest.md @@ -6,6 +6,8 @@ import { GetRequestsRequest } from "opal-mcp/models/operations"; let value: GetRequestsRequest = { + requesterId: "37cb7e41-12ba-46da-92ff-030abe0450b1", + targetUserId: "37cb7e41-12ba-46da-92ff-030abe0450b1", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", pageSize: 200, }; @@ -17,6 +19,8 @@ let value: GetRequestsRequest = { | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `startDateFilter` | *string* | :heavy_minus_sign: | A start date filter for the events. | | | `endDateFilter` | *string* | :heavy_minus_sign: | An end date filter for the events. | | +| `requesterId` | *string* | :heavy_minus_sign: | Filter requests by their requester ID. | 37cb7e41-12ba-46da-92ff-030abe0450b1 | +| `targetUserId` | *string* | :heavy_minus_sign: | Filter requests by their target user ID. | 37cb7e41-12ba-46da-92ff-030abe0450b1 | | `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | | `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | | `showPendingOnly` | *boolean* | :heavy_minus_sign: | Boolean toggle for if it should only show pending requests. | | \ No newline at end of file diff --git a/docs/models/operations/getresourcesrequest.md b/docs/models/operations/getresourcesrequest.md index 72e135d..fcf3547 100644 --- a/docs/models/operations/getresourcesrequest.md +++ b/docs/models/operations/getresourcesrequest.md @@ -21,12 +21,13 @@ let value: GetResourcesRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | -| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | -| `resourceTypeFilter` | [components.ResourceTypeEnum](../../models/components/resourcetypeenum.md) | :heavy_minus_sign: | The resource type to filter by. | AWS_IAM_ROLE | -| `resourceIds` | *string*[] | :heavy_minus_sign: | The resource ids to filter by. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5",
"1b978423-db0a-4037-a4cf-f79c60cb67b3"
] | -| `resourceName` | *string* | :heavy_minus_sign: | Resource name. | example-name | -| `parentResourceId` | *string* | :heavy_minus_sign: | The parent resource id to filter by. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5"
] | -| `ancestorResourceId` | *string* | :heavy_minus_sign: | The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | +| `resourceTypeFilter` | [components.ResourceTypeEnum](../../models/components/resourcetypeenum.md) | :heavy_minus_sign: | The resource type to filter by. Required when remote_id is provided. | AWS_IAM_ROLE | +| `resourceIds` | *string*[] | :heavy_minus_sign: | The resource ids to filter by. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5",
"1b978423-db0a-4037-a4cf-f79c60cb67b3"
] | +| `resourceName` | *string* | :heavy_minus_sign: | Resource name. | example-name | +| `parentResourceId` | *string* | :heavy_minus_sign: | The parent resource id to filter by. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5"
] | +| `ancestorResourceId` | *string* | :heavy_minus_sign: | The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. | [
"4baf8423-db0a-4037-a4cf-f79c60cb67a5"
] | +| `remoteId` | *string* | :heavy_minus_sign: | Filter resources by their remote id. This will return all resources that have a remote id that matches the provided remote id. Note that this requires resource_type_filter to be provided. | | \ No newline at end of file diff --git a/docs/models/operations/getuarsresponse.md b/docs/models/operations/getuarsresponse.md index 888f6a7..5a773d7 100644 --- a/docs/models/operations/getuarsresponse.md +++ b/docs/models/operations/getuarsresponse.md @@ -18,6 +18,7 @@ let value: GetUARsResponse = { deadline: new Date("2022-07-14T06:59:59Z"), timeZone: "America/Los_Angeles", selfReviewAllowed: false, + instantlyActionReviews: false, uarScope: { admins: [ "f454d283-ca87-4a8a-bdbb-df212eca5353", @@ -43,6 +44,7 @@ let value: GetUARsResponse = { deadline: new Date("2022-08-14T06:59:59Z"), timeZone: "America/Los_Angeles", selfReviewAllowed: false, + instantlyActionReviews: false, uarScope: { admins: [ "f454d283-ca87-4a8a-bdbb-df212eca5353", diff --git a/docs/models/operations/getusergroupsrequest.md b/docs/models/operations/getusergroupsrequest.md new file mode 100644 index 0000000..1360566 --- /dev/null +++ b/docs/models/operations/getusergroupsrequest.md @@ -0,0 +1,21 @@ +# GetUserGroupsRequest + +## Example Usage + +```typescript +import { GetUserGroupsRequest } from "opal-mcp/models/operations"; + +let value: GetUserGroupsRequest = { + userId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user whose groups to return. | 1b978423-db0a-4037-a4cf-f79c60cb67b3 | +| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. Default is 200. | 200 | \ No newline at end of file diff --git a/docs/models/operations/getuserresourcesrequest.md b/docs/models/operations/getuserresourcesrequest.md new file mode 100644 index 0000000..1f6eeb7 --- /dev/null +++ b/docs/models/operations/getuserresourcesrequest.md @@ -0,0 +1,23 @@ +# GetUserResourcesRequest + +## Example Usage + +```typescript +import { GetUserResourcesRequest } from "opal-mcp/models/operations"; + +let value: GetUserResourcesRequest = { + userId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + limit: 200, + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeUnmanaged: false, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `limit` | *number* | :heavy_minus_sign: | Limit the number of results returned. | 200 | +| `cursor` | *string* | :heavy_minus_sign: | The pagination cursor value. | cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw | +| `includeUnmanaged` | *boolean* | :heavy_minus_sign: | Include user's access to unmanaged resources. | false | \ No newline at end of file diff --git a/docs/models/operations/removegroupcontaininggrouprequest.md b/docs/models/operations/removegroupcontaininggrouprequest.md index ed6eded..4222265 100644 --- a/docs/models/operations/removegroupcontaininggrouprequest.md +++ b/docs/models/operations/removegroupcontaininggrouprequest.md @@ -13,7 +13,7 @@ let value: RemoveGroupContainingGroupRequest = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `groupId` | *string* | :heavy_check_mark: | The ID of the group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | -| `containingGroupId` | *string* | :heavy_check_mark: | The ID of the containing group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `groupId` | *string* | :heavy_check_mark: | The ID of the member group to remove. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | +| `containingGroupId` | *string* | :heavy_check_mark: | The ID of the containing group. | 4baf8423-db0a-4037-a4cf-f79c60cb67a5 | \ No newline at end of file diff --git a/docs/sdks/accessrules/README.md b/docs/sdks/accessrules/README.md index 670a3a8..a847997 100644 --- a/docs/sdks/accessrules/README.md +++ b/docs/sdks/accessrules/README.md @@ -1,5 +1,4 @@ # AccessRules -(*accessRules*) ## Overview diff --git a/docs/sdks/apps/README.md b/docs/sdks/apps/README.md index 1d6d274..70fe950 100644 --- a/docs/sdks/apps/README.md +++ b/docs/sdks/apps/README.md @@ -1,5 +1,4 @@ # Apps -(*apps*) ## Overview @@ -7,8 +6,8 @@ Operations related to apps ### Available Operations -* [getApps](#getapps) - Returns a list of `App` objects. -* [getApp](#getapp) - Returns an `App` object. +* [getApps](#getapps) - Get apps +* [getApp](#getapp) - Get app by ID * [getSyncErrors](#getsyncerrors) - Returns a list of recent sync errors that have occurred since the last successful sync. ## getApps diff --git a/docs/sdks/bundles/README.md b/docs/sdks/bundles/README.md index 4fcf5a9..857d799 100644 --- a/docs/sdks/bundles/README.md +++ b/docs/sdks/bundles/README.md @@ -1,5 +1,4 @@ # Bundles -(*bundles*) ## Overview @@ -7,9 +6,9 @@ Operations related to bundles ### Available Operations -* [getBundles](#getbundles) - Returns a list of `Bundle` objects. +* [getBundles](#getbundles) - Get bundles * [createBundle](#createbundle) - Creates a bundle. -* [getBundle](#getbundle) - Returns a `Bundle` object. +* [getBundle](#getbundle) - Get bundle by ID * [deleteBundle](#deletebundle) - Deletes a bundle. * [updateBundle](#updatebundle) - Updates a bundle. * [getBundleResources](#getbundleresources) - Returns a list of `Resource` objects in a given bundle. diff --git a/docs/sdks/configurationtemplates/README.md b/docs/sdks/configurationtemplates/README.md index b6e37f0..1cb7d78 100644 --- a/docs/sdks/configurationtemplates/README.md +++ b/docs/sdks/configurationtemplates/README.md @@ -1,5 +1,4 @@ # ConfigurationTemplates -(*configurationTemplates*) ## Overview diff --git a/docs/sdks/delegations/README.md b/docs/sdks/delegations/README.md new file mode 100644 index 0000000..79201df --- /dev/null +++ b/docs/sdks/delegations/README.md @@ -0,0 +1,318 @@ +# Delegations + +## Overview + +Operations related to request reviewer delegations + +### Available Operations + +* [getDelegations](#getdelegations) - Get delegations +* [createDelegation](#createdelegation) - Creates a new request reviewer delegation to delegate access review requests from one user to another. +* [getDelegation](#getdelegation) - Get delegation by ID +* [deleteDelegation](#deletedelegation) - Deletes a delegation by its ID. + +## getDelegations + +Returns a list of request reviewer delegations configured for your organization. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.delegations.getDelegations({ + delegatorUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + delegateUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { delegationsGetDelegations } from "opal-mcp/funcs/delegationsGetDelegations.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await delegationsGetDelegations(opalMcp, { + delegatorUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + delegateUserId: "29827fb8-f2dd-4e80-9576-28e31e9934ac", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("delegationsGetDelegations failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetDelegationsRequest](../../models/operations/getdelegationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.PaginatedDelegationsList](../../models/components/paginateddelegationslist.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## createDelegation + +Creates a new request reviewer delegation to delegate access review requests from one user to another. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.delegations.createDelegation({ + delegatorUserId: "123e4567-e89b-12d3-a456-426614174000", + delegateUserId: "7c86c85d-0651-43e2-a748-d69d658418e8", + startTime: new Date("2023-10-01T12:00:00Z"), + endTime: new Date("2023-10-01T12:00:00Z"), + reason: "I need to be out of the office", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { delegationsCreateDelegation } from "opal-mcp/funcs/delegationsCreateDelegation.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await delegationsCreateDelegation(opalMcp, { + delegatorUserId: "123e4567-e89b-12d3-a456-426614174000", + delegateUserId: "7c86c85d-0651-43e2-a748-d69d658418e8", + startTime: new Date("2023-10-01T12:00:00Z"), + endTime: new Date("2023-10-01T12:00:00Z"), + reason: "I need to be out of the office", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("delegationsCreateDelegation failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.CreateDelegationRequest](../../models/components/createdelegationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.Delegation](../../models/components/delegation.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getDelegation + +Returns a specific delegation by its ID. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.delegations.getDelegation({ + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { delegationsGetDelegation } from "opal-mcp/funcs/delegationsGetDelegation.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await delegationsGetDelegation(opalMcp, { + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("delegationsGetDelegation failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetDelegationRequest](../../models/operations/getdelegationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.Delegation](../../models/components/delegation.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## deleteDelegation + +Deletes a delegation by its ID. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + await opalMcp.delegations.deleteDelegation({ + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", + }); + + +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { delegationsDeleteDelegation } from "opal-mcp/funcs/delegationsDeleteDelegation.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await delegationsDeleteDelegation(opalMcp, { + delegationId: "32acc112-21ff-4669-91c2-21e27683eaa1", + }); + if (res.ok) { + const { value: result } = res; + + } else { + console.log("delegationsDeleteDelegation failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeleteDelegationRequest](../../models/operations/deletedelegationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 8e175f6..3287983 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -1,5 +1,4 @@ # Events -(*events*) ## Overview diff --git a/docs/sdks/groupbindings/README.md b/docs/sdks/groupbindings/README.md index baff769..0f9077b 100644 --- a/docs/sdks/groupbindings/README.md +++ b/docs/sdks/groupbindings/README.md @@ -1,5 +1,4 @@ # GroupBindings -(*groupBindings*) ## Overview @@ -7,10 +6,10 @@ Operations related to group bindings ### Available Operations -* [getGroupBindings](#getgroupbindings) - Returns a list of `GroupBinding` objects. +* [getGroupBindings](#getgroupbindings) - Get group bindings * [createGroupBinding](#creategroupbinding) - Creates a group binding. * [updateGroupBindings](#updategroupbindings) - Bulk updates a list of group bindings. -* [getGroupBinding](#getgroupbinding) - Returns a `GroupBinding` object. +* [getGroupBinding](#getgroupbinding) - Get group binding by ID * [deleteGroupBinding](#deletegroupbinding) - Deletes a group binding. ## getGroupBindings diff --git a/docs/sdks/groups/README.md b/docs/sdks/groups/README.md index 84d4cfe..9afdd98 100644 --- a/docs/sdks/groups/README.md +++ b/docs/sdks/groups/README.md @@ -1,5 +1,4 @@ # Groups -(*groups*) ## Overview @@ -7,10 +6,10 @@ Operations related to groups ### Available Operations -* [getGroups](#getgroups) - Returns a list of groups for your organization. +* [getGroups](#getgroups) - Get groups * [updateGroups](#updategroups) - Bulk updates a list of groups. * [createGroup](#creategroup) - Creates an Opal group or [imports a remote group](https://docs.opal.dev/reference/end-system-objects). -* [getGroup](#getgroup) - Returns a `Group` object. +* [getGroup](#getgroup) - Get group by ID * [deleteGroup](#deletegroup) - Deletes a group. * [getGroupMessageChannels](#getgroupmessagechannels) - Gets the list of audit and reviewer message channels attached to a group. * [setGroupMessageChannels](#setgroupmessagechannels) - Sets the list of audit message channels attached to a group. @@ -18,9 +17,9 @@ Operations related to groups * [setGroupOnCallSchedules](#setgrouponcallschedules) - Sets the list of on call schedules attached to a group. * [getGroupResources](#getgroupresources) - Gets the list of resources that the group gives access to. * [setGroupResources](#setgroupresources) - Sets the list of resources that the group gives access to. -* [getGroupContainingGroups](#getgroupcontaininggroups) - Gets the list of groups that the group gives access to. +* [getGroupContainingGroups](#getgroupcontaininggroups) - Get nested groups * [addGroupContainingGroup](#addgroupcontaininggroup) - Creates a new containing group. -* [getGroupContainingGroup](#getgroupcontaininggroup) - Gets a specific containing group for a group. +* [getGroupContainingGroup](#getgroupcontaininggroup) - Get nested group by ID * [removeGroupContainingGroup](#removegroupcontaininggroup) - Removes a containing group from a group. * [addGroupResource](#addgroupresource) - Adds a resource to a group. * [getGroupVisibility](#getgroupvisibility) - Gets the visibility of this group. @@ -34,6 +33,7 @@ Operations related to groups * [updateGroupUser](#updategroupuser) - Updates a user's access level or duration in this group. * [addGroupUser](#addgroupuser) - Adds a user to this group. * [deleteGroupUser](#deletegroupuser) - Removes a user's access from this group. +* [getUserGroups](#getusergroups) - Returns all groups that the user is a member of. ## getGroups @@ -1917,6 +1917,8 @@ const opalMcp = new OpalMcp({ async function run() { const result = await opalMcp.groups.getGroupUsers({ groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, }); console.log(result); @@ -1942,6 +1944,8 @@ const opalMcp = new OpalMcpCore({ async function run() { const res = await groupsGetGroupUsers(opalMcp, { groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, }); if (res.ok) { const { value: result } = res; @@ -2216,6 +2220,83 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getUserGroups + +Returns all groups that the user is a member of. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.groups.getUserGroups({ + userId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { groupsGetUserGroups } from "opal-mcp/funcs/groupsGetUserGroups.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await groupsGetUserGroups(opalMcp, { + userId: "1b978423-db0a-4037-a4cf-f79c60cb67b3", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("groupsGetUserGroups failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetUserGroupsRequest](../../models/operations/getusergroupsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.GroupUserList](../../models/components/groupuserlist.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/idpgroupmappings/README.md b/docs/sdks/idpgroupmappings/README.md index f855148..c496c7b 100644 --- a/docs/sdks/idpgroupmappings/README.md +++ b/docs/sdks/idpgroupmappings/README.md @@ -1,5 +1,4 @@ # IdpGroupMappings -(*idpGroupMappings*) ## Overview @@ -9,6 +8,13 @@ Operations related to IDP group mappings * [getIdpGroupMappings](#getidpgroupmappings) - Returns the configured set of available `IdpGroupMapping` objects for an Okta app. * [updateIdpGroupMappings](#updateidpgroupmappings) - Updates the list of available `IdpGroupMapping` objects for an Okta app. +* [getIdpGroupMapping](#getidpgroupmapping) - Gets an `IdpGroupMapping` object for an Okta app and group. +* [createIdpGroupMapping](#createidpgroupmapping) - Creates or updates an individual `IdpGroupMapping` object (upsert operation). + +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated + * [deleteIdpGroupMappings](#deleteidpgroupmappings) - Deletes an `IdpGroupMapping` object. ## getIdpGroupMappings @@ -171,13 +177,168 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## getIdpGroupMapping + +Gets an `IdpGroupMapping` object for an Okta app and group. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.idpGroupMappings.getIdpGroupMapping({ + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { idpGroupMappingsGetIdpGroupMapping } from "opal-mcp/funcs/idpGroupMappingsGetIdpGroupMapping.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await idpGroupMappingsGetIdpGroupMapping(opalMcp, { + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("idpGroupMappingsGetIdpGroupMapping failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetIdpGroupMappingRequest](../../models/operations/getidpgroupmappingrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.IdpGroupMapping](../../models/components/idpgroupmapping.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## createIdpGroupMapping + +Creates or updates an individual `IdpGroupMapping` object (upsert operation). + +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated + + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.idpGroupMappings.createIdpGroupMapping({ + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { idpGroupMappingsCreateIdpGroupMapping } from "opal-mcp/funcs/idpGroupMappingsCreateIdpGroupMapping.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await idpGroupMappingsCreateIdpGroupMapping(opalMcp, { + appResourceId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + groupId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("idpGroupMappingsCreateIdpGroupMapping failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CreateIdpGroupMappingRequest](../../models/operations/createidpgroupmappingrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.IdpGroupMapping](../../models/components/idpgroupmapping.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## deleteIdpGroupMappings Deletes an `IdpGroupMapping` object. ### Example Usage - + ```typescript import { OpalMcp } from "opal-mcp"; diff --git a/docs/sdks/messagechannels/README.md b/docs/sdks/messagechannels/README.md index 960ff3e..9e3c9b5 100644 --- a/docs/sdks/messagechannels/README.md +++ b/docs/sdks/messagechannels/README.md @@ -1,5 +1,4 @@ # MessageChannels -(*messageChannels*) ## Overview @@ -7,9 +6,9 @@ Operations related to message channels ### Available Operations -* [getMessageChannels](#getmessagechannels) - Returns a list of `MessageChannel` objects. +* [getMessageChannels](#getmessagechannels) - Get message channels * [createMessageChannel](#createmessagechannel) - Creates a `MessageChannel` objects. -* [getMessageChannel](#getmessagechannel) - Gets a `MessageChannel` object. +* [getMessageChannel](#getmessagechannel) - Get message channel by ID ## getMessageChannels diff --git a/docs/sdks/nonhumanidentities/README.md b/docs/sdks/nonhumanidentities/README.md index cdf5776..d9591d6 100644 --- a/docs/sdks/nonhumanidentities/README.md +++ b/docs/sdks/nonhumanidentities/README.md @@ -1,5 +1,4 @@ # NonHumanIdentities -(*nonHumanIdentities*) ## Overview diff --git a/docs/sdks/oncallschedules/README.md b/docs/sdks/oncallschedules/README.md index adfafe0..03aba01 100644 --- a/docs/sdks/oncallschedules/README.md +++ b/docs/sdks/oncallschedules/README.md @@ -1,5 +1,4 @@ # OnCallSchedules -(*onCallSchedules*) ## Overview @@ -7,9 +6,9 @@ Operations related to on-call schedules ### Available Operations -* [getOnCallSchedules](#getoncallschedules) - Returns a list of `OnCallSchedule` objects. +* [getOnCallSchedules](#getoncallschedules) - Get on call schedules * [createOnCallSchedule](#createoncallschedule) - Creates a `OnCallSchedule` objects. -* [getOnCallSchedule](#getoncallschedule) - Gets a `OnCallSchedule` object. +* [getOnCallSchedule](#getoncallschedule) - Get on call schedule by ID ## getOnCallSchedules diff --git a/docs/sdks/owners/README.md b/docs/sdks/owners/README.md index aa0ea47..cc539be 100644 --- a/docs/sdks/owners/README.md +++ b/docs/sdks/owners/README.md @@ -1,5 +1,4 @@ # Owners -(*owners*) ## Overview @@ -7,10 +6,10 @@ Operations related to owners ### Available Operations -* [getOwners](#getowners) - Returns a list of `Owner` objects. +* [getOwners](#getowners) - Get owners * [createOwner](#createowner) - Creates an owner. * [updateOwners](#updateowners) - Bulk updates a list of owners. -* [getOwner](#getowner) - Returns an `Owner` object. +* [getOwner](#getowner) - Get owner by ID * [deleteOwner](#deleteowner) - Deletes an owner. * [getOwnerFromName](#getownerfromname) - Returns an `Owner` object. Does not support owners with `/` in their name, use /owners?name=... instead. * [getOwnerUsers](#getownerusers) - Gets the list of users for this owner, in escalation priority order if applicable. diff --git a/docs/sdks/requests/README.md b/docs/sdks/requests/README.md index e561ae6..e861fd5 100644 --- a/docs/sdks/requests/README.md +++ b/docs/sdks/requests/README.md @@ -1,5 +1,4 @@ # Requests -(*requests*) ## Overview @@ -7,11 +6,14 @@ Operations related to requests ### Available Operations -* [getRequests](#getrequests) - Returns a list of requests for your organization that is visible by the admin. +* [getRequests](#getrequests) - Get requests * [createRequest](#createrequest) - Create an access request -* [~~getRequestsRelay~~](#getrequestsrelay) - Returns a paginated list of requests using Relay-style cursor pagination. :warning: **Deprecated** -* [getRequest](#getrequest) - Returns a request by ID. +* [~~getRequestsRelay~~](#getrequestsrelay) - Get requests via Relay :warning: **Deprecated** +* [getRequest](#getrequest) - Get request by ID * [approveRequest](#approverequest) - Approve an access request +* [denyRequest](#denyrequest) - Deny an access request +* [getRequestComments](#getrequestcomments) - Returns a list of comments for a specific request. +* [createRequestComment](#createrequestcomment) - Comment on an access request ## getRequests @@ -31,6 +33,8 @@ async function run() { const result = await opalMcp.requests.getRequests({ startDateFilter: "2021-11-01T00:00:00Z", endDateFilter: "2021-11-12T00:00:00Z", + requesterId: "37cb7e41-12ba-46da-92ff-030abe0450b1", + targetUserId: "37cb7e41-12ba-46da-92ff-030abe0450b1", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", pageSize: 200, }); @@ -61,6 +65,8 @@ async function run() { const res = await requestsGetRequests(opalMcp, { startDateFilter: "2021-11-01T00:00:00Z", endDateFilter: "2021-11-12T00:00:00Z", + requesterId: "37cb7e41-12ba-46da-92ff-030abe0450b1", + targetUserId: "37cb7e41-12ba-46da-92ff-030abe0450b1", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", pageSize: 200, }); @@ -460,6 +466,239 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## denyRequest + +Deny an access request + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.requests.denyRequest({ + id: "83015915-58ae-4cce-b92d-608ff073ece1", + requestBody: { + comment: "Denied due to insufficient justification", + level: "REGULAR", + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { requestsDenyRequest } from "opal-mcp/funcs/requestsDenyRequest.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await requestsDenyRequest(opalMcp, { + id: "83015915-58ae-4cce-b92d-608ff073ece1", + requestBody: { + comment: "Denied due to insufficient justification", + level: "REGULAR", + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("requestsDenyRequest failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DenyRequestRequest](../../models/operations/denyrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.DenyRequestResponse](../../models/operations/denyrequestresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getRequestComments + +Returns a list of comments for a specific request. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.requests.getRequestComments({ + id: "bfb1ef34-8ecf-46e5-bdf4-38abe7c6da89", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { requestsGetRequestComments } from "opal-mcp/funcs/requestsGetRequestComments.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await requestsGetRequestComments(opalMcp, { + id: "bfb1ef34-8ecf-46e5-bdf4-38abe7c6da89", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("requestsGetRequestComments failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetRequestCommentsRequest](../../models/operations/getrequestcommentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.RequestCommentList](../../models/components/requestcommentlist.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## createRequestComment + +Comment on an access request + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.requests.createRequestComment({ + id: "4a929b40-a2e3-4dca-b8ec-1af35bdc7e43", + requestBody: { + comment: "The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design", + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { requestsCreateRequestComment } from "opal-mcp/funcs/requestsCreateRequestComment.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await requestsCreateRequestComment(opalMcp, { + id: "4a929b40-a2e3-4dca-b8ec-1af35bdc7e43", + requestBody: { + comment: "The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design", + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("requestsCreateRequestComment failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CreateRequestCommentRequest](../../models/operations/createrequestcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.CreateRequestCommentResponse](../../models/operations/createrequestcommentresponse.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/resources/README.md b/docs/sdks/resources/README.md index a794cac..5d851f2 100644 --- a/docs/sdks/resources/README.md +++ b/docs/sdks/resources/README.md @@ -1,5 +1,4 @@ # Resources -(*resources*) ## Overview @@ -7,10 +6,10 @@ Operations related to resources ### Available Operations -* [getResources](#getresources) - Returns a list of resources for your organization. +* [getResources](#getresources) - Get resources * [updateResources](#updateresources) - Bulk updates a list of resources. * [createResource](#createresource) - Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects) for details about importing resources. -* [getResource](#getresource) - Retrieves a resource. +* [getResource](#getresource) - Get resource by ID * [deleteResource](#deleteresource) - Deletes a resource. * [getResourceMessageChannels](#getresourcemessagechannels) - Gets the list of audit message channels attached to a resource. * [setResourceMessageChannels](#setresourcemessagechannels) - Sets the list of audit message channels attached to a resource. @@ -21,17 +20,18 @@ Operations related to resources * [getResourceReviewerStages](#getresourcereviewerstages) - Gets the list reviewer stages for a resource. * [setResourceReviewerStages](#setresourcereviewerstages) - Sets the list of reviewer stages for a resource. * [getResourceNhis](#getresourcenhis) - Gets the list of non-human identities with access to this resource. -* [getResourceUsers](#getresourceusers) - Gets the list of users for this resource. +* [getResourceUsers](#getresourceusers) - Get resource users * [addResourceNhi](#addresourcenhi) - Gives a non-human identity access to this resource. * [deleteResourceNhi](#deleteresourcenhi) - Removes a non-human identity's direct access from this resource. * [addResourceUser](#addresourceuser) - Adds a user to this resource. * [updateResourceUser](#updateresourceuser) - Updates a user's access level or duration on this resource. * [deleteResourceUser](#deleteresourceuser) - Removes a user's direct access from this resource. -* [getResourceUser](#getresourceuser) - Returns information about a specific user's access to a resource. +* [getResourceUser](#getresourceuser) - Get resource user * [~~resourceUserAccessStatusRetrieve~~](#resourceuseraccessstatusretrieve) - Get user's access status to a resource. :warning: **Deprecated** * [getResourceTags](#getresourcetags) - Returns all tags applied to the resource. * [getResourceScopedRolePermissions](#getresourcescopedrolepermissions) - Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. * [setResourceScopedRolePermissions](#setresourcescopedrolepermissions) - Sets all the scoped role permissions on an OPAL_SCOPED_ROLE resource. +* [getUserResources](#getuserresources) - Gets the list of resources for this user. ## getResources @@ -260,13 +260,7 @@ async function run() { resourceType: "OKTA_ROLE", appId: "f454d283-ca87-4a8a-bdbb-df212eca5353", remoteResourceId: "API_ACCESS_MANAGEMENT_ADMIN-51d203da-313a-4fd9-8fcf-420ce6312345", - metadata: "{\n" + - " \"okta_directory_role\":\n" + - " {\n" + - " \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n" + - " \"role_type\": \"SUPER_ADMIN\",\n" + - " },\n" + - "}", + metadata: "{\n \"okta_directory_role\":\n {\n \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n \"role_type\": \"SUPER_ADMIN\",\n },\n}", }); console.log(result); @@ -296,13 +290,7 @@ async function run() { resourceType: "OKTA_ROLE", appId: "f454d283-ca87-4a8a-bdbb-df212eca5353", remoteResourceId: "API_ACCESS_MANAGEMENT_ADMIN-51d203da-313a-4fd9-8fcf-420ce6312345", - metadata: "{\n" + - " \"okta_directory_role\":\n" + - " {\n" + - " \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n" + - " \"role_type\": \"SUPER_ADMIN\",\n" + - " },\n" + - "}", + metadata: "{\n \"okta_directory_role\":\n {\n \"role_id\": \"SUPER_ADMIN-b52aa037-4a35-4ac3-9350-f6260fd12345\",\n \"role_type\": \"SUPER_ADMIN\",\n },\n}", }); if (res.ok) { const { value: result } = res; @@ -2084,6 +2072,85 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getUserResources + +Gets the list of resources for this user. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.resources.getUserResources({ + userId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + limit: 200, + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeUnmanaged: false, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { resourcesGetUserResources } from "opal-mcp/funcs/resourcesGetUserResources.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await resourcesGetUserResources(opalMcp, { + userId: "4baf8423-db0a-4037-a4cf-f79c60cb67a5", + limit: 200, + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeUnmanaged: false, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("resourcesGetUserResources failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetUserResourcesRequest](../../models/operations/getuserresourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.ResourceAccessUserList](../../models/components/resourceaccessuserlist.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 39af1d9..3a39346 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -1,5 +1,4 @@ # Sessions -(*sessions*) ## Overview diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 215eebe..189eaf5 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -1,5 +1,4 @@ # Tags -(*tags*) ## Overview @@ -7,11 +6,11 @@ Operations related to tags ### Available Operations -* [getTagByID](#gettagbyid) - UNSTABLE. May be removed at any time. Gets a tag with the given id. +* [getTagByID](#gettagbyid) - Get tag by ID * [deleteTagByID](#deletetagbyid) - UNSTABLE. May be removed at any time. Deletes a tag with the given id. * [getTag](#gettag) - Gets a tag with the given key and value. * [createTag](#createtag) - Creates a tag with the given key and value. -* [getTags](#gettags) - Returns a list of tags created by your organization. +* [getTags](#gettags) - Get tags * [addUserTag](#addusertag) - Applies a tag to a user. * [removeUserTag](#removeusertag) - Removes a tag from a user. * [addGroupTag](#addgrouptag) - Applies a tag to a group. diff --git a/docs/sdks/uars/README.md b/docs/sdks/uars/README.md index d37b6dd..b1523e6 100644 --- a/docs/sdks/uars/README.md +++ b/docs/sdks/uars/README.md @@ -1,5 +1,4 @@ # Uars -(*uars*) ## Overview diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index cbf16f8..e949900 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1,5 +1,4 @@ # Users -(*users*) ## Overview @@ -22,6 +21,7 @@ Authentication: - Respects standard Opal authorization rules * [getUsers](#getusers) - Returns a list of users for your organization. +* [getRemoteUsers](#getremoteusers) - Returns a list of remote users for your organization. * [getUserTags](#getusertags) - Returns all tags applied to the user. ## user @@ -191,6 +191,99 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## getRemoteUsers + +Returns a list of remote users for your organization. + +### Example Usage + + +```typescript +import { OpalMcp } from "opal-mcp"; + +const opalMcp = new OpalMcp({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const result = await opalMcp.users.getRemoteUsers({ + thirdPartyProvider: [ + "GIT_HUB", + ], + userId: [ + "32acc112-21ff-4669-91c2-21e27683eaa1", + ], + remoteId: [ + "1234567890", + ], + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { OpalMcpCore } from "opal-mcp/core.js"; +import { usersGetRemoteUsers } from "opal-mcp/funcs/usersGetRemoteUsers.js"; + +// Use `OpalMcpCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const opalMcp = new OpalMcpCore({ + bearerAuth: process.env["OPALMCP_BEARER_AUTH"] ?? "", +}); + +async function run() { + const res = await usersGetRemoteUsers(opalMcp, { + thirdPartyProvider: [ + "GIT_HUB", + ], + userId: [ + "32acc112-21ff-4669-91c2-21e27683eaa1", + ], + remoteId: [ + "1234567890", + ], + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 200, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("usersGetRemoteUsers failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetRemoteUsersRequest](../../models/operations/getremoteusersrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.PaginatedRemoteUsersList](../../models/components/paginatedremoteuserslist.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## getUserTags Returns all tags applied to the user. diff --git a/examples/.env.template b/examples/.env.template new file mode 100644 index 0000000..a9aace7 --- /dev/null +++ b/examples/.env.template @@ -0,0 +1,14 @@ +# opal-mcp SDK Environment Variables +# Copy this file to .env and fill in your actual values +# DO NOT commit the .env file to version control + +# Security Configuration +# The SDK supports loading security credentials from environment variables +# with the prefix: OPALMCP_ +# +# Security environment variables: +OPALMCP_BEARER_AUTH=your_bearer_auth_here + +# Debug Configuration +# Enable HTTP request/response logging for debugging +OPALMCP_DEBUG=true diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..7cac3d4 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,31 @@ +# opal-mcp Examples + +This directory contains example scripts demonstrating how to use the opal-mcp SDK. + +## Prerequisites + +- Node.js (v18 or higher) +- npm + +## Setup + +1. Copy `.env.template` to `.env`: + ```bash + cp .env.template .env + ``` + +2. Edit `.env` and add your actual credentials (API keys, tokens, etc.) + +## Running the Examples + +To run an example file from the examples directory: + +```bash +npm run build && npx tsx example.ts +``` + +## Creating new examples + +Duplicate an existing example file, they won't be overwritten by the generation process. + + diff --git a/examples/appsGetApps.example.ts b/examples/appsGetApps.example.ts index fe722e2..6dc74b4 100644 --- a/examples/appsGetApps.example.ts +++ b/examples/appsGetApps.example.ts @@ -8,7 +8,7 @@ dotenv.config(); * Example usage of the opal-mcp SDK * * To run this example from the examples directory: - * npm run build && npx tsx appsGetApps.ts + * npm run build && npx tsx appsGetApps.example.ts */ import { OpalMcp } from "opal-mcp"; @@ -18,7 +18,7 @@ const opalMcp = new OpalMcp({ }); async function main() { - const result = await opalMcp.getApps({ + const result = await opalMcp.apps.getApps({ appTypeFilter: [ "OKTA_DIRECTORY", "GIT_HUB", diff --git a/examples/package-lock.json b/examples/package-lock.json new file mode 100644 index 0000000..839a5a1 --- /dev/null +++ b/examples/package-lock.json @@ -0,0 +1,620 @@ +{ + "name": "opal-mcp-examples", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "opal-mcp-examples", + "version": "1.0.0", + "dependencies": { + "opal-mcp": "file:.." + }, + "devDependencies": { + "@types/node": "^20.0.0", + "dotenv": "^16.4.5", + "tsx": "^4.19.2" + } + }, + "..": { + "name": "opal-mcp", + "version": "0.8.0", + "dependencies": { + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" + }, + "bin": { + "mcp": "bin/mcp-server.js" + }, + "devDependencies": { + "@eslint/js": "^9.19.0", + "@stricli/core": "^1.1.1", + "@types/express": "^4.17.21", + "bun": "1.2.17", + "bun-types": "1.2.17", + "eslint": "^9.19.0", + "express": "^4.21.2", + "globals": "^15.14.0", + "tshy": "^2.0.0", + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", + "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", + "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", + "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", + "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", + "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", + "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", + "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", + "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", + "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", + "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", + "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", + "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", + "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", + "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", + "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", + "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", + "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", + "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", + "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", + "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", + "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", + "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", + "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", + "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", + "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", + "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@types/node": { + "version": "20.19.27", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.27.tgz", + "integrity": "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/esbuild": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", + "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.2", + "@esbuild/android-arm": "0.27.2", + "@esbuild/android-arm64": "0.27.2", + "@esbuild/android-x64": "0.27.2", + "@esbuild/darwin-arm64": "0.27.2", + "@esbuild/darwin-x64": "0.27.2", + "@esbuild/freebsd-arm64": "0.27.2", + "@esbuild/freebsd-x64": "0.27.2", + "@esbuild/linux-arm": "0.27.2", + "@esbuild/linux-arm64": "0.27.2", + "@esbuild/linux-ia32": "0.27.2", + "@esbuild/linux-loong64": "0.27.2", + "@esbuild/linux-mips64el": "0.27.2", + "@esbuild/linux-ppc64": "0.27.2", + "@esbuild/linux-riscv64": "0.27.2", + "@esbuild/linux-s390x": "0.27.2", + "@esbuild/linux-x64": "0.27.2", + "@esbuild/netbsd-arm64": "0.27.2", + "@esbuild/netbsd-x64": "0.27.2", + "@esbuild/openbsd-arm64": "0.27.2", + "@esbuild/openbsd-x64": "0.27.2", + "@esbuild/openharmony-arm64": "0.27.2", + "@esbuild/sunos-x64": "0.27.2", + "@esbuild/win32-arm64": "0.27.2", + "@esbuild/win32-ia32": "0.27.2", + "@esbuild/win32-x64": "0.27.2" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz", + "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/opal-mcp": { + "resolved": "..", + "link": true + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.27.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + } + } +} diff --git a/examples/package.json b/examples/package.json new file mode 100644 index 0000000..d673d44 --- /dev/null +++ b/examples/package.json @@ -0,0 +1,18 @@ +{ + "name": "opal-mcp-examples", + "version": "1.0.0", + "private": true, + "scripts": { + "build:parent": "cd .. && npm i && npm run build && cd -", + "build:examples": "npm i", + "build": "npm run build:parent && npm run build:examples" + }, + "devDependencies": { + "@types/node": "^20.0.0", + "dotenv": "^16.4.5", + "tsx": "^4.19.2" + }, + "dependencies": { + "opal-mcp": "file:.." + } +} \ No newline at end of file diff --git a/jsr.json b/jsr.json index dea8095..df02138 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "opal-mcp", - "version": "0.7.0", + "version": "0.8.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/openapi.yaml b/openapi.yaml index d68e77a..509fa91 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -20,6 +20,8 @@ tags: description: Operations related to bundles - name: configuration-templates description: Operations related to configuration templates + - name: delegations + description: Operations related to request reviewer delegations - name: events description: Operations related to events - name: groups @@ -40,8 +42,6 @@ tags: description: Operations related to requests - name: resources description: Operations related to resources - - name: scoped-role-permissions - description: Operations related to scoped role permissions - name: sessions description: Operations related to sessions - name: tags @@ -53,6 +53,7 @@ tags: paths: /apps: get: + summary: Get apps description: Returns a list of `App` objects. operationId: getApps parameters: @@ -95,6 +96,7 @@ paths: disabled: false /apps/{app_id}: get: + summary: Get app by ID description: Returns an `App` object. operationId: getApp parameters: @@ -124,6 +126,7 @@ paths: disabled: false /bundles: get: + summary: Get bundles description: Returns a list of `Bundle` objects. operationId: getBundles parameters: @@ -205,6 +208,7 @@ paths: disabled: false /bundles/{bundle_id}: get: + summary: Get bundle by ID description: Returns a `Bundle` object. operationId: getBundle parameters: @@ -848,6 +852,7 @@ paths: nextCursor: $.next /groups: get: + summary: Get groups description: Returns a list of groups for your organization. operationId: getGroups parameters: @@ -978,6 +983,7 @@ paths: disabled: false /groups/{group_id}: get: + summary: Get group by ID description: Returns a `Group` object. operationId: getGroup parameters: @@ -1224,6 +1230,7 @@ paths: disabled: false /groups/{group_id}/containing-groups: get: + summary: Get nested groups description: Gets the list of groups that the group gives access to. operationId: get_group_containing_groups parameters: @@ -1287,6 +1294,7 @@ paths: disabled: false /groups/{group_id}/containing-groups/{containing_group_id}: get: + summary: Get nested group by ID description: Gets a specific containing group for a group. operationId: get_group_containing_group parameters: @@ -1328,7 +1336,7 @@ paths: description: Removes a containing group from a group. operationId: remove_group_containing_group parameters: - - description: The ID of the group. + - description: The ID of the member group to remove. example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 explode: false in: path @@ -1678,6 +1686,25 @@ paths: format: uuid type: string style: simple + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -1872,8 +1899,57 @@ paths: x-speakeasy-mcp: scopes: [write] disabled: false + /groups/users/{user_id}: + get: + description: Returns all groups that the user is a member of. + operationId: get_user_groups + parameters: + - description: The ID of the user whose groups to return. + name: user_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GroupUserList" + description: The groups that the user is a member of. + security: + - BearerAuth: [] + tags: + - groups + x-speakeasy-mcp: + scopes: [read] + disabled: false /group-bindings: get: + summary: Get group bindings description: Returns a list of `GroupBinding` objects. operationId: getGroupBindings parameters: @@ -1966,6 +2042,7 @@ paths: disabled: false /group-bindings/{group_binding_id}: get: + summary: Get group binding by ID description: Returns a `GroupBinding` object. operationId: getGroupBinding parameters: @@ -2091,7 +2168,107 @@ paths: x-speakeasy-mcp: scopes: [write] disabled: false - /idp-group-mappings/{app_resource_id}/{group_id}/: + /idp-group-mappings/{app_resource_id}/groups/{group_id}: + get: + description: Gets an `IdpGroupMapping` object for an Okta app and group. + operationId: getIdpGroupMapping + parameters: + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/IdpGroupMapping" + description: The `IdpGroupMapping` object for the Okta app and group. + security: + - BearerAuth: [] + tags: + - idp-group-mappings + x-speakeasy-mcp: + scopes: [read] + disabled: false + post: + description: | + Creates or updates an individual `IdpGroupMapping` object (upsert operation). + + **Behavior:** + - If the mapping doesn't exist, it will be created with the provided values + - If the mapping exists, only the fields provided in the request will be updated + operationId: createIdpGroupMapping + parameters: + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + required: false + content: + application/json: + schema: + properties: + alias: + description: Optional alias for the group mapping + type: string + nullable: true + hidden_from_end_user: + description: | + Whether this mapping should be hidden from end users. + - **New mappings**: If not provided, defaults to `false` + - **Existing mappings**: If not provided, existing value is preserved (no change) + - **Explicit values**: If provided, value is updated to the specified boolean + type: boolean + nullable: true + type: object + responses: + "200": + description: The IDP group mapping was successfully created or updated. + content: + application/json: + schema: + $ref: "#/components/schemas/IdpGroupMapping" + security: + - BearerAuth: [] + tags: + - idp-group-mappings + x-speakeasy-mcp: + scopes: [write] + disabled: false delete: description: Deletes an `IdpGroupMapping` object. operationId: delete_idp_group_mappings @@ -2128,6 +2305,7 @@ paths: disabled: false /owners: get: + summary: Get owners description: Returns a list of `Owner` objects. operationId: get_owners parameters: @@ -2234,6 +2412,7 @@ paths: disabled: false /owners/{owner_id}: get: + summary: Get owner by ID description: Returns an `Owner` object. operationId: getOwner parameters: @@ -2378,6 +2557,7 @@ paths: disabled: false /requests: get: + summary: Get requests description: Returns a list of requests for your organization that is visible by the admin. operationId: getRequests parameters: @@ -2411,6 +2591,24 @@ paths: schema: type: string style: form + - description: Filter requests by their requester ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: requester_id + required: false + schema: + format: uuid + type: string + style: form + - description: Filter requests by their target user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: target_user_id + required: false + schema: + format: uuid + type: string + style: form - description: The pagination cursor value. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw explode: true @@ -2494,6 +2692,7 @@ paths: disabled: false /requests/relay: get: + summary: Get requests via Relay description: Returns a paginated list of requests using Relay-style cursor pagination. operationId: getRequestsRelay deprecated: true @@ -2569,6 +2768,7 @@ paths: disabled: false /requests/{id}: get: + summary: Get request by ID description: Returns a request by ID. operationId: getRequest parameters: @@ -2617,10 +2817,7 @@ paths: type: object properties: level: - type: string - enum: [REGULAR, ADMIN] - description: "The decision level for the approval" - example: "REGULAR" + $ref: "#/components/schemas/RequestApprovalEnum" comment: type: string description: "Optional comment for the approval" @@ -2637,11 +2834,119 @@ paths: properties: request: $ref: "#/components/schemas/Request" - taskId: - type: string - format: uuid - description: "ID of the task created for propagating access" - example: "c6f85bfb-3fe7-4936-a68d-7a5e1e3d0f6a" + security: + - BearerAuth: [] + tags: + - requests + x-speakeasy-mcp: + scopes: [write] + disabled: false + /requests/{id}/deny: + post: + description: "Deny an access request" + operationId: "denyRequest" + parameters: + - description: "The ID of the request to deny" + in: path + name: id + required: true + schema: + type: string + format: uuid + requestBody: + description: Denial parameters + required: true + content: + application/json: + schema: + type: object + properties: + comment: + type: string + description: "Comment for the denial" + example: "Denied due to insufficient justification" + level: + $ref: "#/components/schemas/RequestApprovalEnum" + required: + - comment + responses: + "200": + description: "Request successfully denied" + content: + application/json: + schema: + type: object + properties: + request: + $ref: "#/components/schemas/Request" + security: + - BearerAuth: [] + tags: + - requests + x-speakeasy-mcp: + scopes: [write] + disabled: false + /requests/{id}/comments: + get: + description: Returns a list of comments for a specific request. + operationId: getRequestComments + parameters: + - description: "The ID of the request to get comments for" + in: path + name: id + required: true + schema: + type: string + format: uuid + responses: + "200": + description: A list of comments associated with the specified request. + content: + application/json: + schema: + type: object + $ref: "#/components/schemas/RequestCommentList" + security: + - BearerAuth: [] + tags: + - requests + x-speakeasy-mcp: + scopes: [read] + disabled: false + post: + description: "Comment on an access request" + operationId: "createRequestComment" + parameters: + - description: "The ID of the request to comment on" + in: path + name: id + required: true + schema: + type: string + format: uuid + requestBody: + description: Comment parameters + required: true + content: + application/json: + schema: + type: object + properties: + comment: + type: string + description: "comment" + required: + - comment + responses: + "200": + description: "Request successfully commented" + content: + application/json: + schema: + type: object + properties: + request: + $ref: "#/components/schemas/Request" security: - BearerAuth: [] tags: @@ -2651,6 +2956,7 @@ paths: disabled: false /resources: get: + summary: Get resources description: Returns a list of resources for your organization. operationId: getResources parameters: @@ -2673,7 +2979,7 @@ paths: type: integer maximum: 1000 style: form - - description: The resource type to filter by. + - description: The resource type to filter by. Required when remote_id is provided. example: AWS_IAM_ROLE explode: true in: query @@ -2728,6 +3034,13 @@ paths: format: uuid type: string style: form + - description: Filter resources by their remote id. This will return all resources that have a remote id that matches the provided remote id. Note that this requires resource_type_filter to be provided. + in: query + name: remote_id + required: false + schema: + type: string + style: form responses: "200": content: @@ -2803,6 +3116,7 @@ paths: disabled: false /resources/{resource_id}: get: + summary: Get resource by ID description: Retrieves a resource. operationId: get_resource parameters: @@ -3214,6 +3528,7 @@ paths: disabled: false /resources/{resource_id}/users: get: + summary: Get resource users description: Gets the list of users for this resource. operationId: get_resource_users parameters: @@ -3535,6 +3850,7 @@ paths: scopes: [write] disabled: false get: + summary: Get resource user description: Returns information about a specific user's access to a resource. operationId: getResourceUser parameters: @@ -3719,7 +4035,6 @@ paths: - BearerAuth: [] tags: - resources - - scoped-role-permissions x-speakeasy-mcp: scopes: [read] disabled: false @@ -3754,10 +4069,65 @@ paths: - BearerAuth: [] tags: - resources - - scoped-role-permissions x-speakeasy-mcp: scopes: [write] disabled: false + /resources/users/{user_id}: + get: + description: Gets the list of resources for this user. + operationId: get_user_resources + parameters: + - description: The ID of the user. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Limit the number of results returned. + example: 200 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Include user's access to unmanaged resources. + example: false + explode: true + in: query + name: include_unmanaged + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ResourceAccessUserList" + description: List of resources user has access to. + security: + - BearerAuth: [] + tags: + - resources + x-speakeasy-mcp: + scopes: [read] + disabled: false /sessions: get: description: Returns a list of `Session` objects. @@ -3897,6 +4267,75 @@ paths: outputs: results: $.results nextCursor: $.next + /users/remote_users: + get: + description: Returns a list of remote users for your organization. + operationId: getRemoteUsers + parameters: + - description: Filter remote users by their third party provider. + example: [GIT_HUB] + in: query + name: third_party_provider + required: false + schema: + type: array + items: + $ref: "#/components/schemas/ThirdPartyProviderEnum" + style: form + - description: Filter remote users by their user ID. + example: [32acc112-21ff-4669-91c2-21e27683eaa1] + in: query + name: user_id + required: false + schema: + type: array + items: + type: string + format: uuid + style: form + - description: Filter remote users by their remote ID. + example: [1234567890] + in: query + name: remote_id + required: false + schema: + type: array + items: + type: string + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedRemoteUsersList" + description: One page worth users in your organization. + security: + - BearerAuth: [] + tags: + - users + x-speakeasy-mcp: + scopes: [read] + disabled: false /users/{user_id}/tags: get: description: Returns all tags applied to the user. @@ -4015,6 +4454,7 @@ paths: disabled: false /tag/{tag_id}: get: + summary: Get tag by ID description: UNSTABLE. May be removed at any time. Gets a tag with the given id. operationId: get_tag_by_ID parameters: @@ -4159,6 +4599,7 @@ paths: disabled: false /tags: get: + summary: Get tags description: Returns a list of tags created by your organization. operationId: getTags parameters: @@ -4422,6 +4863,7 @@ paths: disabled: false /message-channels: get: + summary: Get message channels description: Returns a list of `MessageChannel` objects. operationId: get_message_channels responses: @@ -4464,6 +4906,7 @@ paths: disabled: false /message-channels/{message_channel_id}: get: + summary: Get message channel by ID description: Gets a `MessageChannel` object. operationId: get_message_channel parameters: @@ -4493,6 +4936,7 @@ paths: disabled: false /on-call-schedules: get: + summary: Get on call schedules description: Returns a list of `OnCallSchedule` objects. operationId: get_on_call_schedules responses: @@ -4535,6 +4979,7 @@ paths: disabled: false /on-call-schedules/{on_call_schedule_id}: get: + summary: Get on call schedule by ID description: Gets a `OnCallSchedule` object. operationId: get_on_call_schedule parameters: @@ -4713,9 +5158,145 @@ paths: security: - BearerAuth: [] tags: - - apps + - apps + x-speakeasy-mcp: + scopes: [read] + disabled: false + /delegations: + get: + summary: Get delegations + description: Returns a list of request reviewer delegations configured for your organization. + operationId: getDelegations + parameters: + - description: The delegator user ID to filter delegations by the user delegating their access review requests. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: delegator_user_id + required: false + schema: + format: uuid + type: string + style: form + - description: The delegate user ID to filter delegations by the user being delegated to. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: delegate_user_id + required: false + schema: + format: uuid + type: string + style: form + - description: A cursor to indicate where to start fetching results. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: The maximum number of results to return per page. The default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDelegationsList" + description: A list of delegations for your organization. + security: + - BearerAuth: [] + tags: + - delegations + x-speakeasy-mcp: + scopes: [read] + disabled: false + post: + description: Creates a new request reviewer delegation to delegate access review requests from one user to another. + operationId: createDelegation + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/CreateDelegationRequest" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Delegation" + description: Delegation created successfully. + security: + - BearerAuth: [] + tags: + - delegations + x-speakeasy-mcp: + scopes: [write] + disabled: false + /delegations/{delegation_id}: + get: + summary: Get delegation by ID + description: Returns a specific delegation by its ID. + operationId: getDelegation + parameters: + - description: The ID of the delegation to retrieve. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: delegation_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Delegation" + description: The requested delegation. + security: + - BearerAuth: [] + tags: + - delegations + x-speakeasy-mcp: + scopes: [read] + disabled: false + delete: + description: Deletes a delegation by its ID. + operationId: deleteDelegation + parameters: + - description: The ID of the delegation to remove. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: delegation_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: Delegation removed successfully + security: + - BearerAuth: [] + tags: + - delegations x-speakeasy-mcp: - scopes: [read] + scopes: [write] disabled: false components: schemas: @@ -4971,6 +5552,10 @@ components: description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False uar_scope: $ref: "#/components/schemas/UARScope" required: @@ -4981,6 +5566,7 @@ components: - send_reviewer_assignment_notification - time_zone - self_review_allowed + - instantly_action_reviews type: object CreateUARInfo: description: Information needed to start a user access review. @@ -5027,6 +5613,10 @@ components: description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False reminder_schedule: items: type: integer @@ -5045,11 +5635,14 @@ components: - self_review_allowed type: object UARReviewerAssignmentPolicyEnum: - description: A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. + description: A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. enum: - MANUALLY - BY_OWNING_TEAM_ADMIN + - BY_OWNING_TEAM_ADMIN_ALL - BY_MANAGER + - BY_APPROVERS + - BY_APPROVERS_ALL example: MANUALLY type: string TagFilter: @@ -5370,6 +5963,16 @@ components: has_direct_access: true num_access_paths: 3 properties: + next: + description: The cursor with which to continue pagination if additional result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + nullable: true + type: string + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + nullable: true + type: string results: items: $ref: "#/components/schemas/ResourceAccessUser" @@ -5512,6 +6115,14 @@ components: example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string + resource_name: + description: The name of the resource. + example: AdministratorAccess + type: string + description: + description: The description of the resource. + example: Full access to all resources and settings. + type: string user_id: description: The ID of the user. example: 29827fb8-f2dd-4e80-9576-28e31e9934ac @@ -5768,6 +6379,63 @@ components: type: object required: - results + PaginatedRemoteUsersList: + example: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + remote_id: 1234567890 + third_party_provider: GIT_LAB + - user_id: 29827fb8-f2dd-4e80-9576-238979927392 + remote_id: remoteid123 + third_party_provider: GIT_HUB + properties: + next: + description: The cursor with which to continue pagination if additional result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + nullable: true + type: string + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + nullable: true + type: string + results: + items: + $ref: "#/components/schemas/RemoteUser" + type: array + type: object + required: + - results + RemoteUser: + description: |- + # RemoteUser Object + ### Description + The `RemoteUser` object is used to represent a remote user. + example: + user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + remote_id: 1234567890 + third_party_provider: GIT_HUB + properties: + user_id: + description: The ID of the user. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + format: uuid + type: string + remote_id: + description: The ID of the remote user. + example: 1234567890 + type: string + third_party_provider: + description: The third party provider of the remote user. + example: GIT_HUB + $ref: "#/components/schemas/ThirdPartyProviderEnum" + required: + - user_id + - remote_id + - third_party_provider + type: object User: description: | # User Object @@ -5893,6 +6561,26 @@ components: - NOT_FOUND example: ACTIVE type: string + ThirdPartyProviderEnum: + description: The third party provider of the remote user. + enum: + - AUTH0 + - SLACK + - GOOGLE_CHAT + - JIRA + - LINEAR + - SERVICE_NOW + - FRESH_SERVICE + - SHORTCUT + - PAGER_DUTY + - OPSGENIE + - GIT_HUB + - GIT_LAB + - GIT_LAB_CONNECTION + - TELEPORT + - SLACK + example: GIT_HUB + type: string PaginatedGroupsList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -5969,6 +6657,15 @@ components: example: f454d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string + duration_minutes: + description: The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. + type: integer + maximum: 525960 # One year + example: 120 + access_level_remote_id: + description: The updated remote ID of the access level granted to this group. + type: string + example: arn:aws:iam::590304332660:role/ReadOnlyAccess required: - containing_group_id type: object @@ -6038,6 +6735,10 @@ components: description: The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. type: integer example: 120 + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + type: integer + example: 120 require_manager_approval: description: A bool representing whether or not access requests to the group require manager approval. example: False @@ -6113,11 +6814,17 @@ components: risk_sensitivity_override: allOf: - $ref: "#/components/schemas/RiskSensitivityEnum" + last_successful_sync: + readOnly: true + description: Information about the last successful sync of this group. + $ref: "#/components/schemas/SyncTask" required: - group_id type: object GroupUserList: example: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - full_name: Jake Barnes user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac @@ -6134,6 +6841,16 @@ components: items: $ref: "#/components/schemas/GroupUser" type: array + next: + description: The cursor with which to continue pagination if additional result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + nullable: true + type: string + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + nullable: true + type: string type: object GroupAccessLevel: description: |- @@ -6180,6 +6897,14 @@ components: example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string + group_name: + description: The name of the group. + example: API Group + type: string + description: + description: The description of the group. + example: Group required to request API's + type: string user_id: description: The ID of the user. example: 29827fb8-f2dd-4e80-9576-28e31e9934ac @@ -6209,6 +6934,8 @@ components: - full_name - group_id - user_id + - group_name + - description type: object PropagationStatus: description: The state of whether the push action was propagated to the remote system. If this is null, the access was synced from the remote system. @@ -6364,6 +7091,11 @@ components: type: string format: uuid type: array + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. + type: integer + example: 120 + deprecated: true request_configurations: type: array items: @@ -6442,6 +7174,9 @@ components: - CONNECTOR_GROUP - SNOWFLAKE_ROLE - WORKDAY_USER_SECURITY_GROUP + - PAGERDUTY_ON_CALL_SCHEDULE + - INCIDENTIO_ON_CALL_SCHEDULE + - DEVIN_GROUP example: OPAL_GROUP type: string ResourceTypeEnum: @@ -6507,6 +7242,20 @@ components: - MARIADB_INSTANCE - POSTGRES_INSTANCE - TELEPORT_ROLE + - ILEVEL_ADVANCED_ROLE + - DATASTAX_ASTRA_ROLE + - COUPA_ROLE + - CURSOR_ORGANIZATION + - OPENAI_PLATFORM_PROJECT + - OPENAI_PLATFORM_SERVICE_ACCOUNT + - ANTHROPIC_WORKSPACE + - GIT_HUB_ORG + - ORACLE_FUSION_ROLE + - DEVIN_ORGANIZATION + - DEVIN_ROLE + - VAULT_SECRET + - VAULT_POLICY + - VAULT_OIDC_ROLE example: AWS_IAM_ROLE type: string VisibilityTypeEnum: @@ -6549,6 +7298,7 @@ components: - BUNDLE - USER - ACCESS_REVIEW + - OWNER example: RESOURCE type: string UpdateGroupResourcesInfo: @@ -6569,10 +7319,16 @@ components: IdpGroupMapping: description: Information about a group mapping. example: + app_resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 group_id: 6f99639b-7928-4043-8184-47cbc6766145 alias: "finance-team" hidden_from_end_user: False properties: + app_resource_id: + description: The ID of the app resource. + example: 1520617d-e72a-47f5-a84c-693817ab48ad2 + format: uuid + type: string group_id: description: The ID of the group. example: 6f99639b-7928-4043-8184-47cbc6766145 @@ -6947,8 +7703,12 @@ components: - SERVICE_NOW example: LINEAR type: string + RDSEngineEnum: + type: string + description: "The database engine for the RDS instance." + enum: [MYSQL, POSTGRESQL] GroupRemoteInfo: - description: Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. + description: Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. properties: active_directory_group: description: Remote info for Active Directory group. @@ -6960,6 +7720,46 @@ components: type: object required: - group_id + tailscale_group: + description: Remote info for Tailscale group. + properties: + group_id: + description: The id of the Tailscale group. + example: 898931321 + type: string + type: object + required: + - group_id + aws_sso_group: + description: Remote info for AWS SSO group. + properties: + group_id: + description: The id of the AWS SSO group. + example: 898931321 + type: string + type: object + required: + - group_id + databricks_account_group: + description: Remote info for Databricks account group. + properties: + group_id: + description: The id of the Databricks account group. + example: 898931321 + type: string + type: object + required: + - group_id + connector_group: + description: Remote info for Connector group. + properties: + group_id: + description: The id of the Connector group. + example: 898931321 + type: string + type: object + required: + - group_id github_team: description: Remote info for GitHub team. properties: @@ -7075,10 +7875,185 @@ components: type: object required: - group_id + pagerduty_on_call_schedule: + description: Remote info for PagerDuty on-call schedule group. + properties: + schedule_id: + description: The id of the PagerDuty on-call schedule. + example: PNZNINN + type: string + type: object + required: + - schedule_id + incidentio_on_call_schedule: + description: Remote info for Incident.io on-call schedule group. + properties: + schedule_id: + description: The id of the Incident.io on-call schedule. + example: 01HZ8XQM9ZQX8RKMZQ8ZQX8RK + type: string + type: object + required: + - schedule_id + devin_group: + description: Remote info for Devin group. + properties: + group_name: + description: The name of the Devin group. + example: devin-group-01 + type: string + type: object + required: + - group_name type: object ResourceRemoteInfo: description: Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. properties: + databricks_account_service_principal: + description: Remote info for Databricks account service principal. + properties: + application_id: + description: The application ID of the service principal. + example: 00000000-0000-0000-0000-000000000000 + type: string + resource_id: + description: The resource ID of the service principal. + example: 00000000-0000-0000-0000-000000000000 + type: string + type: object + required: + - application_id + - resource_id + azure_subscription: + description: Remote info for Azure subscription. + properties: + resource_id: + description: The ARM resource ID of the subscription. + example: /subscriptions/00000000-0000-0000-0000-000000000000 + type: string + type: object + required: + - resource_id + azure_resource_group: + description: Remote info for Azure resource group. + properties: + resource_id: + description: The ARM resource ID of the resource group. + example: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg + type: string + type: object + required: + - resource_id + azure_management_group: + description: Remote info for Azure management group. + properties: + resource_id: + description: The ARM resource ID of the management group. + example: /providers/Microsoft.Management/managementGroups/my-mg + type: string + type: object + required: + - resource_id + azure_virtual_machine: + description: Remote info for Azure virtual machine. + properties: + resource_id: + description: The ARM resource ID of the virtual machine. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01 + type: string + type: object + required: + - resource_id + azure_storage_account: + description: Remote info for Azure storage account. + properties: + resource_id: + description: The ARM resource ID of the storage account. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01 + type: string + type: object + required: + - resource_id + azure_storage_container: + description: Remote info for Azure storage container. + properties: + resource_id: + description: The ARM resource ID of the storage container. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01 + type: string + type: object + required: + - resource_id + azure_sql_server: + description: Remote info for Azure SQL server. + properties: + resource_id: + description: The ARM resource ID of the SQL server. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01 + type: string + type: object + required: + - resource_id + azure_sql_database: + description: Remote info for Azure SQL database. + properties: + resource_id: + description: The ARM resource ID of the SQL database. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01 + type: string + type: object + required: + - resource_id + azure_sql_managed_instance: + description: Remote info for Azure SQL managed instance. + properties: + resource_id: + description: The ARM resource ID of the SQL managed instance. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01 + type: string + type: object + required: + - resource_id + azure_sql_managed_database: + description: Remote info for Azure SQL managed database. + properties: + resource_id: + description: The ARM resource ID of the SQL managed database. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01 + type: string + type: object + required: + - resource_id + azure_user_assigned_managed_identity: + description: Remote info for Azure user assigned managed identity. + properties: + resource_id: + description: The ARM resource ID of the user assigned managed identity. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01 + type: string + type: object + required: + - resource_id + azure_enterprise_app: + description: Remote info for Azure Enterprise App. + properties: + resource_id: + description: The remote application identifier (service principal or application object ID). + example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee + type: string + type: object + required: + - resource_id + azure_entra_id_role: + description: Remote info for Azure Entra ID role. + properties: + resource_id: + description: The remote role identifier from Entra (object ID). + example: 11111111-2222-3333-4444-555555555555 + type: string + type: object + required: + - resource_id aws_organizational_unit: description: Remote info for AWS organizational unit. properties: @@ -7155,6 +8130,40 @@ components: required: - instance_id - region + aws_rds_cluster: + description: Remote info for AWS RDS cluster. + properties: + cluster_id: + description: The clusterId of the RDS cluster. + example: demo-mysql-cluster + type: string + region: + description: The region of the RDS cluster. + example: us-east-2 + type: string + resource_id: + description: The resourceId of the RDS cluster. + example: cluster-AOO8V0XUCNU13XLZXQDQRSN0NQ + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + database_name: + description: The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. + example: mydatabase + type: string + engine: + allOf: + - $ref: "#/components/schemas/RDSEngineEnum" + type: object + required: + - cluster_id + - region + - resource_id + - account_id + - database_name + - engine aws_rds_instance: description: Remote info for AWS RDS instance. properties: @@ -7372,7 +8381,27 @@ components: type: string type: object required: - - repo_name + - repo_name + github_org_role: + description: Remote info for GitHub organization role. + properties: + role_id: + description: The id of the role. + example: 112233 + type: string + type: object + required: + - role_id + github_org: + description: Remote info for GitHub organization. + properties: + org_name: + description: The name of the organization. + example: Opal Security + type: string + type: object + required: + - org_name gitlab_project: description: Remote info for Gitlab project. properties: @@ -7413,6 +8442,71 @@ components: type: object required: - role_id + snowflake_database: + description: Remote info for Snowflake database. + properties: + database_name: + description: The name of the database. + example: mydatabase + type: string + type: object + required: + - database_name + snowflake_schema: + description: Remote info for Snowflake schema. + properties: + database_name: + description: The name of the database the schema is in. + example: mydatabase + type: string + schema_name: + description: The name of the schema. + example: mycatalogschema + type: string + type: object + required: + - database_name + - schema_name + snowflake_table: + description: Remote info for Snowflake table. + properties: + database_name: + description: The name of the database the table is in. + example: mydatabase + type: string + schema_name: + description: The name of the schema the table is in. + example: mycatalogschema + type: string + table_name: + description: The name of the table. + example: myitemstable + type: string + type: object + required: + - database_name + - schema_name + - table_name + ilevel_advanced_role: + description: Remote info for iLevel Advanced role. + properties: + role_name: + description: The name of the role. + example: IT User + type: string + type: object + required: + - role_name + tailscale_ssh: + description: Remote info for Tailscale SSH tag. + properties: + tag_name: + description: The name of the tag. + example: admin + type: string + type: object + required: + - tag_name pagerduty_role: description: Remote info for Pagerduty role. properties: @@ -7423,6 +8517,16 @@ components: type: object required: - role_name + workday_role: + description: Remote info for Workday role. + properties: + role_id: + description: The id of the role. + example: 123abc456def + type: string + type: object + required: + - role_id salesforce_permission_set: description: Remote info for Salesforce permission set. properties: @@ -7468,6 +8572,101 @@ components: type: object required: - role_name + datastax_astra_role: + description: Remote info for an Astra role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - role_id + coupa_role: + description: Remote info for Coupa role. + properties: + role_id: + description: The id of the role. + example: 999 + type: string + type: object + required: + - role_id + cursor_organization: + description: Remote info for a Cursor organization. + properties: + org_id: + description: The id of the organization. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - org_id + openai_platform_project: + description: Remote info for OpenAI Platform project. + properties: + project_id: + description: The id of the project. + example: proj_abc + type: string + type: object + required: + - project_id + openai_platform_service_account: + description: Remote info for OpenAI Platform service account. + properties: + project_id: + description: The id of the project for the service account. + example: proj_abc + type: string + service_account_id: + description: The id of the service account. + example: svc_acct_abc + type: string + type: object + required: + - project_id + - service_account_id + anthropic_workspace: + description: Remote info for Anthropic workspace. + properties: + workspace_id: + description: The id of the workspace. + example: ws-123456 + type: string + type: object + required: + - workspace_id + oracle_fusion_role: + description: Remote info for Oracle Fusion role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - role_id + devin_organization: + description: Remote info for Devin organization. + properties: + org_id: + description: The id of the organization. + example: devin-org-01 + type: string + type: object + required: + - org_id + devin_role: + description: Remote info for Devin role. + properties: + role_id: + description: The id of the role. + example: devin-role-01 + type: string + type: object + required: + - role_id type: object RiskSensitivityEnum: type: string @@ -8019,20 +9218,20 @@ components: request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 user_id: c86c85d-0651-43e2-a748-d69d658418e8 comment: This is a comment. - stages: - requestedRoleName: "Admin" - requestedItemName: "AWS Production Account" - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED + reviewer_stages: + - requestedRoleName: "Admin" + requestedItemName: "AWS Production Account" + stages: + - stage: 1 + operator: AND + reviewers: + - id: 7c86c85d-0651-43e2-a748-d69d658418e8 + status: PENDING + - stage: 2 + operator: OR + reviewers: + - id: 8d86c85d-0651-43e2-a748-d69d658418e9 + status: APPROVED properties: id: description: The unique identifier of the request. @@ -8087,8 +9286,16 @@ components: items: $ref: "#/components/schemas/RequestCustomFieldResponse" stages: + deprecated: true description: The stages configuration for this request $ref: "#/components/schemas/RequestItemStages" + reviewer_stages: + description: The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded + oneOf: + - type: array + items: + $ref: "#/components/schemas/RequestReviewerStages" + - type: string required: - id - created_at @@ -8096,9 +9303,101 @@ components: - requester_id - status - reason + RequestCommentList: + description: A paginated list of request comments + type: object + example: + comments: + - created_at: 2021-01-06T20:00:00Z + request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. + properties: + comments: + items: + $ref: "#/components/schemas/RequestComment" + type: array + required: + - comments + RequestComment: + description: |- + # Request Comment Object + ### Description + The `RequestComment` object is used to represent a comment on a request. + + ### Usage Example + Returned from the `GET Requests` endpoint as part of a `Request` object. + example: + created_at: 2021-01-06T20:00:00Z + request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. + properties: + created_at: + description: The date and time the comment was created. + example: 2021-01-06T20:00:00Z + format: date-time + type: string + request_id: + description: The unique identifier of the request the comment is associated with. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + user_id: + description: The unique identifier of the user who made the comment. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + user_full_name: + description: The user's full name. + example: Jake Barnes + type: string + user_email: + description: The user's email address. + example: jake.barnes@company.com + type: string + comment: + description: The content of the comment. + example: This is a comment. + type: string + required: + - created_at + - request_id + - user_id + - comment + RequestReviewerStages: + description: The stages configuration for a request item + type: object + properties: + access_level_name: + description: The name of the access level requested. + example: admin + type: string + access_level_remote_id: + description: The ID of the access level requested on the remote system. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + item_name: + description: The name of the requested item + type: string + item_id: + description: The ID of the resource requested. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + stages: + description: The stages of review for this request + type: array + items: + $ref: "#/components/schemas/RequestStage" + required: + - item_name + - item_id + - stages RequestItemStages: description: The stages configuration for a request item type: object + deprecated: true properties: requestedRoleName: description: The name of the requested role @@ -8147,6 +9446,10 @@ components: description: The unique identifier of the reviewer type: string format: uuid + full_name: + description: The user's full name. + example: Jake Barnes + type: string status: description: The status of this reviewer's review type: string @@ -8330,6 +9633,10 @@ components: description: The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. type: integer example: 120 + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + type: integer + example: 120 require_manager_approval: description: A bool representing whether or not access requests to the resource require manager approval. example: False @@ -8432,6 +9739,10 @@ components: example: - f454d283-ca67-4a8a-bdbb-df212eca5347 - f454d283-ca67-4a8a-bdbb-df212eca5348 + last_successful_sync: + readOnly: true + description: Information about the last successful sync of this resource. + $ref: "#/components/schemas/SyncTask" required: - resource_id type: object @@ -8584,6 +9895,11 @@ components: example: False type: boolean deprecated: true + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. + type: integer + example: 120 + deprecated: true request_configurations: type: array items: @@ -9348,6 +10664,10 @@ components: description: A bool representing whether or not access requests to the resource require an access ticket. example: False type: boolean + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + type: integer + example: 120 request_template_id: description: The ID of the associated request template. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 @@ -9852,9 +11172,10 @@ components: example: arn:aws:iam::490306337630:role/SupportUser type: string access_level_name: - description: The ID of the access level requested on the remote system. + description: The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. example: arn:aws:iam::490306337630:role/SupportUser type: string + deprecated: true groups: type: array items: @@ -10218,6 +11539,147 @@ components: - target_type - permission_name - allow_all + SyncTask: + type: object + description: Represents a sync task that has been completed, either successfully or with errors. + properties: + id: + description: The ID of the sync task. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + completed_at: + description: The time when the sync task was completed. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + required: + - id + - completed_at + example: + id: 7c86c85d-0651-43e2-a748-d69d658418e8 + completed_at: 2023-10-01T12:00:00Z + RequestApprovalEnum: + type: string + enum: [REGULAR, ADMIN] + description: "The decision level for the approval" + example: "REGULAR" + Delegation: + type: object + description: |- + # Delegation Object + ### Description + The `Delegation` object represents a delegation of access review requests from one user to another. + + ### Usage Example + List from the `GET Delegations` endpoint. + Get from the `GET Delegation` endpoint. + properties: + id: + description: The ID of the delegation. + example: 4aed3e8a-727b-4d72-8010-3b8710c50bec + format: uuid + type: string + delegator_user_id: + description: The ID of the user delegating their access review requests. + example: 123e4567-e89b-12d3-a456-426614174000 + format: uuid + type: string + delegate_user_id: + description: The ID of the user being delegated to. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + start_time: + description: The start time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + end_time: + description: The end time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + reason: + description: The reason for the delegation. + example: "I need to be out of the office" + type: string + created_at: + description: The creation time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + updated_at: + description: The last updated time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + required: + - id + - delegator_user_id + - delegate_user_id + - start_time + - end_time + - reason + - created_at + - updated_at + PaginatedDelegationsList: + type: object + description: A list of delegations for your organization. + properties: + results: + description: The delegations in the result set. + type: array + items: + $ref: "#/components/schemas/Delegation" + next: + description: The cursor with which to continue pagination if additional result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + nullable: true + type: string + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + nullable: true + type: string + total_count: + description: The total number of items in the result set. + example: 2 + type: integer + CreateDelegationRequest: + type: object + description: Request body for creating a new delegation of access review requests from one user to another. + properties: + delegator_user_id: + description: The ID of the user delegating their access review requests. + example: 123e4567-e89b-12d3-a456-426614174000 + format: uuid + type: string + delegate_user_id: + description: The ID of the user being delegated to. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + start_time: + description: The start time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + end_time: + description: The end time of the delegation. + example: 2023-10-01T12:00:00Z + type: string + format: date-time + reason: + description: The reason for the delegation. + example: "I need to be out of the office" + type: string + required: + - delegator_user_id + - delegate_user_id + - start_time + - end_time + - reason securitySchemes: BearerAuth: scheme: bearer diff --git a/package-lock.json b/package-lock.json index ceaae1b..a20f98a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,21 @@ { "name": "opal-mcp", - "version": "0.7.0", + "version": "0.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opal-mcp", - "version": "0.7.0", + "version": "0.8.0", + "dependencies": { + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" + }, "bin": { "mcp": "bin/mcp-server.js" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", "bun": "1.2.17", @@ -21,18 +24,8 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" } }, "node_modules/@eslint-community/eslint-utils": { @@ -186,6 +179,18 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@hono/node-server": { + "version": "1.19.7", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.7.tgz", + "integrity": "sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -271,32 +276,48 @@ } }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.9.0.tgz", - "integrity": "sha512-Jq2EUCQpe0iyO5FGpzVYDNFR6oR53AIrwph9yWl7uSc7IWUMsrmpmSaTGra5hQNunXpM+9oit85p924jWuHzUA==", - "dev": true, + "version": "1.25.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.2.tgz", + "integrity": "sha512-LZFeo4F9M5qOhC/Uc1aQSrBHxMrvxett+9KLHt7OhcExtoiRN9DKgbZffMP/nxjutWDQpfMDfP3nkHI4X9ijww==", "license": "MIT", "dependencies": { + "@hono/node-server": "^1.19.7", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", - "cross-spawn": "^7.0.3", + "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", + "jose": "^6.1.1", + "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.0" }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } } }, "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "^3.0.0", @@ -306,11 +327,26 @@ "node": ">= 0.6" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "^3.1.2", @@ -331,7 +367,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -344,7 +379,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.6.0" @@ -354,7 +388,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "^2.0.0", @@ -397,7 +430,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.4.0", @@ -415,7 +447,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -425,7 +456,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -434,11 +464,16 @@ "node": ">=0.10.0" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -448,7 +483,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -461,7 +495,6 @@ "version": "1.54.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -471,7 +504,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz", "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "^1.54.0" @@ -484,7 +516,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -494,7 +525,6 @@ "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -510,7 +540,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz", "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.3.5", @@ -533,7 +562,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz", "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "^2.0.0", @@ -549,7 +577,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", - "dev": true, "license": "MIT", "dependencies": { "content-type": "^1.0.5", @@ -1089,7 +1116,6 @@ "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "~2.1.34", @@ -1139,6 +1165,45 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/ansi-regex": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", @@ -1193,7 +1258,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true, "license": "MIT" }, "node_modules/balanced-match": { @@ -1220,7 +1284,6 @@ "version": "1.20.3", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1245,7 +1308,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -1255,14 +1317,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/body-parser/node_modules/raw-body": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1345,7 +1405,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1355,7 +1414,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -1369,7 +1427,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -1478,7 +1535,6 @@ "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -1491,7 +1547,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1501,7 +1556,6 @@ "version": "0.7.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1511,14 +1565,12 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true, "license": "MIT" }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, "license": "MIT", "dependencies": { "object-assign": "^4", @@ -1532,7 +1584,6 @@ "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -1547,7 +1598,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1572,7 +1622,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1582,7 +1631,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8", @@ -1593,7 +1641,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -1615,7 +1662,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true, "license": "MIT" }, "node_modules/emoji-regex": { @@ -1629,7 +1675,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1639,7 +1684,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1649,7 +1693,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1659,7 +1702,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -1672,7 +1714,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true, "license": "MIT" }, "node_modules/escape-string-regexp": { @@ -1849,7 +1890,6 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1859,7 +1899,6 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", - "dev": true, "license": "MIT", "dependencies": { "eventsource-parser": "^3.0.1" @@ -1872,7 +1911,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.1.tgz", "integrity": "sha512-VARTJ9CYeuQYb0pZEPbzi740OWFgpHe7AYJ2WFZVnUDUQp5Dk2yJUgF36YsZ81cOyxT0QxmXD2EQpapAouzWVA==", - "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" @@ -1882,7 +1920,6 @@ "version": "4.21.2", "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", @@ -1929,7 +1966,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 16" @@ -1945,7 +1981,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -1955,14 +1990,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, "license": "MIT" }, "node_modules/fast-glob": { @@ -2009,6 +2042,22 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", @@ -2049,7 +2098,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -2068,7 +2116,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -2078,7 +2125,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/find-up": { @@ -2140,7 +2186,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2150,7 +2195,6 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2175,7 +2219,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2185,7 +2228,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -2210,7 +2252,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -2297,7 +2338,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2327,7 +2367,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2340,7 +2379,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -2349,11 +2387,20 @@ "node": ">= 0.4" } }, + "node_modules/hono": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.3.tgz", + "integrity": "sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=16.9.0" + } + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, "license": "MIT", "dependencies": { "depd": "2.0.0", @@ -2370,7 +2417,6 @@ "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -2420,14 +2466,12 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, "license": "ISC" }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.10" @@ -2493,14 +2537,12 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true, "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, "license": "ISC" }, "node_modules/jackspeak": { @@ -2519,6 +2561,15 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2546,6 +2597,12 @@ "dev": true, "license": "MIT" }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -2611,7 +2668,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2621,7 +2677,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2631,7 +2686,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -2651,7 +2705,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2675,7 +2728,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, "license": "MIT", "bin": { "mime": "cli.js" @@ -2688,7 +2740,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2698,7 +2749,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -2750,7 +2800,6 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -2764,7 +2813,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2784,7 +2832,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -2794,7 +2841,6 @@ "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2807,7 +2853,6 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, "license": "MIT", "dependencies": { "ee-first": "1.1.1" @@ -2820,7 +2865,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" @@ -2900,7 +2944,6 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -2920,7 +2963,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -2947,7 +2989,6 @@ "version": "0.1.12", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true, "license": "MIT" }, "node_modules/picomatch": { @@ -2967,7 +3008,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.0.tgz", "integrity": "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16.20.0" @@ -3000,7 +3040,6 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, "license": "MIT", "dependencies": { "forwarded": "0.2.0", @@ -3024,7 +3063,6 @@ "version": "6.13.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -3061,7 +3099,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -3071,7 +3108,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -3087,7 +3123,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -3109,6 +3144,15 @@ "node": ">=8.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -3167,7 +3211,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.4.0", @@ -3184,7 +3227,6 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16" @@ -3218,7 +3260,6 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, "funding": [ { "type": "github", @@ -3239,7 +3280,6 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, "license": "MIT" }, "node_modules/semver": { @@ -3259,7 +3299,6 @@ "version": "0.19.0", "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -3284,7 +3323,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -3294,14 +3332,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/send/node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3311,7 +3347,6 @@ "version": "1.16.2", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "~2.0.0", @@ -3327,14 +3362,12 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true, "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -3347,7 +3380,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3357,7 +3389,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3377,7 +3408,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3394,7 +3424,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3413,7 +3442,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3446,7 +3474,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3621,7 +3648,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.6" @@ -3722,7 +3748,6 @@ "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, "license": "MIT", "dependencies": { "media-typer": "0.3.0", @@ -3779,7 +3804,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3799,7 +3823,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4.0" @@ -3809,7 +3832,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3826,7 +3848,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" @@ -3947,7 +3968,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, "license": "ISC" }, "node_modules/yocto-queue": { @@ -3967,20 +3987,18 @@ "version": "3.25.62", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.62.tgz", "integrity": "sha512-YCxsr4DmhPcrKPC9R1oBHQNlQzlJEyPAId//qTau/vBee9uO8K6prmRq4eMkOyxvBfH4wDPIPdLx9HVMWIY3xA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } }, "node_modules/zod-to-json-schema": { - "version": "3.24.5", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz", - "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==", - "dev": true, + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz", + "integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==", "license": "ISC", "peerDependencies": { - "zod": "^3.24.1" + "zod": "^3.25 || ^4" } } } diff --git a/package.json b/package.json index 009254c..adc2ca6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opal-mcp", - "version": "0.7.0", + "version": "0.8.0", "author": "Speakeasy", "type": "module", "bin": { @@ -32,18 +32,9 @@ "build": "npm run build:mcp && tshy", "prepublishOnly": "npm run build" }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - }, + "peerDependencies": {}, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@types/express": "^4.17.21", "bun": "1.2.17", @@ -52,11 +43,13 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0", - "zod": "^3.25.17" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" + }, + "dependencies": { + "@modelcontextprotocol/sdk": "^1.24.0", + "zod": "^3.25.0 || ^4.0.0" }, - "dependencies": {}, "exports": { ".": { "import": { diff --git a/src/funcs/accessRulesCreateAccessRule.ts b/src/funcs/accessRulesCreateAccessRule.ts index d2edeb0..c167e9b 100644 --- a/src/funcs/accessRulesCreateAccessRule.ts +++ b/src/funcs/accessRulesCreateAccessRule.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create_access_rule", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/accessRulesGetAccessRule.ts b/src/funcs/accessRulesGetAccessRule.ts index 6d7d805..9a42507 100644 --- a/src/funcs/accessRulesGetAccessRule.ts +++ b/src/funcs/accessRulesGetAccessRule.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_access_rule", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/accessRulesUpdateAccessRule.ts b/src/funcs/accessRulesUpdateAccessRule.ts index 3794cfe..f67d7f6 100644 --- a/src/funcs/accessRulesUpdateAccessRule.ts +++ b/src/funcs/accessRulesUpdateAccessRule.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "update_access_rule", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/appsGetApp.ts b/src/funcs/appsGetApp.ts index 565e28d..5721c0e 100644 --- a/src/funcs/appsGetApp.ts +++ b/src/funcs/appsGetApp.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get app by ID + * + * @remarks * Returns an `App` object. */ export function appsGetApp( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getApp", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/appsGetApps.ts b/src/funcs/appsGetApps.ts index 9c345a8..94c0376 100644 --- a/src/funcs/appsGetApps.ts +++ b/src/funcs/appsGetApps.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get apps + * + * @remarks * Returns a list of `App` objects. */ export function appsGetApps( @@ -106,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getApps", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/appsGetSyncErrors.ts b/src/funcs/appsGetSyncErrors.ts index d80d6da..23e3853 100644 --- a/src/funcs/appsGetSyncErrors.ts +++ b/src/funcs/appsGetSyncErrors.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getSyncErrors", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesAddBundleGroup.ts b/src/funcs/bundlesAddBundleGroup.ts index 96c9261..9cff826 100644 --- a/src/funcs/bundlesAddBundleGroup.ts +++ b/src/funcs/bundlesAddBundleGroup.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "addBundleGroup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesAddBundleResource.ts b/src/funcs/bundlesAddBundleResource.ts index 25c94cc..1f3ef83 100644 --- a/src/funcs/bundlesAddBundleResource.ts +++ b/src/funcs/bundlesAddBundleResource.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "addBundleResource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesCreateBundle.ts b/src/funcs/bundlesCreateBundle.ts index e780e5c..7ba111b 100644 --- a/src/funcs/bundlesCreateBundle.ts +++ b/src/funcs/bundlesCreateBundle.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createBundle", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesDeleteBundle.ts b/src/funcs/bundlesDeleteBundle.ts index bfbb201..a8d1b33 100644 --- a/src/funcs/bundlesDeleteBundle.ts +++ b/src/funcs/bundlesDeleteBundle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteBundle", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesGetBundle.ts b/src/funcs/bundlesGetBundle.ts index ddfbc8a..321878c 100644 --- a/src/funcs/bundlesGetBundle.ts +++ b/src/funcs/bundlesGetBundle.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get bundle by ID + * + * @remarks * Returns a `Bundle` object. */ export function bundlesGetBundle( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBundle", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesGetBundleGroups.ts b/src/funcs/bundlesGetBundleGroups.ts index b32fa70..7a22fce 100644 --- a/src/funcs/bundlesGetBundleGroups.ts +++ b/src/funcs/bundlesGetBundleGroups.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBundleGroups", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -210,6 +210,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "bundle_groups"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/bundlesGetBundleResources.ts b/src/funcs/bundlesGetBundleResources.ts index 633db0a..ebe2a6f 100644 --- a/src/funcs/bundlesGetBundleResources.ts +++ b/src/funcs/bundlesGetBundleResources.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBundleResources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -210,6 +210,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "bundle_resources"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/bundlesGetBundleVisibility.ts b/src/funcs/bundlesGetBundleVisibility.ts index fc4b924..86f51bf 100644 --- a/src/funcs/bundlesGetBundleVisibility.ts +++ b/src/funcs/bundlesGetBundleVisibility.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBundleVisibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesGetBundles.ts b/src/funcs/bundlesGetBundles.ts index f357657..9912615 100644 --- a/src/funcs/bundlesGetBundles.ts +++ b/src/funcs/bundlesGetBundles.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get bundles + * + * @remarks * Returns a list of `Bundle` objects. */ export function bundlesGetBundles( @@ -115,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getBundles", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -202,6 +205,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "bundles"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/bundlesRemoveBundleGroup.ts b/src/funcs/bundlesRemoveBundleGroup.ts index 7bbd444..d3f5811 100644 --- a/src/funcs/bundlesRemoveBundleGroup.ts +++ b/src/funcs/bundlesRemoveBundleGroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "removeBundleGroup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesRemoveBundleResource.ts b/src/funcs/bundlesRemoveBundleResource.ts index 11ad251..c168646 100644 --- a/src/funcs/bundlesRemoveBundleResource.ts +++ b/src/funcs/bundlesRemoveBundleResource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "removeBundleResource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesSetBundleVisibility.ts b/src/funcs/bundlesSetBundleVisibility.ts index 501089c..2ccd1d1 100644 --- a/src/funcs/bundlesSetBundleVisibility.ts +++ b/src/funcs/bundlesSetBundleVisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "setBundleVisibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/bundlesUpdateBundle.ts b/src/funcs/bundlesUpdateBundle.ts index 0a9add2..1db1b66 100644 --- a/src/funcs/bundlesUpdateBundle.ts +++ b/src/funcs/bundlesUpdateBundle.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateBundle", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/configurationTemplatesCreateConfigurationTemplate.ts b/src/funcs/configurationTemplatesCreateConfigurationTemplate.ts index 03ffc3e..30a4268 100644 --- a/src/funcs/configurationTemplatesCreateConfigurationTemplate.ts +++ b/src/funcs/configurationTemplatesCreateConfigurationTemplate.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createConfigurationTemplate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/configurationTemplatesDeleteConfigurationTemplate.ts b/src/funcs/configurationTemplatesDeleteConfigurationTemplate.ts index c78bef1..9a675c3 100644 --- a/src/funcs/configurationTemplatesDeleteConfigurationTemplate.ts +++ b/src/funcs/configurationTemplatesDeleteConfigurationTemplate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteConfigurationTemplate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/configurationTemplatesGetConfigurationTemplates.ts b/src/funcs/configurationTemplatesGetConfigurationTemplates.ts index 1e8257c..6889321 100644 --- a/src/funcs/configurationTemplatesGetConfigurationTemplates.ts +++ b/src/funcs/configurationTemplatesGetConfigurationTemplates.ts @@ -80,7 +80,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getConfigurationTemplates", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/configurationTemplatesUpdateConfigurationTemplate.ts b/src/funcs/configurationTemplatesUpdateConfigurationTemplate.ts index 00f0908..3b42cff 100644 --- a/src/funcs/configurationTemplatesUpdateConfigurationTemplate.ts +++ b/src/funcs/configurationTemplatesUpdateConfigurationTemplate.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateConfigurationTemplate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/delegationsCreateDelegation.ts b/src/funcs/delegationsCreateDelegation.ts new file mode 100644 index 0000000..08cdab9 --- /dev/null +++ b/src/funcs/delegationsCreateDelegation.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Creates a new request reviewer delegation to delegate access review requests from one user to another. + */ +export function delegationsCreateDelegation( + client: OpalMcpCore, + request: components.CreateDelegationRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: components.CreateDelegationRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => components.CreateDelegationRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/delegations")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createDelegation", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.Delegation$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/delegationsDeleteDelegation.ts b/src/funcs/delegationsDeleteDelegation.ts new file mode 100644 index 0000000..fbcb949 --- /dev/null +++ b/src/funcs/delegationsDeleteDelegation.ts @@ -0,0 +1,164 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { OpalMcpCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Deletes a delegation by its ID. + */ +export function delegationsDeleteDelegation( + client: OpalMcpCore, + request: operations.DeleteDelegationRequest, + options?: RequestOptions, +): APIPromise< + Result< + void, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.DeleteDelegationRequest, + options?: RequestOptions, +): Promise< + [ + Result< + void, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.DeleteDelegationRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + delegation_id: encodeSimple("delegation_id", payload.delegation_id, { + explode: true, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/delegations/{delegation_id}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "*/*", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "deleteDelegation", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "DELETE", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + void, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(200, z.void()), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/delegationsGetDelegation.ts b/src/funcs/delegationsGetDelegation.ts new file mode 100644 index 0000000..98122d3 --- /dev/null +++ b/src/funcs/delegationsGetDelegation.ts @@ -0,0 +1,167 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get delegation by ID + * + * @remarks + * Returns a specific delegation by its ID. + */ +export function delegationsGetDelegation( + client: OpalMcpCore, + request: operations.GetDelegationRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetDelegationRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetDelegationRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + delegation_id: encodeSimple("delegation_id", payload.delegation_id, { + explode: true, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/delegations/{delegation_id}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getDelegation", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.Delegation, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.Delegation$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/delegationsGetDelegations.ts b/src/funcs/delegationsGetDelegations.ts new file mode 100644 index 0000000..e6ab5de --- /dev/null +++ b/src/funcs/delegationsGetDelegations.ts @@ -0,0 +1,168 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get delegations + * + * @remarks + * Returns a list of request reviewer delegations configured for your organization. + */ +export function delegationsGetDelegations( + client: OpalMcpCore, + request: operations.GetDelegationsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.PaginatedDelegationsList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetDelegationsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.PaginatedDelegationsList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetDelegationsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/delegations")(); + + const query = encodeFormQuery({ + "cursor": payload.cursor, + "delegate_user_id": payload.delegate_user_id, + "delegator_user_id": payload.delegator_user_id, + "page_size": payload.page_size, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getDelegations", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.PaginatedDelegationsList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.PaginatedDelegationsList$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/eventsEvents.ts b/src/funcs/eventsEvents.ts index 0d2cf32..312f1cf 100644 --- a/src/funcs/eventsEvents.ts +++ b/src/funcs/eventsEvents.ts @@ -120,7 +120,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "events", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -207,6 +207,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/groupBindingsCreateGroupBinding.ts b/src/funcs/groupBindingsCreateGroupBinding.ts index 01ebee3..088c1e4 100644 --- a/src/funcs/groupBindingsCreateGroupBinding.ts +++ b/src/funcs/groupBindingsCreateGroupBinding.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createGroupBinding", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupBindingsDeleteGroupBinding.ts b/src/funcs/groupBindingsDeleteGroupBinding.ts index bd14ce1..5c817e0 100644 --- a/src/funcs/groupBindingsDeleteGroupBinding.ts +++ b/src/funcs/groupBindingsDeleteGroupBinding.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteGroupBinding", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupBindingsGetGroupBinding.ts b/src/funcs/groupBindingsGetGroupBinding.ts index 2a4eda4..0d7cad7 100644 --- a/src/funcs/groupBindingsGetGroupBinding.ts +++ b/src/funcs/groupBindingsGetGroupBinding.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get group binding by ID + * + * @remarks * Returns a `GroupBinding` object. */ export function groupBindingsGetGroupBinding( @@ -105,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGroupBinding", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupBindingsGetGroupBindings.ts b/src/funcs/groupBindingsGetGroupBindings.ts index 494344a..e6ec26a 100644 --- a/src/funcs/groupBindingsGetGroupBindings.ts +++ b/src/funcs/groupBindingsGetGroupBindings.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get group bindings + * + * @remarks * Returns a list of `GroupBinding` objects. */ export function groupBindingsGetGroupBindings( @@ -114,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGroupBindings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -203,6 +206,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/groupBindingsUpdateGroupBindings.ts b/src/funcs/groupBindingsUpdateGroupBindings.ts index fc64cd7..2c92c88 100644 --- a/src/funcs/groupBindingsUpdateGroupBindings.ts +++ b/src/funcs/groupBindingsUpdateGroupBindings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -99,7 +99,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateGroupBindings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsAddGroupContainingGroup.ts b/src/funcs/groupsAddGroupContainingGroup.ts index 7fa9b94..58386b2 100644 --- a/src/funcs/groupsAddGroupContainingGroup.ts +++ b/src/funcs/groupsAddGroupContainingGroup.ts @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_group_containing_group", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsAddGroupResource.ts b/src/funcs/groupsAddGroupResource.ts index f3f48ca..e8ad2d0 100644 --- a/src/funcs/groupsAddGroupResource.ts +++ b/src/funcs/groupsAddGroupResource.ts @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_group_resource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsAddGroupUser.ts b/src/funcs/groupsAddGroupUser.ts index 8ab1bfa..17c01c2 100644 --- a/src/funcs/groupsAddGroupUser.ts +++ b/src/funcs/groupsAddGroupUser.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_group_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsCreateGroup.ts b/src/funcs/groupsCreateGroup.ts index 6897e97..d6bc046 100644 --- a/src/funcs/groupsCreateGroup.ts +++ b/src/funcs/groupsCreateGroup.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createGroup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsDeleteGroup.ts b/src/funcs/groupsDeleteGroup.ts index bcbf03a..53a9658 100644 --- a/src/funcs/groupsDeleteGroup.ts +++ b/src/funcs/groupsDeleteGroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_group", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsDeleteGroupUser.ts b/src/funcs/groupsDeleteGroupUser.ts index eb2addb..e6adcdd 100644 --- a/src/funcs/groupsDeleteGroupUser.ts +++ b/src/funcs/groupsDeleteGroupUser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_group_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroup.ts b/src/funcs/groupsGetGroup.ts index f1233ee..a805032 100644 --- a/src/funcs/groupsGetGroup.ts +++ b/src/funcs/groupsGetGroup.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get group by ID + * + * @remarks * Returns a `Group` object. */ export function groupsGetGroup( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGroup", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupContainingGroup.ts b/src/funcs/groupsGetGroupContainingGroup.ts index bea70e2..7634983 100644 --- a/src/funcs/groupsGetGroupContainingGroup.ts +++ b/src/funcs/groupsGetGroupContainingGroup.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get nested group by ID + * + * @remarks * Gets a specific containing group for a group. */ export function groupsGetGroupContainingGroup( @@ -112,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_containing_group", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupContainingGroups.ts b/src/funcs/groupsGetGroupContainingGroups.ts index 8d22273..14cf7d5 100644 --- a/src/funcs/groupsGetGroupContainingGroups.ts +++ b/src/funcs/groupsGetGroupContainingGroups.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get nested groups + * + * @remarks * Gets the list of groups that the group gives access to. */ export function groupsGetGroupContainingGroups( @@ -105,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_containing_groups", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupMessageChannels.ts b/src/funcs/groupsGetGroupMessageChannels.ts index 65b0c17..a6d1019 100644 --- a/src/funcs/groupsGetGroupMessageChannels.ts +++ b/src/funcs/groupsGetGroupMessageChannels.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_message_channels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupOnCallSchedules.ts b/src/funcs/groupsGetGroupOnCallSchedules.ts index 4cd3edc..658ef5c 100644 --- a/src/funcs/groupsGetGroupOnCallSchedules.ts +++ b/src/funcs/groupsGetGroupOnCallSchedules.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_on_call_schedules", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupResources.ts b/src/funcs/groupsGetGroupResources.ts index 283060e..bc1bcee 100644 --- a/src/funcs/groupsGetGroupResources.ts +++ b/src/funcs/groupsGetGroupResources.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_resources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupReviewerStages.ts b/src/funcs/groupsGetGroupReviewerStages.ts index e6f1c46..204f4e4 100644 --- a/src/funcs/groupsGetGroupReviewerStages.ts +++ b/src/funcs/groupsGetGroupReviewerStages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_reviewer_stages", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupReviewers.ts b/src/funcs/groupsGetGroupReviewers.ts index e88ee04..9fdb65c 100644 --- a/src/funcs/groupsGetGroupReviewers.ts +++ b/src/funcs/groupsGetGroupReviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_reviewers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupTags.ts b/src/funcs/groupsGetGroupTags.ts index a8e3bca..4de6af6 100644 --- a/src/funcs/groupsGetGroupTags.ts +++ b/src/funcs/groupsGetGroupTags.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_tags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroupUsers.ts b/src/funcs/groupsGetGroupUsers.ts index 29341e6..f65d7e5 100644 --- a/src/funcs/groupsGetGroupUsers.ts +++ b/src/funcs/groupsGetGroupUsers.ts @@ -3,7 +3,7 @@ */ import { OpalMcpCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -92,6 +92,11 @@ async function $do( const path = pathToFunc("/groups/{group_id}/users")(pathParams); + const query = encodeFormQuery({ + "cursor": payload.cursor, + "page_size": payload.page_size, + }); + const headers = new Headers(compactMap({ Accept: "application/json", })); @@ -104,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_users", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -121,6 +126,7 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, + query: query, body: body, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, diff --git a/src/funcs/groupsGetGroupVisibility.ts b/src/funcs/groupsGetGroupVisibility.ts index dba8e6b..a9b2edd 100644 --- a/src/funcs/groupsGetGroupVisibility.ts +++ b/src/funcs/groupsGetGroupVisibility.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_group_visibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsGetGroups.ts b/src/funcs/groupsGetGroups.ts index 3f9ca37..7fe6e81 100644 --- a/src/funcs/groupsGetGroups.ts +++ b/src/funcs/groupsGetGroups.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get groups + * + * @remarks * Returns a list of groups for your organization. */ export function groupsGetGroups( @@ -121,7 +124,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getGroups", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -208,6 +211,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/groupsGetUserGroups.ts b/src/funcs/groupsGetUserGroups.ts new file mode 100644 index 0000000..34abb6f --- /dev/null +++ b/src/funcs/groupsGetUserGroups.ts @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Returns all groups that the user is a member of. + */ +export function groupsGetUserGroups( + client: OpalMcpCore, + request: operations.GetUserGroupsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.GroupUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetUserGroupsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.GroupUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetUserGroupsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + user_id: encodeSimple("user_id", payload.user_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/groups/users/{user_id}")(pathParams); + + const query = encodeFormQuery({ + "cursor": payload.cursor, + "page_size": payload.page_size, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_user_groups", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.GroupUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.GroupUserList$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/groupsRemoveGroupContainingGroup.ts b/src/funcs/groupsRemoveGroupContainingGroup.ts index 77d4ef2..7a415cc 100644 --- a/src/funcs/groupsRemoveGroupContainingGroup.ts +++ b/src/funcs/groupsRemoveGroupContainingGroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "remove_group_containing_group", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupMessageChannels.ts b/src/funcs/groupsSetGroupMessageChannels.ts index 06ea91d..0c55735 100644 --- a/src/funcs/groupsSetGroupMessageChannels.ts +++ b/src/funcs/groupsSetGroupMessageChannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_message_channels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupOnCallSchedules.ts b/src/funcs/groupsSetGroupOnCallSchedules.ts index e9817b0..9e2f8db 100644 --- a/src/funcs/groupsSetGroupOnCallSchedules.ts +++ b/src/funcs/groupsSetGroupOnCallSchedules.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_on_call_schedules", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupResources.ts b/src/funcs/groupsSetGroupResources.ts index dd2d748..3f75b41 100644 --- a/src/funcs/groupsSetGroupResources.ts +++ b/src/funcs/groupsSetGroupResources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_resources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupReviewerStages.ts b/src/funcs/groupsSetGroupReviewerStages.ts index c627812..8145503 100644 --- a/src/funcs/groupsSetGroupReviewerStages.ts +++ b/src/funcs/groupsSetGroupReviewerStages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_reviewer_stages", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupReviewers.ts b/src/funcs/groupsSetGroupReviewers.ts index f9e03d3..0ccf6da 100644 --- a/src/funcs/groupsSetGroupReviewers.ts +++ b/src/funcs/groupsSetGroupReviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_reviewers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsSetGroupVisibility.ts b/src/funcs/groupsSetGroupVisibility.ts index 8d4c176..be6137c 100644 --- a/src/funcs/groupsSetGroupVisibility.ts +++ b/src/funcs/groupsSetGroupVisibility.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_group_visibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsUpdateGroupUser.ts b/src/funcs/groupsUpdateGroupUser.ts index f996dc0..d8fb39a 100644 --- a/src/funcs/groupsUpdateGroupUser.ts +++ b/src/funcs/groupsUpdateGroupUser.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "update_group_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/groupsUpdateGroups.ts b/src/funcs/groupsUpdateGroups.ts index e74d633..8d5dcf1 100644 --- a/src/funcs/groupsUpdateGroups.ts +++ b/src/funcs/groupsUpdateGroups.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateGroups", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/idpGroupMappingsCreateIdpGroupMapping.ts b/src/funcs/idpGroupMappingsCreateIdpGroupMapping.ts new file mode 100644 index 0000000..912f1f3 --- /dev/null +++ b/src/funcs/idpGroupMappingsCreateIdpGroupMapping.ts @@ -0,0 +1,176 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Creates or updates an individual `IdpGroupMapping` object (upsert operation). + * + * **Behavior:** + * - If the mapping doesn't exist, it will be created with the provided values + * - If the mapping exists, only the fields provided in the request will be updated + */ +export function idpGroupMappingsCreateIdpGroupMapping( + client: OpalMcpCore, + request: operations.CreateIdpGroupMappingRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.CreateIdpGroupMappingRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.CreateIdpGroupMappingRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); + + const pathParams = { + app_resource_id: encodeSimple("app_resource_id", payload.app_resource_id, { + explode: false, + charEncoding: "percent", + }), + group_id: encodeSimple("group_id", payload.group_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc( + "/idp-group-mappings/{app_resource_id}/groups/{group_id}", + )(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createIdpGroupMapping", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.IdpGroupMapping$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/idpGroupMappingsDeleteIdpGroupMappings.ts b/src/funcs/idpGroupMappingsDeleteIdpGroupMappings.ts index 0a958f9..8affd60 100644 --- a/src/funcs/idpGroupMappingsDeleteIdpGroupMappings.ts +++ b/src/funcs/idpGroupMappingsDeleteIdpGroupMappings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -95,9 +95,9 @@ async function $do( }), }; - const path = pathToFunc("/idp-group-mappings/{app_resource_id}/{group_id}/")( - pathParams, - ); + const path = pathToFunc( + "/idp-group-mappings/{app_resource_id}/groups/{group_id}", + )(pathParams); const headers = new Headers(compactMap({ Accept: "*/*", @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_idp_group_mappings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/idpGroupMappingsGetIdpGroupMapping.ts b/src/funcs/idpGroupMappingsGetIdpGroupMapping.ts new file mode 100644 index 0000000..eeba28d --- /dev/null +++ b/src/funcs/idpGroupMappingsGetIdpGroupMapping.ts @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Gets an `IdpGroupMapping` object for an Okta app and group. + */ +export function idpGroupMappingsGetIdpGroupMapping( + client: OpalMcpCore, + request: operations.GetIdpGroupMappingRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetIdpGroupMappingRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetIdpGroupMappingRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + app_resource_id: encodeSimple("app_resource_id", payload.app_resource_id, { + explode: false, + charEncoding: "percent", + }), + group_id: encodeSimple("group_id", payload.group_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc( + "/idp-group-mappings/{app_resource_id}/groups/{group_id}", + )(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getIdpGroupMapping", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.IdpGroupMapping, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.IdpGroupMapping$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/idpGroupMappingsGetIdpGroupMappings.ts b/src/funcs/idpGroupMappingsGetIdpGroupMappings.ts index 4e7220c..18d383a 100644 --- a/src/funcs/idpGroupMappingsGetIdpGroupMappings.ts +++ b/src/funcs/idpGroupMappingsGetIdpGroupMappings.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getIdpGroupMappings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/idpGroupMappingsUpdateIdpGroupMappings.ts b/src/funcs/idpGroupMappingsUpdateIdpGroupMappings.ts index 2bad94c..fb50d2d 100644 --- a/src/funcs/idpGroupMappingsUpdateIdpGroupMappings.ts +++ b/src/funcs/idpGroupMappingsUpdateIdpGroupMappings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateIdpGroupMappings", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/messageChannelsCreateMessageChannel.ts b/src/funcs/messageChannelsCreateMessageChannel.ts index ca626a8..012fcbf 100644 --- a/src/funcs/messageChannelsCreateMessageChannel.ts +++ b/src/funcs/messageChannelsCreateMessageChannel.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create_message_channel", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/messageChannelsGetMessageChannel.ts b/src/funcs/messageChannelsGetMessageChannel.ts index 5ef01df..8067a9a 100644 --- a/src/funcs/messageChannelsGetMessageChannel.ts +++ b/src/funcs/messageChannelsGetMessageChannel.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get message channel by ID + * + * @remarks * Gets a `MessageChannel` object. */ export function messageChannelsGetMessageChannel( @@ -105,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_message_channel", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/messageChannelsGetMessageChannels.ts b/src/funcs/messageChannelsGetMessageChannels.ts index fda90f2..55f969f 100644 --- a/src/funcs/messageChannelsGetMessageChannels.ts +++ b/src/funcs/messageChannelsGetMessageChannels.ts @@ -23,6 +23,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get message channels + * + * @remarks * Returns a list of `MessageChannel` objects. */ export function messageChannelsGetMessageChannels( @@ -80,7 +83,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_message_channels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/nonHumanIdentitiesGetNhis.ts b/src/funcs/nonHumanIdentitiesGetNhis.ts index 770d0f4..150ec4b 100644 --- a/src/funcs/nonHumanIdentitiesGetNhis.ts +++ b/src/funcs/nonHumanIdentitiesGetNhis.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_nhis", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -201,6 +201,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/onCallSchedulesCreateOnCallSchedule.ts b/src/funcs/onCallSchedulesCreateOnCallSchedule.ts index 1f48d35..92881c5 100644 --- a/src/funcs/onCallSchedulesCreateOnCallSchedule.ts +++ b/src/funcs/onCallSchedulesCreateOnCallSchedule.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create_on_call_schedule", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/onCallSchedulesGetOnCallSchedule.ts b/src/funcs/onCallSchedulesGetOnCallSchedule.ts index b7883ab..130f6f3 100644 --- a/src/funcs/onCallSchedulesGetOnCallSchedule.ts +++ b/src/funcs/onCallSchedulesGetOnCallSchedule.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get on call schedule by ID + * + * @remarks * Gets a `OnCallSchedule` object. */ export function onCallSchedulesGetOnCallSchedule( @@ -107,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_on_call_schedule", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/onCallSchedulesGetOnCallSchedules.ts b/src/funcs/onCallSchedulesGetOnCallSchedules.ts index c17e539..a8a5dce 100644 --- a/src/funcs/onCallSchedulesGetOnCallSchedules.ts +++ b/src/funcs/onCallSchedulesGetOnCallSchedules.ts @@ -23,6 +23,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get on call schedules + * + * @remarks * Returns a list of `OnCallSchedule` objects. */ export function onCallSchedulesGetOnCallSchedules( @@ -80,7 +83,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_on_call_schedules", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersCreateOwner.ts b/src/funcs/ownersCreateOwner.ts index 6422e43..2e352fb 100644 --- a/src/funcs/ownersCreateOwner.ts +++ b/src/funcs/ownersCreateOwner.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createOwner", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersDeleteOwner.ts b/src/funcs/ownersDeleteOwner.ts index 6403460..2d4e763 100644 --- a/src/funcs/ownersDeleteOwner.ts +++ b/src/funcs/ownersDeleteOwner.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_owner", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersGetOwner.ts b/src/funcs/ownersGetOwner.ts index b401475..a92d7bc 100644 --- a/src/funcs/ownersGetOwner.ts +++ b/src/funcs/ownersGetOwner.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get owner by ID + * + * @remarks * Returns an `Owner` object. */ export function ownersGetOwner( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOwner", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersGetOwnerFromName.ts b/src/funcs/ownersGetOwnerFromName.ts index 4f7d426..aaf6160 100644 --- a/src/funcs/ownersGetOwnerFromName.ts +++ b/src/funcs/ownersGetOwnerFromName.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getOwnerFromName", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersGetOwnerUsers.ts b/src/funcs/ownersGetOwnerUsers.ts index ab70108..757cb9c 100644 --- a/src/funcs/ownersGetOwnerUsers.ts +++ b/src/funcs/ownersGetOwnerUsers.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_owner_users", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersGetOwners.ts b/src/funcs/ownersGetOwners.ts index 0b35072..0109452 100644 --- a/src/funcs/ownersGetOwners.ts +++ b/src/funcs/ownersGetOwners.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get owners + * + * @remarks * Returns a list of `Owner` objects. */ export function ownersGetOwners( @@ -115,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_owners", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -202,6 +205,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/ownersSetOwnerUsers.ts b/src/funcs/ownersSetOwnerUsers.ts index e68946d..4e6f9e6 100644 --- a/src/funcs/ownersSetOwnerUsers.ts +++ b/src/funcs/ownersSetOwnerUsers.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_owner_users", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/ownersUpdateOwners.ts b/src/funcs/ownersUpdateOwners.ts index a300029..dee5416 100644 --- a/src/funcs/ownersUpdateOwners.ts +++ b/src/funcs/ownersUpdateOwners.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateOwners", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/requestsApproveRequest.ts b/src/funcs/requestsApproveRequest.ts index e7ab797..84778ec 100644 --- a/src/funcs/requestsApproveRequest.ts +++ b/src/funcs/requestsApproveRequest.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "approveRequest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/requestsCreateRequest.ts b/src/funcs/requestsCreateRequest.ts index 5e847eb..a4aba84 100644 --- a/src/funcs/requestsCreateRequest.ts +++ b/src/funcs/requestsCreateRequest.ts @@ -98,7 +98,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createRequest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/requestsCreateRequestComment.ts b/src/funcs/requestsCreateRequestComment.ts new file mode 100644 index 0000000..3c3d206 --- /dev/null +++ b/src/funcs/requestsCreateRequestComment.ts @@ -0,0 +1,165 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Comment on an access request + */ +export function requestsCreateRequestComment( + client: OpalMcpCore, + request: operations.CreateRequestCommentRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.CreateRequestCommentResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.CreateRequestCommentRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.CreateRequestCommentResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.CreateRequestCommentRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/requests/{id}/comments")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "createRequestComment", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.CreateRequestCommentResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.CreateRequestCommentResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/requestsDenyRequest.ts b/src/funcs/requestsDenyRequest.ts new file mode 100644 index 0000000..af351da --- /dev/null +++ b/src/funcs/requestsDenyRequest.ts @@ -0,0 +1,164 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Deny an access request + */ +export function requestsDenyRequest( + client: OpalMcpCore, + request: operations.DenyRequestRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.DenyRequestResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.DenyRequestRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.DenyRequestResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.DenyRequestRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.RequestBody, { explode: true }); + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/requests/{id}/deny")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "denyRequest", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + operations.DenyRequestResponse, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.DenyRequestResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/requestsGetRequest.ts b/src/funcs/requestsGetRequest.ts index 5593685..d61f30c 100644 --- a/src/funcs/requestsGetRequest.ts +++ b/src/funcs/requestsGetRequest.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get request by ID + * + * @remarks * Returns a request by ID. */ export function requestsGetRequest( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRequest", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/requestsGetRequestComments.ts b/src/funcs/requestsGetRequestComments.ts new file mode 100644 index 0000000..473243f --- /dev/null +++ b/src/funcs/requestsGetRequestComments.ts @@ -0,0 +1,164 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Returns a list of comments for a specific request. + */ +export function requestsGetRequestComments( + client: OpalMcpCore, + request: operations.GetRequestCommentsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.RequestCommentList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetRequestCommentsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.RequestCommentList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetRequestCommentsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/requests/{id}/comments")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getRequestComments", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.RequestCommentList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.RequestCommentList$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/requestsGetRequests.ts b/src/funcs/requestsGetRequests.ts index b2beb70..10ca079 100644 --- a/src/funcs/requestsGetRequests.ts +++ b/src/funcs/requestsGetRequests.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get requests + * + * @remarks * Returns a list of requests for your organization that is visible by the admin. */ export function requestsGetRequests( @@ -101,8 +104,10 @@ async function $do( "cursor": payload.cursor, "end_date_filter": payload.end_date_filter, "page_size": payload.page_size, + "requester_id": payload.requester_id, "show_pending_only": payload.show_pending_only, "start_date_filter": payload.start_date_filter, + "target_user_id": payload.target_user_id, }); const headers = new Headers(compactMap({ @@ -117,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRequests", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -206,6 +211,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "requests"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/requestsGetRequestsRelay.ts b/src/funcs/requestsGetRequestsRelay.ts index c0ff296..4f8250d 100644 --- a/src/funcs/requestsGetRequestsRelay.ts +++ b/src/funcs/requestsGetRequestsRelay.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get requests via Relay + * + * @remarks * Returns a paginated list of requests using Relay-style cursor pagination. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -109,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getRequestsRelay", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesAddResourceNhi.ts b/src/funcs/resourcesAddResourceNhi.ts index 4218dd0..28f8cb5 100644 --- a/src/funcs/resourcesAddResourceNhi.ts +++ b/src/funcs/resourcesAddResourceNhi.ts @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_resource_nhi", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesAddResourceUser.ts b/src/funcs/resourcesAddResourceUser.ts index 0009438..587d685 100644 --- a/src/funcs/resourcesAddResourceUser.ts +++ b/src/funcs/resourcesAddResourceUser.ts @@ -116,7 +116,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_resource_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesCreateResource.ts b/src/funcs/resourcesCreateResource.ts index d51101a..c069002 100644 --- a/src/funcs/resourcesCreateResource.ts +++ b/src/funcs/resourcesCreateResource.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "createResource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesDeleteResource.ts b/src/funcs/resourcesDeleteResource.ts index e6566b9..8c12b47 100644 --- a/src/funcs/resourcesDeleteResource.ts +++ b/src/funcs/resourcesDeleteResource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_resource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesDeleteResourceNhi.ts b/src/funcs/resourcesDeleteResourceNhi.ts index 72175ea..a2a7020 100644 --- a/src/funcs/resourcesDeleteResourceNhi.ts +++ b/src/funcs/resourcesDeleteResourceNhi.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_resource_nhi", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesDeleteResourceUser.ts b/src/funcs/resourcesDeleteResourceUser.ts index 2322967..9837f73 100644 --- a/src/funcs/resourcesDeleteResourceUser.ts +++ b/src/funcs/resourcesDeleteResourceUser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_resource_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResource.ts b/src/funcs/resourcesGetResource.ts index c028e7c..b647c1b 100644 --- a/src/funcs/resourcesGetResource.ts +++ b/src/funcs/resourcesGetResource.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get resource by ID + * + * @remarks * Retrieves a resource. */ export function resourcesGetResource( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceMessageChannels.ts b/src/funcs/resourcesGetResourceMessageChannels.ts index 294db61..b4e0724 100644 --- a/src/funcs/resourcesGetResourceMessageChannels.ts +++ b/src/funcs/resourcesGetResourceMessageChannels.ts @@ -107,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_message_channels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceNhis.ts b/src/funcs/resourcesGetResourceNhis.ts index 0d1c892..c11ab90 100644 --- a/src/funcs/resourcesGetResourceNhis.ts +++ b/src/funcs/resourcesGetResourceNhis.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_nhis", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceReviewerStages.ts b/src/funcs/resourcesGetResourceReviewerStages.ts index 74dee20..c684f67 100644 --- a/src/funcs/resourcesGetResourceReviewerStages.ts +++ b/src/funcs/resourcesGetResourceReviewerStages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_reviewer_stages", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceReviewers.ts b/src/funcs/resourcesGetResourceReviewers.ts index c70c68e..3815c9e 100644 --- a/src/funcs/resourcesGetResourceReviewers.ts +++ b/src/funcs/resourcesGetResourceReviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_reviewers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceScopedRolePermissions.ts b/src/funcs/resourcesGetResourceScopedRolePermissions.ts index b7ffd24..31eff47 100644 --- a/src/funcs/resourcesGetResourceScopedRolePermissions.ts +++ b/src/funcs/resourcesGetResourceScopedRolePermissions.ts @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_scoped_role_permissions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceTags.ts b/src/funcs/resourcesGetResourceTags.ts index 51de695..7c03391 100644 --- a/src/funcs/resourcesGetResourceTags.ts +++ b/src/funcs/resourcesGetResourceTags.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_tags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceUser.ts b/src/funcs/resourcesGetResourceUser.ts index 8624d9e..d9fb773 100644 --- a/src/funcs/resourcesGetResourceUser.ts +++ b/src/funcs/resourcesGetResourceUser.ts @@ -25,6 +25,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get resource user + * + * @remarks * Returns information about a specific user's access to a resource. */ export function resourcesGetResourceUser( @@ -113,7 +116,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getResourceUser", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceUsers.ts b/src/funcs/resourcesGetResourceUsers.ts index 45f1026..e3754b9 100644 --- a/src/funcs/resourcesGetResourceUsers.ts +++ b/src/funcs/resourcesGetResourceUsers.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get resource users + * + * @remarks * Gets the list of users for this resource. */ export function resourcesGetResourceUsers( @@ -108,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_users", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResourceVisibility.ts b/src/funcs/resourcesGetResourceVisibility.ts index 70304d7..f78322e 100644 --- a/src/funcs/resourcesGetResourceVisibility.ts +++ b/src/funcs/resourcesGetResourceVisibility.ts @@ -105,7 +105,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_resource_visibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesGetResources.ts b/src/funcs/resourcesGetResources.ts index f598c5c..19ca11f 100644 --- a/src/funcs/resourcesGetResources.ts +++ b/src/funcs/resourcesGetResources.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get resources + * + * @remarks * Returns a list of resources for your organization. */ export function resourcesGetResources( @@ -106,6 +109,7 @@ async function $do( encodeFormQuery({ "cursor": payload.cursor, "page_size": payload.page_size, + "remote_id": payload.remote_id, "resource_name": payload.resource_name, "resource_type_filter": payload.resource_type_filter, }), @@ -123,7 +127,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getResources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -212,6 +216,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/resourcesGetUserResources.ts b/src/funcs/resourcesGetUserResources.ts new file mode 100644 index 0000000..97f0bc6 --- /dev/null +++ b/src/funcs/resourcesGetUserResources.ts @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Gets the list of resources for this user. + */ +export function resourcesGetUserResources( + client: OpalMcpCore, + request: operations.GetUserResourcesRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.ResourceAccessUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetUserResourcesRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.ResourceAccessUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetUserResourcesRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + user_id: encodeSimple("user_id", payload.user_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/resources/users/{user_id}")(pathParams); + + const query = encodeFormQuery({ + "cursor": payload.cursor, + "include_unmanaged": payload.include_unmanaged, + "limit": payload.limit, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_user_resources", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.ResourceAccessUserList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.ResourceAccessUserList$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/resourcesResourceUserAccessStatusRetrieve.ts b/src/funcs/resourcesResourceUserAccessStatusRetrieve.ts index 1788a1e..abbf5d0 100644 --- a/src/funcs/resourcesResourceUserAccessStatusRetrieve.ts +++ b/src/funcs/resourcesResourceUserAccessStatusRetrieve.ts @@ -121,7 +121,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "resource_user_access_status_retrieve", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesSetResourceMessageChannels.ts b/src/funcs/resourcesSetResourceMessageChannels.ts index b7805d8..8aa05fa 100644 --- a/src/funcs/resourcesSetResourceMessageChannels.ts +++ b/src/funcs/resourcesSetResourceMessageChannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_resource_message_channels", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesSetResourceReviewerStages.ts b/src/funcs/resourcesSetResourceReviewerStages.ts index 5c9308b..2abd6d4 100644 --- a/src/funcs/resourcesSetResourceReviewerStages.ts +++ b/src/funcs/resourcesSetResourceReviewerStages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_resource_reviewer_stages", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesSetResourceReviewers.ts b/src/funcs/resourcesSetResourceReviewers.ts index 705fe70..2755722 100644 --- a/src/funcs/resourcesSetResourceReviewers.ts +++ b/src/funcs/resourcesSetResourceReviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_resource_reviewers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesSetResourceScopedRolePermissions.ts b/src/funcs/resourcesSetResourceScopedRolePermissions.ts index 9e6d338..4eb4877 100644 --- a/src/funcs/resourcesSetResourceScopedRolePermissions.ts +++ b/src/funcs/resourcesSetResourceScopedRolePermissions.ts @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_resource_scoped_role_permissions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesSetResourceVisibility.ts b/src/funcs/resourcesSetResourceVisibility.ts index 25008a2..126ce5e 100644 --- a/src/funcs/resourcesSetResourceVisibility.ts +++ b/src/funcs/resourcesSetResourceVisibility.ts @@ -106,7 +106,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "set_resource_visibility", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesUpdateResourceUser.ts b/src/funcs/resourcesUpdateResourceUser.ts index 6ddcf0d..cd7015f 100644 --- a/src/funcs/resourcesUpdateResourceUser.ts +++ b/src/funcs/resourcesUpdateResourceUser.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "update_resource_user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/resourcesUpdateResources.ts b/src/funcs/resourcesUpdateResources.ts index 1bb2c98..2f8fd68 100644 --- a/src/funcs/resourcesUpdateResources.ts +++ b/src/funcs/resourcesUpdateResources.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "updateResources", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/sessionsSessions.ts b/src/funcs/sessionsSessions.ts index 1ad54cf..38e0bde 100644 --- a/src/funcs/sessionsSessions.ts +++ b/src/funcs/sessionsSessions.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sessions", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsAddGroupTag.ts b/src/funcs/tagsAddGroupTag.ts index f73af15..901e1b9 100644 --- a/src/funcs/tagsAddGroupTag.ts +++ b/src/funcs/tagsAddGroupTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_group_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsAddResourceTag.ts b/src/funcs/tagsAddResourceTag.ts index 9006a17..294c2ba 100644 --- a/src/funcs/tagsAddResourceTag.ts +++ b/src/funcs/tagsAddResourceTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_resource_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsAddUserTag.ts b/src/funcs/tagsAddUserTag.ts index a776423..9e4e497 100644 --- a/src/funcs/tagsAddUserTag.ts +++ b/src/funcs/tagsAddUserTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeJSON, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -109,7 +109,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "add_user_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsCreateTag.ts b/src/funcs/tagsCreateTag.ts index abfeead..9146f3f 100644 --- a/src/funcs/tagsCreateTag.ts +++ b/src/funcs/tagsCreateTag.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsDeleteTagByID.ts b/src/funcs/tagsDeleteTagByID.ts index 0d39e3f..d60d160 100644 --- a/src/funcs/tagsDeleteTagByID.ts +++ b/src/funcs/tagsDeleteTagByID.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "delete_tag_by_ID", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsGetTag.ts b/src/funcs/tagsGetTag.ts index 08725e6..4adfd64 100644 --- a/src/funcs/tagsGetTag.ts +++ b/src/funcs/tagsGetTag.ts @@ -102,7 +102,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsGetTagByID.ts b/src/funcs/tagsGetTagByID.ts index 63c37cb..e44ce1d 100644 --- a/src/funcs/tagsGetTagByID.ts +++ b/src/funcs/tagsGetTagByID.ts @@ -26,6 +26,9 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** + * Get tag by ID + * + * @remarks * UNSTABLE. May be removed at any time. Gets a tag with the given id. */ export function tagsGetTagByID( @@ -104,7 +107,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_tag_by_ID", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsGetTags.ts b/src/funcs/tagsGetTags.ts index 3dbd9ac..f8c3459 100644 --- a/src/funcs/tagsGetTags.ts +++ b/src/funcs/tagsGetTags.ts @@ -32,6 +32,9 @@ import { } from "../types/operations.js"; /** + * Get tags + * + * @remarks * Returns a list of tags created by your organization. */ export function tagsGetTags( @@ -114,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getTags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -201,6 +204,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/tagsRemoveGroupTag.ts b/src/funcs/tagsRemoveGroupTag.ts index 2ad8471..e404ef8 100644 --- a/src/funcs/tagsRemoveGroupTag.ts +++ b/src/funcs/tagsRemoveGroupTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "remove_group_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsRemoveResourceTag.ts b/src/funcs/tagsRemoveResourceTag.ts index 6c0a838..054cac1 100644 --- a/src/funcs/tagsRemoveResourceTag.ts +++ b/src/funcs/tagsRemoveResourceTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "remove_resource_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/tagsRemoveUserTag.ts b/src/funcs/tagsRemoveUserTag.ts index 20116a1..4021a4e 100644 --- a/src/funcs/tagsRemoveUserTag.ts +++ b/src/funcs/tagsRemoveUserTag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -108,7 +108,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "remove_user_tag", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/uarsCreateUar.ts b/src/funcs/uarsCreateUar.ts index e0e037b..e1a3235 100644 --- a/src/funcs/uarsCreateUar.ts +++ b/src/funcs/uarsCreateUar.ts @@ -97,7 +97,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "create_uar", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/uarsGetUARs.ts b/src/funcs/uarsGetUARs.ts index ec1fd85..865c3db 100644 --- a/src/funcs/uarsGetUARs.ts +++ b/src/funcs/uarsGetUARs.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getUARs", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -201,6 +201,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/uarsGetUar.ts b/src/funcs/uarsGetUar.ts index 4c4194c..68ddd1d 100644 --- a/src/funcs/uarsGetUar.ts +++ b/src/funcs/uarsGetUar.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_uar", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/usersGetRemoteUsers.ts b/src/funcs/usersGetRemoteUsers.ts new file mode 100644 index 0000000..5580871 --- /dev/null +++ b/src/funcs/usersGetRemoteUsers.ts @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpalMcpCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { OpalMcpError } from "../models/errors/opalmcperror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Returns a list of remote users for your organization. + */ +export function usersGetRemoteUsers( + client: OpalMcpCore, + request: operations.GetRemoteUsersRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.PaginatedRemoteUsersList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpalMcpCore, + request: operations.GetRemoteUsersRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.PaginatedRemoteUsersList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetRemoteUsersRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/users/remote_users")(); + + const query = encodeFormQuery({ + "cursor": payload.cursor, + "page_size": payload.page_size, + "remote_id": payload.remote_id, + "third_party_provider": payload.third_party_provider, + "user_id": payload.user_id, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.bearerAuth); + const securityInput = secConfig == null ? {} : { bearerAuth: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getRemoteUsers", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.bearerAuth, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.PaginatedRemoteUsersList, + | OpalMcpError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.PaginatedRemoteUsersList$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/usersGetUserTags.ts b/src/funcs/usersGetUserTags.ts index c4a2d1f..c0dbd6f 100644 --- a/src/funcs/usersGetUserTags.ts +++ b/src/funcs/usersGetUserTags.ts @@ -104,7 +104,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "get_user_tags", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/usersGetUsers.ts b/src/funcs/usersGetUsers.ts index d8dfce2..1b85c76 100644 --- a/src/funcs/usersGetUsers.ts +++ b/src/funcs/usersGetUsers.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getUsers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -201,6 +201,9 @@ async function $do( if (typeof nextCursor !== "string") { return { next: () => null }; } + if (nextCursor.trim() === "") { + return { next: () => null }; + } const results = dlv(responseData, "results"); if (!Array.isArray(results) || !results.length) { return { next: () => null }; diff --git a/src/funcs/usersUser.ts b/src/funcs/usersUser.ts index bd65cb0..51402e6 100644 --- a/src/funcs/usersUser.ts +++ b/src/funcs/usersUser.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "user", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b38..0aebd8b 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 4e05c8b..5bc2f67 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.7.0", - genVersion: "2.667.0", - userAgent: "speakeasy-sdk/typescript 0.7.0 2.667.0 1.0 opal-mcp", + sdkVersion: "0.8.0", + genVersion: "2.792.0", + userAgent: "speakeasy-sdk/typescript 0.8.0 2.792.0 1.0 opal-mcp", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 25c9dcb..31cd373 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -102,8 +102,9 @@ export function encodeLabel( }); encValue = mapped?.join("").slice(1); } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; + const k = options?.explode && isPlainObject(value) + ? `${encodeString(pk)}=` + : ""; encValue = `${k}${encodeValue(pv)}`; } @@ -426,6 +427,7 @@ export function queryJoin(...args: (string | undefined)[]): string { type QueryEncoderOptions = { explode?: boolean; charEncoding?: "percent" | "none"; + allowEmptyValue?: string[]; }; type QueryEncoder = ( @@ -440,7 +442,7 @@ type BulkQueryEncoder = ( ) => string; export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( + const bulkEncode = function( values: Record, options?: QueryEncoderOptions, ): string { @@ -450,7 +452,19 @@ export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { charEncoding: options?.charEncoding ?? "percent", }; + const allowEmptySet = new Set(options?.allowEmptyValue ?? []); + const encoded = Object.entries(values).map(([key, value]) => { + if (allowEmptySet.has(key)) { + if ( + value === undefined + || value === null + || value === "" + || (Array.isArray(value) && value.length === 0) + ) { + return `${encodeURIComponent(key)}=`; + } + } return f(key, value, opts); }); return queryJoin(...encoded); diff --git a/src/lib/env.ts b/src/lib/env.ts index 4ac220c..3983dca 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -2,10 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; import { dlv } from "./dlv.js"; -import * as z from "zod"; - export interface Env { OPALMCP_BEARER_AUTH?: string | undefined; @@ -18,6 +17,18 @@ export const envSchema: z.ZodType = z.object({ OPALMCP_DEBUG: z.coerce.boolean().optional(), }); +/** + * Checks for the existence of the Deno global object to determine the environment. + * @returns {boolean} True if the runtime is Deno, false otherwise. + */ +function isDeno() { + if ("Deno" in globalThis) { + return true; + } + + return false; +} + let envMemo: Env | undefined = undefined; /** * Reads and validates environment variables. @@ -27,9 +38,14 @@ export function env(): Env { return envMemo; } - envMemo = envSchema.parse( - dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {}, - ); + let envObject: Record = {}; + if (isDeno()) { + envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {}; + } else { + envObject = dlv(globalThis, "process.env") ?? {}; + } + + envMemo = envSchema.parse(envObject); return envMemo; } diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 0e340b7..47edb97 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../types/fp.js"; diff --git a/src/lib/security.ts b/src/lib/security.ts index 093d179..e6d8b25 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -84,7 +84,10 @@ type SecurityInputOAuth2 = { type SecurityInputOAuth2ClientCredentials = { type: "oauth2:client_credentials"; value: - | { clientID?: string | undefined; clientSecret?: string | undefined } + | { + clientID?: string | undefined; + clientSecret?: string | undefined; + } | null | string | undefined; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356..f3a8de6 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index 1e29d61..6b5bf7c 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; +import { buildCommand, numberParser } from "@stricli/core"; +import * as z from "zod/v3"; import { consoleLoggerLevels } from "../../console-logger.js"; import { mcpScopes } from "../../scopes.js"; diff --git a/src/mcp-server/extensions.ts b/src/mcp-server/extensions.ts index 7aab280..0955a57 100644 --- a/src/mcp-server/extensions.ts +++ b/src/mcp-server/extensions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ZodRawShape } from "zod"; +import { ZodRawShape } from "zod/v3"; import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; import { ToolDefinition } from "./tools.js"; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 0ffdff1..a7c3a33 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.7.0", + currentVersion: "0.8.0", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index 8c325dd..05647eb 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -4,14 +4,18 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; +import { + GetPromptResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { objectOutputType, ZodOptional, ZodType, ZodTypeAny, ZodTypeDef, -} from "zod"; +} from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -33,7 +37,7 @@ export type PromptDefinition< prompt: ( client: OpalMcpCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; } : { @@ -43,7 +47,7 @@ export type PromptDefinition< args?: undefined; prompt: ( client: OpalMcpCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; }; diff --git a/src/mcp-server/resources.ts b/src/mcp-server/resources.ts index dd4d862..22e8bfe 100644 --- a/src/mcp-server/resources.ts +++ b/src/mcp-server/resources.ts @@ -9,7 +9,11 @@ import { } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; +import { + ReadResourceResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { OpalMcpCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -18,7 +22,7 @@ import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; export type ReadResourceCallback = ( client: OpalMcpCore, uri: URL, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceDefinition = { @@ -34,7 +38,7 @@ export type ReadResourceTemplateCallback = ( client: OpalMcpCore, uri: URL, vars: Variables, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceTemplateDefinition = { diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index afab606..31d0cbc 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -36,6 +36,10 @@ import { tool$configurationTemplatesCreateConfigurationTemplate } from "./tools/ import { tool$configurationTemplatesDeleteConfigurationTemplate } from "./tools/configurationTemplatesDeleteConfigurationTemplate.js"; import { tool$configurationTemplatesGetConfigurationTemplates } from "./tools/configurationTemplatesGetConfigurationTemplates.js"; import { tool$configurationTemplatesUpdateConfigurationTemplate } from "./tools/configurationTemplatesUpdateConfigurationTemplate.js"; +import { tool$delegationsCreateDelegation } from "./tools/delegationsCreateDelegation.js"; +import { tool$delegationsDeleteDelegation } from "./tools/delegationsDeleteDelegation.js"; +import { tool$delegationsGetDelegation } from "./tools/delegationsGetDelegation.js"; +import { tool$delegationsGetDelegations } from "./tools/delegationsGetDelegations.js"; import { tool$eventsEvents } from "./tools/eventsEvents.js"; import { tool$groupBindingsCreateGroupBinding } from "./tools/groupBindingsCreateGroupBinding.js"; import { tool$groupBindingsDeleteGroupBinding } from "./tools/groupBindingsDeleteGroupBinding.js"; @@ -60,6 +64,7 @@ import { tool$groupsGetGroups } from "./tools/groupsGetGroups.js"; import { tool$groupsGetGroupTags } from "./tools/groupsGetGroupTags.js"; import { tool$groupsGetGroupUsers } from "./tools/groupsGetGroupUsers.js"; import { tool$groupsGetGroupVisibility } from "./tools/groupsGetGroupVisibility.js"; +import { tool$groupsGetUserGroups } from "./tools/groupsGetUserGroups.js"; import { tool$groupsRemoveGroupContainingGroup } from "./tools/groupsRemoveGroupContainingGroup.js"; import { tool$groupsSetGroupMessageChannels } from "./tools/groupsSetGroupMessageChannels.js"; import { tool$groupsSetGroupOnCallSchedules } from "./tools/groupsSetGroupOnCallSchedules.js"; @@ -69,7 +74,9 @@ import { tool$groupsSetGroupReviewerStages } from "./tools/groupsSetGroupReviewe import { tool$groupsSetGroupVisibility } from "./tools/groupsSetGroupVisibility.js"; import { tool$groupsUpdateGroups } from "./tools/groupsUpdateGroups.js"; import { tool$groupsUpdateGroupUser } from "./tools/groupsUpdateGroupUser.js"; +import { tool$idpGroupMappingsCreateIdpGroupMapping } from "./tools/idpGroupMappingsCreateIdpGroupMapping.js"; import { tool$idpGroupMappingsDeleteIdpGroupMappings } from "./tools/idpGroupMappingsDeleteIdpGroupMappings.js"; +import { tool$idpGroupMappingsGetIdpGroupMapping } from "./tools/idpGroupMappingsGetIdpGroupMapping.js"; import { tool$idpGroupMappingsGetIdpGroupMappings } from "./tools/idpGroupMappingsGetIdpGroupMappings.js"; import { tool$idpGroupMappingsUpdateIdpGroupMappings } from "./tools/idpGroupMappingsUpdateIdpGroupMappings.js"; import { tool$messageChannelsCreateMessageChannel } from "./tools/messageChannelsCreateMessageChannel.js"; @@ -89,7 +96,10 @@ import { tool$ownersSetOwnerUsers } from "./tools/ownersSetOwnerUsers.js"; import { tool$ownersUpdateOwners } from "./tools/ownersUpdateOwners.js"; import { tool$requestsApproveRequest } from "./tools/requestsApproveRequest.js"; import { tool$requestsCreateRequest } from "./tools/requestsCreateRequest.js"; +import { tool$requestsCreateRequestComment } from "./tools/requestsCreateRequestComment.js"; +import { tool$requestsDenyRequest } from "./tools/requestsDenyRequest.js"; import { tool$requestsGetRequest } from "./tools/requestsGetRequest.js"; +import { tool$requestsGetRequestComments } from "./tools/requestsGetRequestComments.js"; import { tool$requestsGetRequests } from "./tools/requestsGetRequests.js"; import { tool$requestsGetRequestsRelay } from "./tools/requestsGetRequestsRelay.js"; import { tool$resourcesAddResourceNhi } from "./tools/resourcesAddResourceNhi.js"; @@ -109,6 +119,7 @@ import { tool$resourcesGetResourceTags } from "./tools/resourcesGetResourceTags. import { tool$resourcesGetResourceUser } from "./tools/resourcesGetResourceUser.js"; import { tool$resourcesGetResourceUsers } from "./tools/resourcesGetResourceUsers.js"; import { tool$resourcesGetResourceVisibility } from "./tools/resourcesGetResourceVisibility.js"; +import { tool$resourcesGetUserResources } from "./tools/resourcesGetUserResources.js"; import { tool$resourcesResourceUserAccessStatusRetrieve } from "./tools/resourcesResourceUserAccessStatusRetrieve.js"; import { tool$resourcesSetResourceMessageChannels } from "./tools/resourcesSetResourceMessageChannels.js"; import { tool$resourcesSetResourceReviewers } from "./tools/resourcesSetResourceReviewers.js"; @@ -132,6 +143,7 @@ import { tool$tagsRemoveUserTag } from "./tools/tagsRemoveUserTag.js"; import { tool$uarsCreateUar } from "./tools/uarsCreateUar.js"; import { tool$uarsGetUar } from "./tools/uarsGetUar.js"; import { tool$uarsGetUARs } from "./tools/uarsGetUARs.js"; +import { tool$usersGetRemoteUsers } from "./tools/usersGetRemoteUsers.js"; import { tool$usersGetUsers } from "./tools/usersGetUsers.js"; import { tool$usersGetUserTags } from "./tools/usersGetUserTags.js"; import { tool$usersUser } from "./tools/usersUser.js"; @@ -146,7 +158,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "OpalMcp", - version: "0.7.0", + version: "0.8.0", }); const client = new OpalMcpCore({ @@ -224,6 +236,7 @@ export function createMCPServer(deps: { tool(tool$groupsUpdateGroupUser); tool(tool$groupsAddGroupUser); tool(tool$groupsDeleteGroupUser); + tool(tool$groupsGetUserGroups); tool(tool$groupBindingsGetGroupBindings); tool(tool$groupBindingsCreateGroupBinding); tool(tool$groupBindingsUpdateGroupBindings); @@ -231,6 +244,8 @@ export function createMCPServer(deps: { tool(tool$groupBindingsDeleteGroupBinding); tool(tool$idpGroupMappingsGetIdpGroupMappings); tool(tool$idpGroupMappingsUpdateIdpGroupMappings); + tool(tool$idpGroupMappingsGetIdpGroupMapping); + tool(tool$idpGroupMappingsCreateIdpGroupMapping); tool(tool$idpGroupMappingsDeleteIdpGroupMappings); tool(tool$ownersGetOwners); tool(tool$ownersCreateOwner); @@ -245,6 +260,9 @@ export function createMCPServer(deps: { tool(tool$requestsGetRequestsRelay); tool(tool$requestsGetRequest); tool(tool$requestsApproveRequest); + tool(tool$requestsDenyRequest); + tool(tool$requestsGetRequestComments); + tool(tool$requestsCreateRequestComment); tool(tool$resourcesGetResources); tool(tool$resourcesUpdateResources); tool(tool$resourcesCreateResource); @@ -270,10 +288,12 @@ export function createMCPServer(deps: { tool(tool$resourcesGetResourceTags); tool(tool$resourcesGetResourceScopedRolePermissions); tool(tool$resourcesSetResourceScopedRolePermissions); + tool(tool$resourcesGetUserResources); tool(tool$nonHumanIdentitiesGetNhis); tool(tool$sessionsSessions); tool(tool$usersUser); tool(tool$usersGetUsers); + tool(tool$usersGetRemoteUsers); tool(tool$usersGetUserTags); tool(tool$accessRulesCreateAccessRule); tool(tool$accessRulesGetAccessRule); @@ -298,6 +318,10 @@ export function createMCPServer(deps: { tool(tool$uarsGetUARs); tool(tool$uarsCreateUar); tool(tool$uarsGetUar); + tool(tool$delegationsGetDelegations); + tool(tool$delegationsCreateDelegation); + tool(tool$delegationsGetDelegation); + tool(tool$delegationsDeleteDelegation); return server; } diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts index 9dc6d2f..3e94144 100644 --- a/src/mcp-server/shared.ts +++ b/src/mcp-server/shared.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { bytesToBase64 } from "../lib/base64.js"; - type BinaryData = | Uint8Array | ArrayBuffer diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index 8747157..edf95ed 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -4,8 +4,12 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; +import { + CallToolResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; +import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3"; import { OpalMcpCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -20,7 +24,7 @@ export type ToolDefinition = tool: ( client: OpalMcpCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; } : { @@ -30,7 +34,7 @@ export type ToolDefinition = args?: undefined; tool: ( client: OpalMcpCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; }; diff --git a/src/mcp-server/tools/appsGetApp.ts b/src/mcp-server/tools/appsGetApp.ts index 69e1d38..12efa44 100644 --- a/src/mcp-server/tools/appsGetApp.ts +++ b/src/mcp-server/tools/appsGetApp.ts @@ -12,7 +12,9 @@ const args = { export const tool$appsGetApp: ToolDefinition = { name: "apps-get-app", - description: `Returns an \`App\` object.`, + description: `Get app by ID + +Returns an \`App\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/appsGetApps.ts b/src/mcp-server/tools/appsGetApps.ts index 2388d0b..dba0ffd 100644 --- a/src/mcp-server/tools/appsGetApps.ts +++ b/src/mcp-server/tools/appsGetApps.ts @@ -12,7 +12,9 @@ const args = { export const tool$appsGetApps: ToolDefinition = { name: "apps-get-apps", - description: `Returns a list of \`App\` objects.`, + description: `Get apps + +Returns a list of \`App\` objects.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/bundlesGetBundle.ts b/src/mcp-server/tools/bundlesGetBundle.ts index 9d41424..35cd2a8 100644 --- a/src/mcp-server/tools/bundlesGetBundle.ts +++ b/src/mcp-server/tools/bundlesGetBundle.ts @@ -12,7 +12,9 @@ const args = { export const tool$bundlesGetBundle: ToolDefinition = { name: "bundles-get-bundle", - description: `Returns a \`Bundle\` object.`, + description: `Get bundle by ID + +Returns a \`Bundle\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/bundlesGetBundles.ts b/src/mcp-server/tools/bundlesGetBundles.ts index 11c4941..35dc396 100644 --- a/src/mcp-server/tools/bundlesGetBundles.ts +++ b/src/mcp-server/tools/bundlesGetBundles.ts @@ -12,7 +12,9 @@ const args = { export const tool$bundlesGetBundles: ToolDefinition = { name: "bundles-get-bundles", - description: `Returns a list of \`Bundle\` objects.`, + description: `Get bundles + +Returns a list of \`Bundle\` objects.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/delegationsCreateDelegation.ts b/src/mcp-server/tools/delegationsCreateDelegation.ts new file mode 100644 index 0000000..25b4fbd --- /dev/null +++ b/src/mcp-server/tools/delegationsCreateDelegation.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { delegationsCreateDelegation } from "../../funcs/delegationsCreateDelegation.js"; +import * as components from "../../models/components/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: components.CreateDelegationRequest$inboundSchema, +}; + +export const tool$delegationsCreateDelegation: ToolDefinition = { + name: "delegations-create-delegation", + description: + `Creates a new request reviewer delegation to delegate access review requests from one user to another.`, + scopes: ["write"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await delegationsCreateDelegation( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/delegationsDeleteDelegation.ts b/src/mcp-server/tools/delegationsDeleteDelegation.ts new file mode 100644 index 0000000..7a7a1e0 --- /dev/null +++ b/src/mcp-server/tools/delegationsDeleteDelegation.ts @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { delegationsDeleteDelegation } from "../../funcs/delegationsDeleteDelegation.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.DeleteDelegationRequest$inboundSchema, +}; + +export const tool$delegationsDeleteDelegation: ToolDefinition = { + name: "delegations-delete-delegation", + description: `Deletes a delegation by its ID.`, + scopes: ["write"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await delegationsDeleteDelegation( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/delegationsGetDelegation.ts b/src/mcp-server/tools/delegationsGetDelegation.ts new file mode 100644 index 0000000..204952a --- /dev/null +++ b/src/mcp-server/tools/delegationsGetDelegation.ts @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { delegationsGetDelegation } from "../../funcs/delegationsGetDelegation.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetDelegationRequest$inboundSchema, +}; + +export const tool$delegationsGetDelegation: ToolDefinition = { + name: "delegations-get-delegation", + description: `Get delegation by ID + +Returns a specific delegation by its ID.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await delegationsGetDelegation( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/delegationsGetDelegations.ts b/src/mcp-server/tools/delegationsGetDelegations.ts new file mode 100644 index 0000000..c3b5e60 --- /dev/null +++ b/src/mcp-server/tools/delegationsGetDelegations.ts @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { delegationsGetDelegations } from "../../funcs/delegationsGetDelegations.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetDelegationsRequest$inboundSchema, +}; + +export const tool$delegationsGetDelegations: ToolDefinition = { + name: "delegations-get-delegations", + description: `Get delegations + +Returns a list of request reviewer delegations configured for your organization.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await delegationsGetDelegations( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/groupBindingsGetGroupBinding.ts b/src/mcp-server/tools/groupBindingsGetGroupBinding.ts index f32f3e9..10e5b07 100644 --- a/src/mcp-server/tools/groupBindingsGetGroupBinding.ts +++ b/src/mcp-server/tools/groupBindingsGetGroupBinding.ts @@ -12,7 +12,9 @@ const args = { export const tool$groupBindingsGetGroupBinding: ToolDefinition = { name: "group-bindings-get-group-binding", - description: `Returns a \`GroupBinding\` object.`, + description: `Get group binding by ID + +Returns a \`GroupBinding\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupBindingsGetGroupBindings.ts b/src/mcp-server/tools/groupBindingsGetGroupBindings.ts index cfcda6d..075aaa2 100644 --- a/src/mcp-server/tools/groupBindingsGetGroupBindings.ts +++ b/src/mcp-server/tools/groupBindingsGetGroupBindings.ts @@ -12,7 +12,9 @@ const args = { export const tool$groupBindingsGetGroupBindings: ToolDefinition = { name: "group-bindings-get-group-bindings", - description: `Returns a list of \`GroupBinding\` objects.`, + description: `Get group bindings + +Returns a list of \`GroupBinding\` objects.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupsGetGroup.ts b/src/mcp-server/tools/groupsGetGroup.ts index 2229cc9..f8b05cf 100644 --- a/src/mcp-server/tools/groupsGetGroup.ts +++ b/src/mcp-server/tools/groupsGetGroup.ts @@ -12,7 +12,9 @@ const args = { export const tool$groupsGetGroup: ToolDefinition = { name: "groups-get-group", - description: `Returns a \`Group\` object.`, + description: `Get group by ID + +Returns a \`Group\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupsGetGroupContainingGroup.ts b/src/mcp-server/tools/groupsGetGroupContainingGroup.ts index 89bab25..716e77c 100644 --- a/src/mcp-server/tools/groupsGetGroupContainingGroup.ts +++ b/src/mcp-server/tools/groupsGetGroupContainingGroup.ts @@ -12,7 +12,9 @@ const args = { export const tool$groupsGetGroupContainingGroup: ToolDefinition = { name: "groups-get-group-containing-group", - description: `Gets a specific containing group for a group.`, + description: `Get nested group by ID + +Gets a specific containing group for a group.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupsGetGroupContainingGroups.ts b/src/mcp-server/tools/groupsGetGroupContainingGroups.ts index 9a1d421..5b5d07d 100644 --- a/src/mcp-server/tools/groupsGetGroupContainingGroups.ts +++ b/src/mcp-server/tools/groupsGetGroupContainingGroups.ts @@ -13,7 +13,9 @@ const args = { export const tool$groupsGetGroupContainingGroups: ToolDefinition = { name: "groups-get-group-containing-groups", - description: `Gets the list of groups that the group gives access to.`, + description: `Get nested groups + +Gets the list of groups that the group gives access to.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupsGetGroups.ts b/src/mcp-server/tools/groupsGetGroups.ts index df90388..f79e818 100644 --- a/src/mcp-server/tools/groupsGetGroups.ts +++ b/src/mcp-server/tools/groupsGetGroups.ts @@ -12,7 +12,9 @@ const args = { export const tool$groupsGetGroups: ToolDefinition = { name: "groups-get-groups", - description: `Returns a list of groups for your organization.`, + description: `Get groups + +Returns a list of groups for your organization.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/groupsGetUserGroups.ts b/src/mcp-server/tools/groupsGetUserGroups.ts new file mode 100644 index 0000000..7dfb115 --- /dev/null +++ b/src/mcp-server/tools/groupsGetUserGroups.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { groupsGetUserGroups } from "../../funcs/groupsGetUserGroups.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetUserGroupsRequest$inboundSchema, +}; + +export const tool$groupsGetUserGroups: ToolDefinition = { + name: "groups-get-user-groups", + description: `Returns all groups that the user is a member of.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await groupsGetUserGroups( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/idpGroupMappingsCreateIdpGroupMapping.ts b/src/mcp-server/tools/idpGroupMappingsCreateIdpGroupMapping.ts new file mode 100644 index 0000000..e9e8429 --- /dev/null +++ b/src/mcp-server/tools/idpGroupMappingsCreateIdpGroupMapping.ts @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { idpGroupMappingsCreateIdpGroupMapping } from "../../funcs/idpGroupMappingsCreateIdpGroupMapping.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.CreateIdpGroupMappingRequest$inboundSchema, +}; + +export const tool$idpGroupMappingsCreateIdpGroupMapping: ToolDefinition< + typeof args +> = { + name: "idp-group-mappings-create-idp-group-mapping", + description: + `Creates or updates an individual \`IdpGroupMapping\` object (upsert operation). + +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated +`, + scopes: ["write"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await idpGroupMappingsCreateIdpGroupMapping( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/idpGroupMappingsGetIdpGroupMapping.ts b/src/mcp-server/tools/idpGroupMappingsGetIdpGroupMapping.ts new file mode 100644 index 0000000..058ed3c --- /dev/null +++ b/src/mcp-server/tools/idpGroupMappingsGetIdpGroupMapping.ts @@ -0,0 +1,38 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { idpGroupMappingsGetIdpGroupMapping } from "../../funcs/idpGroupMappingsGetIdpGroupMapping.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetIdpGroupMappingRequest$inboundSchema, +}; + +export const tool$idpGroupMappingsGetIdpGroupMapping: ToolDefinition< + typeof args +> = { + name: "idp-group-mappings-get-idp-group-mapping", + description: `Gets an \`IdpGroupMapping\` object for an Okta app and group.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await idpGroupMappingsGetIdpGroupMapping( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/messageChannelsGetMessageChannel.ts b/src/mcp-server/tools/messageChannelsGetMessageChannel.ts index 76cddb5..77a67c7 100644 --- a/src/mcp-server/tools/messageChannelsGetMessageChannel.ts +++ b/src/mcp-server/tools/messageChannelsGetMessageChannel.ts @@ -14,7 +14,9 @@ export const tool$messageChannelsGetMessageChannel: ToolDefinition< typeof args > = { name: "message-channels-get-message-channel", - description: `Gets a \`MessageChannel\` object.`, + description: `Get message channel by ID + +Gets a \`MessageChannel\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/messageChannelsGetMessageChannels.ts b/src/mcp-server/tools/messageChannelsGetMessageChannels.ts index 18bd70b..de66aa7 100644 --- a/src/mcp-server/tools/messageChannelsGetMessageChannels.ts +++ b/src/mcp-server/tools/messageChannelsGetMessageChannels.ts @@ -7,7 +7,9 @@ import { formatResult, ToolDefinition } from "../tools.js"; export const tool$messageChannelsGetMessageChannels: ToolDefinition = { name: "message-channels-get-message-channels", - description: `Returns a list of \`MessageChannel\` objects.`, + description: `Get message channels + +Returns a list of \`MessageChannel\` objects.`, scopes: ["read"], tool: async (client, ctx) => { const [result, apiCall] = await messageChannelsGetMessageChannels( diff --git a/src/mcp-server/tools/onCallSchedulesGetOnCallSchedule.ts b/src/mcp-server/tools/onCallSchedulesGetOnCallSchedule.ts index 77ce8f2..54dc9a7 100644 --- a/src/mcp-server/tools/onCallSchedulesGetOnCallSchedule.ts +++ b/src/mcp-server/tools/onCallSchedulesGetOnCallSchedule.ts @@ -14,7 +14,9 @@ export const tool$onCallSchedulesGetOnCallSchedule: ToolDefinition< typeof args > = { name: "on-call-schedules-get-on-call-schedule", - description: `Gets a \`OnCallSchedule\` object.`, + description: `Get on call schedule by ID + +Gets a \`OnCallSchedule\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/onCallSchedulesGetOnCallSchedules.ts b/src/mcp-server/tools/onCallSchedulesGetOnCallSchedules.ts index 38b61bb..6b3ea21 100644 --- a/src/mcp-server/tools/onCallSchedulesGetOnCallSchedules.ts +++ b/src/mcp-server/tools/onCallSchedulesGetOnCallSchedules.ts @@ -7,7 +7,9 @@ import { formatResult, ToolDefinition } from "../tools.js"; export const tool$onCallSchedulesGetOnCallSchedules: ToolDefinition = { name: "on-call-schedules-get-on-call-schedules", - description: `Returns a list of \`OnCallSchedule\` objects.`, + description: `Get on call schedules + +Returns a list of \`OnCallSchedule\` objects.`, scopes: ["read"], tool: async (client, ctx) => { const [result, apiCall] = await onCallSchedulesGetOnCallSchedules( diff --git a/src/mcp-server/tools/ownersGetOwner.ts b/src/mcp-server/tools/ownersGetOwner.ts index 2238003..e4af630 100644 --- a/src/mcp-server/tools/ownersGetOwner.ts +++ b/src/mcp-server/tools/ownersGetOwner.ts @@ -12,7 +12,9 @@ const args = { export const tool$ownersGetOwner: ToolDefinition = { name: "owners-get-owner", - description: `Returns an \`Owner\` object.`, + description: `Get owner by ID + +Returns an \`Owner\` object.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/ownersGetOwners.ts b/src/mcp-server/tools/ownersGetOwners.ts index 9a315a2..7a73a19 100644 --- a/src/mcp-server/tools/ownersGetOwners.ts +++ b/src/mcp-server/tools/ownersGetOwners.ts @@ -12,7 +12,9 @@ const args = { export const tool$ownersGetOwners: ToolDefinition = { name: "owners-get-owners", - description: `Returns a list of \`Owner\` objects.`, + description: `Get owners + +Returns a list of \`Owner\` objects.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/requestsCreateRequestComment.ts b/src/mcp-server/tools/requestsCreateRequestComment.ts new file mode 100644 index 0000000..7b802b6 --- /dev/null +++ b/src/mcp-server/tools/requestsCreateRequestComment.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { requestsCreateRequestComment } from "../../funcs/requestsCreateRequestComment.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.CreateRequestCommentRequest$inboundSchema, +}; + +export const tool$requestsCreateRequestComment: ToolDefinition = { + name: "requests-create-request-comment", + description: `Comment on an access request`, + scopes: ["write"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await requestsCreateRequestComment( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/requestsDenyRequest.ts b/src/mcp-server/tools/requestsDenyRequest.ts new file mode 100644 index 0000000..864db8a --- /dev/null +++ b/src/mcp-server/tools/requestsDenyRequest.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { requestsDenyRequest } from "../../funcs/requestsDenyRequest.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.DenyRequestRequest$inboundSchema, +}; + +export const tool$requestsDenyRequest: ToolDefinition = { + name: "requests-deny-request", + description: `Deny an access request`, + scopes: ["write"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await requestsDenyRequest( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/requestsGetRequest.ts b/src/mcp-server/tools/requestsGetRequest.ts index 18d2804..9f2777c 100644 --- a/src/mcp-server/tools/requestsGetRequest.ts +++ b/src/mcp-server/tools/requestsGetRequest.ts @@ -12,7 +12,9 @@ const args = { export const tool$requestsGetRequest: ToolDefinition = { name: "requests-get-request", - description: `Returns a request by ID.`, + description: `Get request by ID + +Returns a request by ID.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/requestsGetRequestComments.ts b/src/mcp-server/tools/requestsGetRequestComments.ts new file mode 100644 index 0000000..88ef687 --- /dev/null +++ b/src/mcp-server/tools/requestsGetRequestComments.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { requestsGetRequestComments } from "../../funcs/requestsGetRequestComments.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetRequestCommentsRequest$inboundSchema, +}; + +export const tool$requestsGetRequestComments: ToolDefinition = { + name: "requests-get-request-comments", + description: `Returns a list of comments for a specific request.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await requestsGetRequestComments( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/requestsGetRequests.ts b/src/mcp-server/tools/requestsGetRequests.ts index d232748..cf76911 100644 --- a/src/mcp-server/tools/requestsGetRequests.ts +++ b/src/mcp-server/tools/requestsGetRequests.ts @@ -12,8 +12,9 @@ const args = { export const tool$requestsGetRequests: ToolDefinition = { name: "requests-get-requests", - description: - `Returns a list of requests for your organization that is visible by the admin.`, + description: `Get requests + +Returns a list of requests for your organization that is visible by the admin.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/requestsGetRequestsRelay.ts b/src/mcp-server/tools/requestsGetRequestsRelay.ts index 61a85e3..cbbc562 100644 --- a/src/mcp-server/tools/requestsGetRequestsRelay.ts +++ b/src/mcp-server/tools/requestsGetRequestsRelay.ts @@ -12,8 +12,9 @@ const args = { export const tool$requestsGetRequestsRelay: ToolDefinition = { name: "requests-get-requests-relay", - description: - `Returns a paginated list of requests using Relay-style cursor pagination.`, + description: `Get requests via Relay + +Returns a paginated list of requests using Relay-style cursor pagination.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/resourcesGetResource.ts b/src/mcp-server/tools/resourcesGetResource.ts index 94ef240..e5fa595 100644 --- a/src/mcp-server/tools/resourcesGetResource.ts +++ b/src/mcp-server/tools/resourcesGetResource.ts @@ -12,7 +12,9 @@ const args = { export const tool$resourcesGetResource: ToolDefinition = { name: "resources-get-resource", - description: `Retrieves a resource.`, + description: `Get resource by ID + +Retrieves a resource.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/resourcesGetResourceUser.ts b/src/mcp-server/tools/resourcesGetResourceUser.ts index c9b63ac..9d9ec74 100644 --- a/src/mcp-server/tools/resourcesGetResourceUser.ts +++ b/src/mcp-server/tools/resourcesGetResourceUser.ts @@ -12,8 +12,9 @@ const args = { export const tool$resourcesGetResourceUser: ToolDefinition = { name: "resources-get-resource-user", - description: - `Returns information about a specific user's access to a resource.`, + description: `Get resource user + +Returns information about a specific user's access to a resource.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/resourcesGetResourceUsers.ts b/src/mcp-server/tools/resourcesGetResourceUsers.ts index 9ee1af8..86617ce 100644 --- a/src/mcp-server/tools/resourcesGetResourceUsers.ts +++ b/src/mcp-server/tools/resourcesGetResourceUsers.ts @@ -12,7 +12,9 @@ const args = { export const tool$resourcesGetResourceUsers: ToolDefinition = { name: "resources-get-resource-users", - description: `Gets the list of users for this resource.`, + description: `Get resource users + +Gets the list of users for this resource.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/resourcesGetResources.ts b/src/mcp-server/tools/resourcesGetResources.ts index 83d1a56..e270435 100644 --- a/src/mcp-server/tools/resourcesGetResources.ts +++ b/src/mcp-server/tools/resourcesGetResources.ts @@ -12,7 +12,9 @@ const args = { export const tool$resourcesGetResources: ToolDefinition = { name: "resources-get-resources", - description: `Returns a list of resources for your organization.`, + description: `Get resources + +Returns a list of resources for your organization.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/resourcesGetUserResources.ts b/src/mcp-server/tools/resourcesGetUserResources.ts new file mode 100644 index 0000000..a1decf2 --- /dev/null +++ b/src/mcp-server/tools/resourcesGetUserResources.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { resourcesGetUserResources } from "../../funcs/resourcesGetUserResources.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetUserResourcesRequest$inboundSchema, +}; + +export const tool$resourcesGetUserResources: ToolDefinition = { + name: "resources-get-user-resources", + description: `Gets the list of resources for this user.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await resourcesGetUserResources( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/tagsGetTagByID.ts b/src/mcp-server/tools/tagsGetTagByID.ts index 5e4987f..73ea433 100644 --- a/src/mcp-server/tools/tagsGetTagByID.ts +++ b/src/mcp-server/tools/tagsGetTagByID.ts @@ -12,8 +12,9 @@ const args = { export const tool$tagsGetTagByID: ToolDefinition = { name: "tags-get-tag-by-ID", - description: - `UNSTABLE. May be removed at any time. Gets a tag with the given id.`, + description: `Get tag by ID + +UNSTABLE. May be removed at any time. Gets a tag with the given id.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/tagsGetTags.ts b/src/mcp-server/tools/tagsGetTags.ts index 6cd51cc..22e4e25 100644 --- a/src/mcp-server/tools/tagsGetTags.ts +++ b/src/mcp-server/tools/tagsGetTags.ts @@ -12,7 +12,9 @@ const args = { export const tool$tagsGetTags: ToolDefinition = { name: "tags-get-tags", - description: `Returns a list of tags created by your organization.`, + description: `Get tags + +Returns a list of tags created by your organization.`, scopes: ["read"], args, tool: async (client, args, ctx) => { diff --git a/src/mcp-server/tools/usersGetRemoteUsers.ts b/src/mcp-server/tools/usersGetRemoteUsers.ts new file mode 100644 index 0000000..a113ac1 --- /dev/null +++ b/src/mcp-server/tools/usersGetRemoteUsers.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { usersGetRemoteUsers } from "../../funcs/usersGetRemoteUsers.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.GetRemoteUsersRequest$inboundSchema, +}; + +export const tool$usersGetRemoteUsers: ToolDefinition = { + name: "users-get-remote-users", + description: `Returns a list of remote users for your organization.`, + scopes: ["read"], + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await usersGetRemoteUsers( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/models/components/access.ts b/src/models/components/access.ts index 5f406f0..f4e2b60 100644 --- a/src/models/components/access.ts +++ b/src/models/components/access.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -97,7 +97,6 @@ export const Access$inboundSchema: z.ZodType = z "num_access_paths": "numAccessPaths", }); }); - /** @internal */ export type Access$Outbound = { principal_id: string; @@ -138,23 +137,9 @@ export const Access$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Access$ { - /** @deprecated use `Access$inboundSchema` instead. */ - export const inboundSchema = Access$inboundSchema; - /** @deprecated use `Access$outboundSchema` instead. */ - export const outboundSchema = Access$outboundSchema; - /** @deprecated use `Access$Outbound` instead. */ - export type Outbound = Access$Outbound; -} - export function accessToJSON(access: Access): string { return JSON.stringify(Access$outboundSchema.parse(access)); } - export function accessFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/accesslist.ts b/src/models/components/accesslist.ts index 9945047..8e9a6c8 100644 --- a/src/models/components/accesslist.ts +++ b/src/models/components/accesslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const AccessList$inboundSchema: z.ZodType< > = z.object({ results: z.array(Access$inboundSchema).optional(), }); - /** @internal */ export type AccessList$Outbound = { results?: Array | undefined; @@ -40,23 +39,9 @@ export const AccessList$outboundSchema: z.ZodType< results: z.array(Access$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessList$ { - /** @deprecated use `AccessList$inboundSchema` instead. */ - export const inboundSchema = AccessList$inboundSchema; - /** @deprecated use `AccessList$outboundSchema` instead. */ - export const outboundSchema = AccessList$outboundSchema; - /** @deprecated use `AccessList$Outbound` instead. */ - export type Outbound = AccessList$Outbound; -} - export function accessListToJSON(accessList: AccessList): string { return JSON.stringify(AccessList$outboundSchema.parse(accessList)); } - export function accessListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/accessrule.ts b/src/models/components/accessrule.ts index 7785ebe..d5fadf2 100644 --- a/src/models/components/accessrule.ts +++ b/src/models/components/accessrule.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -65,23 +65,11 @@ export type AccessRule = { export const AccessRuleStatus$inboundSchema: z.ZodNativeEnum< typeof AccessRuleStatus > = z.nativeEnum(AccessRuleStatus); - /** @internal */ export const AccessRuleStatus$outboundSchema: z.ZodNativeEnum< typeof AccessRuleStatus > = AccessRuleStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessRuleStatus$ { - /** @deprecated use `AccessRuleStatus$inboundSchema` instead. */ - export const inboundSchema = AccessRuleStatus$inboundSchema; - /** @deprecated use `AccessRuleStatus$outboundSchema` instead. */ - export const outboundSchema = AccessRuleStatus$outboundSchema; -} - /** @internal */ export const AccessRule$inboundSchema: z.ZodType< AccessRule, @@ -100,7 +88,6 @@ export const AccessRule$inboundSchema: z.ZodType< "admin_owner_id": "adminOwnerId", }); }); - /** @internal */ export type AccessRule$Outbound = { access_rule_id: string; @@ -130,23 +117,9 @@ export const AccessRule$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessRule$ { - /** @deprecated use `AccessRule$inboundSchema` instead. */ - export const inboundSchema = AccessRule$inboundSchema; - /** @deprecated use `AccessRule$outboundSchema` instead. */ - export const outboundSchema = AccessRule$outboundSchema; - /** @deprecated use `AccessRule$Outbound` instead. */ - export type Outbound = AccessRule$Outbound; -} - export function accessRuleToJSON(accessRule: AccessRule): string { return JSON.stringify(AccessRule$outboundSchema.parse(accessRule)); } - export function accessRuleFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/app.ts b/src/models/components/app.ts index 669d387..13d4bcc 100644 --- a/src/models/components/app.ts +++ b/src/models/components/app.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -72,7 +72,6 @@ export const App$inboundSchema: z.ZodType = z "app_type": "appType", }); }); - /** @internal */ export type App$Outbound = { app_id: string; @@ -100,23 +99,9 @@ export const App$outboundSchema: z.ZodType = z }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace App$ { - /** @deprecated use `App$inboundSchema` instead. */ - export const inboundSchema = App$inboundSchema; - /** @deprecated use `App$outboundSchema` instead. */ - export const outboundSchema = App$outboundSchema; - /** @deprecated use `App$Outbound` instead. */ - export type Outbound = App$Outbound; -} - export function appToJSON(app: App): string { return JSON.stringify(App$outboundSchema.parse(app)); } - export function appFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/appslist.ts b/src/models/components/appslist.ts index 9166d1c..0934959 100644 --- a/src/models/components/appslist.ts +++ b/src/models/components/appslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const AppsList$inboundSchema: z.ZodType< > = z.object({ apps: z.array(App$inboundSchema), }); - /** @internal */ export type AppsList$Outbound = { apps: Array; @@ -43,23 +42,9 @@ export const AppsList$outboundSchema: z.ZodType< apps: z.array(App$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppsList$ { - /** @deprecated use `AppsList$inboundSchema` instead. */ - export const inboundSchema = AppsList$inboundSchema; - /** @deprecated use `AppsList$outboundSchema` instead. */ - export const outboundSchema = AppsList$outboundSchema; - /** @deprecated use `AppsList$Outbound` instead. */ - export type Outbound = AppsList$Outbound; -} - export function appsListToJSON(appsList: AppsList): string { return JSON.stringify(AppsList$outboundSchema.parse(appsList)); } - export function appsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/apptypeenum.ts b/src/models/components/apptypeenum.ts index 3980013..b0e5d8e 100644 --- a/src/models/components/apptypeenum.ts +++ b/src/models/components/apptypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -41,18 +41,6 @@ export type AppTypeEnum = ClosedEnum; /** @internal */ export const AppTypeEnum$inboundSchema: z.ZodNativeEnum = z .nativeEnum(AppTypeEnum); - /** @internal */ export const AppTypeEnum$outboundSchema: z.ZodNativeEnum = AppTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppTypeEnum$ { - /** @deprecated use `AppTypeEnum$inboundSchema` instead. */ - export const inboundSchema = AppTypeEnum$inboundSchema; - /** @deprecated use `AppTypeEnum$outboundSchema` instead. */ - export const outboundSchema = AppTypeEnum$outboundSchema; -} diff --git a/src/models/components/appvalidation.ts b/src/models/components/appvalidation.ts index 2eb6fa1..bc3e47e 100644 --- a/src/models/components/appvalidation.ts +++ b/src/models/components/appvalidation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -78,7 +78,6 @@ export const AppValidation$inboundSchema: z.ZodType< "updated_at": "updatedAt", }); }); - /** @internal */ export type AppValidation$Outbound = { key: string; @@ -110,23 +109,9 @@ export const AppValidation$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppValidation$ { - /** @deprecated use `AppValidation$inboundSchema` instead. */ - export const inboundSchema = AppValidation$inboundSchema; - /** @deprecated use `AppValidation$outboundSchema` instead. */ - export const outboundSchema = AppValidation$outboundSchema; - /** @deprecated use `AppValidation$Outbound` instead. */ - export type Outbound = AppValidation$Outbound; -} - export function appValidationToJSON(appValidation: AppValidation): string { return JSON.stringify(AppValidation$outboundSchema.parse(appValidation)); } - export function appValidationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/appvalidationseverityenum.ts b/src/models/components/appvalidationseverityenum.ts index bc46278..070a5f8 100644 --- a/src/models/components/appvalidationseverityenum.ts +++ b/src/models/components/appvalidationseverityenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -25,19 +25,7 @@ export type AppValidationSeverityEnum = ClosedEnum< export const AppValidationSeverityEnum$inboundSchema: z.ZodNativeEnum< typeof AppValidationSeverityEnum > = z.nativeEnum(AppValidationSeverityEnum); - /** @internal */ export const AppValidationSeverityEnum$outboundSchema: z.ZodNativeEnum< typeof AppValidationSeverityEnum > = AppValidationSeverityEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppValidationSeverityEnum$ { - /** @deprecated use `AppValidationSeverityEnum$inboundSchema` instead. */ - export const inboundSchema = AppValidationSeverityEnum$inboundSchema; - /** @deprecated use `AppValidationSeverityEnum$outboundSchema` instead. */ - export const outboundSchema = AppValidationSeverityEnum$outboundSchema; -} diff --git a/src/models/components/appvalidationstatusenum.ts b/src/models/components/appvalidationstatusenum.ts index 8bede08..435a079 100644 --- a/src/models/components/appvalidationstatusenum.ts +++ b/src/models/components/appvalidationstatusenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -23,19 +23,7 @@ export type AppValidationStatusEnum = ClosedEnum< export const AppValidationStatusEnum$inboundSchema: z.ZodNativeEnum< typeof AppValidationStatusEnum > = z.nativeEnum(AppValidationStatusEnum); - /** @internal */ export const AppValidationStatusEnum$outboundSchema: z.ZodNativeEnum< typeof AppValidationStatusEnum > = AppValidationStatusEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AppValidationStatusEnum$ { - /** @deprecated use `AppValidationStatusEnum$inboundSchema` instead. */ - export const inboundSchema = AppValidationStatusEnum$inboundSchema; - /** @deprecated use `AppValidationStatusEnum$outboundSchema` instead. */ - export const outboundSchema = AppValidationStatusEnum$outboundSchema; -} diff --git a/src/models/components/bundle.ts b/src/models/components/bundle.ts index 950894f..31a335f 100644 --- a/src/models/components/bundle.ts +++ b/src/models/components/bundle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -74,7 +74,6 @@ export const Bundle$inboundSchema: z.ZodType = z "total_num_groups": "totalNumGroups", }); }); - /** @internal */ export type Bundle$Outbound = { bundle_id?: string | undefined; @@ -115,23 +114,9 @@ export const Bundle$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Bundle$ { - /** @deprecated use `Bundle$inboundSchema` instead. */ - export const inboundSchema = Bundle$inboundSchema; - /** @deprecated use `Bundle$outboundSchema` instead. */ - export const outboundSchema = Bundle$outboundSchema; - /** @deprecated use `Bundle$Outbound` instead. */ - export type Outbound = Bundle$Outbound; -} - export function bundleToJSON(bundle: Bundle): string { return JSON.stringify(Bundle$outboundSchema.parse(bundle)); } - export function bundleFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bundlegroup.ts b/src/models/components/bundlegroup.ts index 05c9909..6bd1e5a 100644 --- a/src/models/components/bundlegroup.ts +++ b/src/models/components/bundlegroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const BundleGroup$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type BundleGroup$Outbound = { bundle_id?: string | undefined; @@ -73,23 +72,9 @@ export const BundleGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BundleGroup$ { - /** @deprecated use `BundleGroup$inboundSchema` instead. */ - export const inboundSchema = BundleGroup$inboundSchema; - /** @deprecated use `BundleGroup$outboundSchema` instead. */ - export const outboundSchema = BundleGroup$outboundSchema; - /** @deprecated use `BundleGroup$Outbound` instead. */ - export type Outbound = BundleGroup$Outbound; -} - export function bundleGroupToJSON(bundleGroup: BundleGroup): string { return JSON.stringify(BundleGroup$outboundSchema.parse(bundleGroup)); } - export function bundleGroupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bundleinput.ts b/src/models/components/bundleinput.ts index 4d3e1db..2e9bfb2 100644 --- a/src/models/components/bundleinput.ts +++ b/src/models/components/bundleinput.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const BundleInput$inboundSchema: z.ZodType< "admin_owner_id": "adminOwnerId", }); }); - /** @internal */ export type BundleInput$Outbound = { name?: string | undefined; @@ -60,23 +59,9 @@ export const BundleInput$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BundleInput$ { - /** @deprecated use `BundleInput$inboundSchema` instead. */ - export const inboundSchema = BundleInput$inboundSchema; - /** @deprecated use `BundleInput$outboundSchema` instead. */ - export const outboundSchema = BundleInput$outboundSchema; - /** @deprecated use `BundleInput$Outbound` instead. */ - export type Outbound = BundleInput$Outbound; -} - export function bundleInputToJSON(bundleInput: BundleInput): string { return JSON.stringify(BundleInput$outboundSchema.parse(bundleInput)); } - export function bundleInputFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/bundleresource.ts b/src/models/components/bundleresource.ts index a6efc1b..1502e62 100644 --- a/src/models/components/bundleresource.ts +++ b/src/models/components/bundleresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const BundleResource$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type BundleResource$Outbound = { bundle_id?: string | undefined; @@ -73,23 +72,9 @@ export const BundleResource$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BundleResource$ { - /** @deprecated use `BundleResource$inboundSchema` instead. */ - export const inboundSchema = BundleResource$inboundSchema; - /** @deprecated use `BundleResource$outboundSchema` instead. */ - export const outboundSchema = BundleResource$outboundSchema; - /** @deprecated use `BundleResource$Outbound` instead. */ - export type Outbound = BundleResource$Outbound; -} - export function bundleResourceToJSON(bundleResource: BundleResource): string { return JSON.stringify(BundleResource$outboundSchema.parse(bundleResource)); } - export function bundleResourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/condition.ts b/src/models/components/condition.ts index bac607f..7c9902a 100644 --- a/src/models/components/condition.ts +++ b/src/models/components/condition.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const Condition$inboundSchema: z.ZodType< "role_remote_ids": "roleRemoteIds", }); }); - /** @internal */ export type Condition$Outbound = { group_ids?: Array | undefined; @@ -65,23 +64,9 @@ export const Condition$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Condition$ { - /** @deprecated use `Condition$inboundSchema` instead. */ - export const inboundSchema = Condition$inboundSchema; - /** @deprecated use `Condition$outboundSchema` instead. */ - export const outboundSchema = Condition$outboundSchema; - /** @deprecated use `Condition$Outbound` instead. */ - export type Outbound = Condition$Outbound; -} - export function conditionToJSON(condition: Condition): string { return JSON.stringify(Condition$outboundSchema.parse(condition)); } - export function conditionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/configurationtemplate.ts b/src/models/components/configurationtemplate.ts index 1439b41..5fd1439 100644 --- a/src/models/components/configurationtemplate.ts +++ b/src/models/components/configurationtemplate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -113,7 +113,6 @@ export const ConfigurationTemplate$inboundSchema: z.ZodType< "custom_request_notification": "customRequestNotification", }); }); - /** @internal */ export type ConfigurationTemplate$Outbound = { configuration_template_id?: string | undefined; @@ -163,19 +162,6 @@ export const ConfigurationTemplate$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConfigurationTemplate$ { - /** @deprecated use `ConfigurationTemplate$inboundSchema` instead. */ - export const inboundSchema = ConfigurationTemplate$inboundSchema; - /** @deprecated use `ConfigurationTemplate$outboundSchema` instead. */ - export const outboundSchema = ConfigurationTemplate$outboundSchema; - /** @deprecated use `ConfigurationTemplate$Outbound` instead. */ - export type Outbound = ConfigurationTemplate$Outbound; -} - export function configurationTemplateToJSON( configurationTemplate: ConfigurationTemplate, ): string { @@ -183,7 +169,6 @@ export function configurationTemplateToJSON( ConfigurationTemplate$outboundSchema.parse(configurationTemplate), ); } - export function configurationTemplateFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createbundleinfo.ts b/src/models/components/createbundleinfo.ts index 650b0a0..52fc987 100644 --- a/src/models/components/createbundleinfo.ts +++ b/src/models/components/createbundleinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -47,7 +47,6 @@ export const CreateBundleInfo$inboundSchema: z.ZodType< "admin_owner_id": "adminOwnerId", }); }); - /** @internal */ export type CreateBundleInfo$Outbound = { name: string; @@ -70,19 +69,6 @@ export const CreateBundleInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateBundleInfo$ { - /** @deprecated use `CreateBundleInfo$inboundSchema` instead. */ - export const inboundSchema = CreateBundleInfo$inboundSchema; - /** @deprecated use `CreateBundleInfo$outboundSchema` instead. */ - export const outboundSchema = CreateBundleInfo$outboundSchema; - /** @deprecated use `CreateBundleInfo$Outbound` instead. */ - export type Outbound = CreateBundleInfo$Outbound; -} - export function createBundleInfoToJSON( createBundleInfo: CreateBundleInfo, ): string { @@ -90,7 +76,6 @@ export function createBundleInfoToJSON( CreateBundleInfo$outboundSchema.parse(createBundleInfo), ); } - export function createBundleInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createconfigurationtemplateinfo.ts b/src/models/components/createconfigurationtemplateinfo.ts index ad4d545..5ef0366 100644 --- a/src/models/components/createconfigurationtemplateinfo.ts +++ b/src/models/components/createconfigurationtemplateinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -146,7 +146,6 @@ export const CreateConfigurationTemplateInfo$inboundSchema: z.ZodType< "custom_request_notification": "customRequestNotification", }); }); - /** @internal */ export type CreateConfigurationTemplateInfo$Outbound = { admin_owner_id: string; @@ -200,19 +199,6 @@ export const CreateConfigurationTemplateInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateConfigurationTemplateInfo$ { - /** @deprecated use `CreateConfigurationTemplateInfo$inboundSchema` instead. */ - export const inboundSchema = CreateConfigurationTemplateInfo$inboundSchema; - /** @deprecated use `CreateConfigurationTemplateInfo$outboundSchema` instead. */ - export const outboundSchema = CreateConfigurationTemplateInfo$outboundSchema; - /** @deprecated use `CreateConfigurationTemplateInfo$Outbound` instead. */ - export type Outbound = CreateConfigurationTemplateInfo$Outbound; -} - export function createConfigurationTemplateInfoToJSON( createConfigurationTemplateInfo: CreateConfigurationTemplateInfo, ): string { @@ -222,7 +208,6 @@ export function createConfigurationTemplateInfoToJSON( ), ); } - export function createConfigurationTemplateInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createdelegationrequest.ts b/src/models/components/createdelegationrequest.ts new file mode 100644 index 0000000..cb817aa --- /dev/null +++ b/src/models/components/createdelegationrequest.ts @@ -0,0 +1,100 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Request body for creating a new delegation of access review requests from one user to another. + */ +export type CreateDelegationRequest = { + /** + * The ID of the user delegating their access review requests. + */ + delegatorUserId: string; + /** + * The ID of the user being delegated to. + */ + delegateUserId: string; + /** + * The start time of the delegation. + */ + startTime: Date; + /** + * The end time of the delegation. + */ + endTime: Date; + /** + * The reason for the delegation. + */ + reason: string; +}; + +/** @internal */ +export const CreateDelegationRequest$inboundSchema: z.ZodType< + CreateDelegationRequest, + z.ZodTypeDef, + unknown +> = z.object({ + delegator_user_id: z.string(), + delegate_user_id: z.string(), + start_time: z.string().datetime({ offset: true }).transform(v => new Date(v)), + end_time: z.string().datetime({ offset: true }).transform(v => new Date(v)), + reason: z.string(), +}).transform((v) => { + return remap$(v, { + "delegator_user_id": "delegatorUserId", + "delegate_user_id": "delegateUserId", + "start_time": "startTime", + "end_time": "endTime", + }); +}); +/** @internal */ +export type CreateDelegationRequest$Outbound = { + delegator_user_id: string; + delegate_user_id: string; + start_time: string; + end_time: string; + reason: string; +}; + +/** @internal */ +export const CreateDelegationRequest$outboundSchema: z.ZodType< + CreateDelegationRequest$Outbound, + z.ZodTypeDef, + CreateDelegationRequest +> = z.object({ + delegatorUserId: z.string(), + delegateUserId: z.string(), + startTime: z.date().transform(v => v.toISOString()), + endTime: z.date().transform(v => v.toISOString()), + reason: z.string(), +}).transform((v) => { + return remap$(v, { + delegatorUserId: "delegator_user_id", + delegateUserId: "delegate_user_id", + startTime: "start_time", + endTime: "end_time", + }); +}); + +export function createDelegationRequestToJSON( + createDelegationRequest: CreateDelegationRequest, +): string { + return JSON.stringify( + CreateDelegationRequest$outboundSchema.parse(createDelegationRequest), + ); +} +export function createDelegationRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateDelegationRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateDelegationRequest' from JSON`, + ); +} diff --git a/src/models/components/creategroupbindinginfo.ts b/src/models/components/creategroupbindinginfo.ts index 6343473..8bf9dac 100644 --- a/src/models/components/creategroupbindinginfo.ts +++ b/src/models/components/creategroupbindinginfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const CreateGroupBindingInfoGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type CreateGroupBindingInfoGroup$Outbound = { group_id: string; @@ -64,19 +63,6 @@ export const CreateGroupBindingInfoGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateGroupBindingInfoGroup$ { - /** @deprecated use `CreateGroupBindingInfoGroup$inboundSchema` instead. */ - export const inboundSchema = CreateGroupBindingInfoGroup$inboundSchema; - /** @deprecated use `CreateGroupBindingInfoGroup$outboundSchema` instead. */ - export const outboundSchema = CreateGroupBindingInfoGroup$outboundSchema; - /** @deprecated use `CreateGroupBindingInfoGroup$Outbound` instead. */ - export type Outbound = CreateGroupBindingInfoGroup$Outbound; -} - export function createGroupBindingInfoGroupToJSON( createGroupBindingInfoGroup: CreateGroupBindingInfoGroup, ): string { @@ -86,7 +72,6 @@ export function createGroupBindingInfoGroupToJSON( ), ); } - export function createGroupBindingInfoGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const CreateGroupBindingInfo$inboundSchema: z.ZodType< "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type CreateGroupBindingInfo$Outbound = { source_group_id: string; @@ -131,19 +115,6 @@ export const CreateGroupBindingInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateGroupBindingInfo$ { - /** @deprecated use `CreateGroupBindingInfo$inboundSchema` instead. */ - export const inboundSchema = CreateGroupBindingInfo$inboundSchema; - /** @deprecated use `CreateGroupBindingInfo$outboundSchema` instead. */ - export const outboundSchema = CreateGroupBindingInfo$outboundSchema; - /** @deprecated use `CreateGroupBindingInfo$Outbound` instead. */ - export type Outbound = CreateGroupBindingInfo$Outbound; -} - export function createGroupBindingInfoToJSON( createGroupBindingInfo: CreateGroupBindingInfo, ): string { @@ -151,7 +122,6 @@ export function createGroupBindingInfoToJSON( CreateGroupBindingInfo$outboundSchema.parse(createGroupBindingInfo), ); } - export function createGroupBindingInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/creategroupinfo.ts b/src/models/components/creategroupinfo.ts index 1c3aafa..06e565f 100644 --- a/src/models/components/creategroupinfo.ts +++ b/src/models/components/creategroupinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -52,7 +52,7 @@ export type CreateGroupInfo = { */ appId: string; /** - * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. + * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. */ remoteInfo?: GroupRemoteInfo | undefined; /** @@ -188,7 +188,6 @@ export const CreateGroupInfo$inboundSchema: z.ZodType< "risk_sensitivity_override": "riskSensitivityOverride", }); }); - /** @internal */ export type CreateGroupInfo$Outbound = { name: string; @@ -228,25 +227,11 @@ export const CreateGroupInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateGroupInfo$ { - /** @deprecated use `CreateGroupInfo$inboundSchema` instead. */ - export const inboundSchema = CreateGroupInfo$inboundSchema; - /** @deprecated use `CreateGroupInfo$outboundSchema` instead. */ - export const outboundSchema = CreateGroupInfo$outboundSchema; - /** @deprecated use `CreateGroupInfo$Outbound` instead. */ - export type Outbound = CreateGroupInfo$Outbound; -} - export function createGroupInfoToJSON( createGroupInfo: CreateGroupInfo, ): string { return JSON.stringify(CreateGroupInfo$outboundSchema.parse(createGroupInfo)); } - export function createGroupInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createmessagechannelinfo.ts b/src/models/components/createmessagechannelinfo.ts index e7a7ba2..beb83c9 100644 --- a/src/models/components/createmessagechannelinfo.ts +++ b/src/models/components/createmessagechannelinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const CreateMessageChannelInfo$inboundSchema: z.ZodType< "remote_id": "remoteId", }); }); - /** @internal */ export type CreateMessageChannelInfo$Outbound = { third_party_provider: string; @@ -67,19 +66,6 @@ export const CreateMessageChannelInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateMessageChannelInfo$ { - /** @deprecated use `CreateMessageChannelInfo$inboundSchema` instead. */ - export const inboundSchema = CreateMessageChannelInfo$inboundSchema; - /** @deprecated use `CreateMessageChannelInfo$outboundSchema` instead. */ - export const outboundSchema = CreateMessageChannelInfo$outboundSchema; - /** @deprecated use `CreateMessageChannelInfo$Outbound` instead. */ - export type Outbound = CreateMessageChannelInfo$Outbound; -} - export function createMessageChannelInfoToJSON( createMessageChannelInfo: CreateMessageChannelInfo, ): string { @@ -87,7 +73,6 @@ export function createMessageChannelInfoToJSON( CreateMessageChannelInfo$outboundSchema.parse(createMessageChannelInfo), ); } - export function createMessageChannelInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createoncallscheduleinfo.ts b/src/models/components/createoncallscheduleinfo.ts index a0481d5..d421ddc 100644 --- a/src/models/components/createoncallscheduleinfo.ts +++ b/src/models/components/createoncallscheduleinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const CreateOnCallScheduleInfo$inboundSchema: z.ZodType< "remote_id": "remoteId", }); }); - /** @internal */ export type CreateOnCallScheduleInfo$Outbound = { third_party_provider: string; @@ -67,19 +66,6 @@ export const CreateOnCallScheduleInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOnCallScheduleInfo$ { - /** @deprecated use `CreateOnCallScheduleInfo$inboundSchema` instead. */ - export const inboundSchema = CreateOnCallScheduleInfo$inboundSchema; - /** @deprecated use `CreateOnCallScheduleInfo$outboundSchema` instead. */ - export const outboundSchema = CreateOnCallScheduleInfo$outboundSchema; - /** @deprecated use `CreateOnCallScheduleInfo$Outbound` instead. */ - export type Outbound = CreateOnCallScheduleInfo$Outbound; -} - export function createOnCallScheduleInfoToJSON( createOnCallScheduleInfo: CreateOnCallScheduleInfo, ): string { @@ -87,7 +73,6 @@ export function createOnCallScheduleInfoToJSON( CreateOnCallScheduleInfo$outboundSchema.parse(createOnCallScheduleInfo), ); } - export function createOnCallScheduleInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createownerinfo.ts b/src/models/components/createownerinfo.ts index 715b1c6..7e4d08e 100644 --- a/src/models/components/createownerinfo.ts +++ b/src/models/components/createownerinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -65,7 +65,6 @@ export const CreateOwnerInfo$inboundSchema: z.ZodType< "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type CreateOwnerInfo$Outbound = { name: string; @@ -97,25 +96,11 @@ export const CreateOwnerInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOwnerInfo$ { - /** @deprecated use `CreateOwnerInfo$inboundSchema` instead. */ - export const inboundSchema = CreateOwnerInfo$inboundSchema; - /** @deprecated use `CreateOwnerInfo$outboundSchema` instead. */ - export const outboundSchema = CreateOwnerInfo$outboundSchema; - /** @deprecated use `CreateOwnerInfo$Outbound` instead. */ - export type Outbound = CreateOwnerInfo$Outbound; -} - export function createOwnerInfoToJSON( createOwnerInfo: CreateOwnerInfo, ): string { return JSON.stringify(CreateOwnerInfo$outboundSchema.parse(createOwnerInfo)); } - export function createOwnerInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createrequestconfigurationinfolist.ts b/src/models/components/createrequestconfigurationinfolist.ts index 9b846aa..283a985 100644 --- a/src/models/components/createrequestconfigurationinfolist.ts +++ b/src/models/components/createrequestconfigurationinfolist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -55,7 +55,6 @@ export const CreateRequestConfigurationInfoList$inboundSchema: z.ZodType< "request_configurations": "requestConfigurations", }); }); - /** @internal */ export type CreateRequestConfigurationInfoList$Outbound = { request_configurations: Array; @@ -74,20 +73,6 @@ export const CreateRequestConfigurationInfoList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestConfigurationInfoList$ { - /** @deprecated use `CreateRequestConfigurationInfoList$inboundSchema` instead. */ - export const inboundSchema = CreateRequestConfigurationInfoList$inboundSchema; - /** @deprecated use `CreateRequestConfigurationInfoList$outboundSchema` instead. */ - export const outboundSchema = - CreateRequestConfigurationInfoList$outboundSchema; - /** @deprecated use `CreateRequestConfigurationInfoList$Outbound` instead. */ - export type Outbound = CreateRequestConfigurationInfoList$Outbound; -} - export function createRequestConfigurationInfoListToJSON( createRequestConfigurationInfoList: CreateRequestConfigurationInfoList, ): string { @@ -97,7 +82,6 @@ export function createRequestConfigurationInfoListToJSON( ), ); } - export function createRequestConfigurationInfoListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createrequestinfo.ts b/src/models/components/createrequestinfo.ts index aa9362f..3c43288 100644 --- a/src/models/components/createrequestinfo.ts +++ b/src/models/components/createrequestinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,9 @@ export type CreateRequestInfoResource = { */ accessLevelRemoteId?: string | undefined; /** - * The ID of the access level requested on the remote system. + * The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ accessLevelName?: string | undefined; }; @@ -105,7 +107,6 @@ export const CreateRequestInfoResource$inboundSchema: z.ZodType< "access_level_name": "accessLevelName", }); }); - /** @internal */ export type CreateRequestInfoResource$Outbound = { id?: string | undefined; @@ -129,19 +130,6 @@ export const CreateRequestInfoResource$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestInfoResource$ { - /** @deprecated use `CreateRequestInfoResource$inboundSchema` instead. */ - export const inboundSchema = CreateRequestInfoResource$inboundSchema; - /** @deprecated use `CreateRequestInfoResource$outboundSchema` instead. */ - export const outboundSchema = CreateRequestInfoResource$outboundSchema; - /** @deprecated use `CreateRequestInfoResource$Outbound` instead. */ - export type Outbound = CreateRequestInfoResource$Outbound; -} - export function createRequestInfoResourceToJSON( createRequestInfoResource: CreateRequestInfoResource, ): string { @@ -149,7 +137,6 @@ export function createRequestInfoResourceToJSON( CreateRequestInfoResource$outboundSchema.parse(createRequestInfoResource), ); } - export function createRequestInfoResourceFromJSON( jsonString: string, ): SafeParseResult { @@ -175,7 +162,6 @@ export const CreateRequestInfoGroup$inboundSchema: z.ZodType< "access_level_name": "accessLevelName", }); }); - /** @internal */ export type CreateRequestInfoGroup$Outbound = { id: string; @@ -199,19 +185,6 @@ export const CreateRequestInfoGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestInfoGroup$ { - /** @deprecated use `CreateRequestInfoGroup$inboundSchema` instead. */ - export const inboundSchema = CreateRequestInfoGroup$inboundSchema; - /** @deprecated use `CreateRequestInfoGroup$outboundSchema` instead. */ - export const outboundSchema = CreateRequestInfoGroup$outboundSchema; - /** @deprecated use `CreateRequestInfoGroup$Outbound` instead. */ - export type Outbound = CreateRequestInfoGroup$Outbound; -} - export function createRequestInfoGroupToJSON( createRequestInfoGroup: CreateRequestInfoGroup, ): string { @@ -219,7 +192,6 @@ export function createRequestInfoGroupToJSON( CreateRequestInfoGroup$outboundSchema.parse(createRequestInfoGroup), ); } - export function createRequestInfoGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -246,7 +218,6 @@ export const SupportTicket$inboundSchema: z.ZodType< "remote_id": "remoteId", }); }); - /** @internal */ export type SupportTicket$Outbound = { ticketing_provider: string; @@ -272,23 +243,9 @@ export const SupportTicket$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicket$ { - /** @deprecated use `SupportTicket$inboundSchema` instead. */ - export const inboundSchema = SupportTicket$inboundSchema; - /** @deprecated use `SupportTicket$outboundSchema` instead. */ - export const outboundSchema = SupportTicket$outboundSchema; - /** @deprecated use `SupportTicket$Outbound` instead. */ - export type Outbound = SupportTicket$Outbound; -} - export function supportTicketToJSON(supportTicket: SupportTicket): string { return JSON.stringify(SupportTicket$outboundSchema.parse(supportTicket)); } - export function supportTicketFromJSON( jsonString: string, ): SafeParseResult { @@ -309,7 +266,6 @@ export const CustomMetadatum$inboundSchema: z.ZodType< type: RequestTemplateCustomFieldTypeEnum$inboundSchema, value: z.string(), }); - /** @internal */ export type CustomMetadatum$Outbound = { name: string; @@ -328,25 +284,11 @@ export const CustomMetadatum$outboundSchema: z.ZodType< value: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomMetadatum$ { - /** @deprecated use `CustomMetadatum$inboundSchema` instead. */ - export const inboundSchema = CustomMetadatum$inboundSchema; - /** @deprecated use `CustomMetadatum$outboundSchema` instead. */ - export const outboundSchema = CustomMetadatum$outboundSchema; - /** @deprecated use `CustomMetadatum$Outbound` instead. */ - export type Outbound = CustomMetadatum$Outbound; -} - export function customMetadatumToJSON( customMetadatum: CustomMetadatum, ): string { return JSON.stringify(CustomMetadatum$outboundSchema.parse(customMetadatum)); } - export function customMetadatumFromJSON( jsonString: string, ): SafeParseResult { @@ -381,7 +323,6 @@ export const CreateRequestInfo$inboundSchema: z.ZodType< "custom_metadata": "customMetadata", }); }); - /** @internal */ export type CreateRequestInfo$Outbound = { resources: Array; @@ -419,19 +360,6 @@ export const CreateRequestInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestInfo$ { - /** @deprecated use `CreateRequestInfo$inboundSchema` instead. */ - export const inboundSchema = CreateRequestInfo$inboundSchema; - /** @deprecated use `CreateRequestInfo$outboundSchema` instead. */ - export const outboundSchema = CreateRequestInfo$outboundSchema; - /** @deprecated use `CreateRequestInfo$Outbound` instead. */ - export type Outbound = CreateRequestInfo$Outbound; -} - export function createRequestInfoToJSON( createRequestInfo: CreateRequestInfo, ): string { @@ -439,7 +367,6 @@ export function createRequestInfoToJSON( CreateRequestInfo$outboundSchema.parse(createRequestInfo), ); } - export function createRequestInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createresourceinfo.ts b/src/models/components/createresourceinfo.ts index 8419a0b..eec3f50 100644 --- a/src/models/components/createresourceinfo.ts +++ b/src/models/components/createresourceinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -321,7 +321,6 @@ export const CreateResourceInfo$inboundSchema: z.ZodType< "risk_sensitivity_override": "riskSensitivityOverride", }); }); - /** @internal */ export type CreateResourceInfo$Outbound = { name: string; @@ -361,19 +360,6 @@ export const CreateResourceInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateResourceInfo$ { - /** @deprecated use `CreateResourceInfo$inboundSchema` instead. */ - export const inboundSchema = CreateResourceInfo$inboundSchema; - /** @deprecated use `CreateResourceInfo$outboundSchema` instead. */ - export const outboundSchema = CreateResourceInfo$outboundSchema; - /** @deprecated use `CreateResourceInfo$Outbound` instead. */ - export type Outbound = CreateResourceInfo$Outbound; -} - export function createResourceInfoToJSON( createResourceInfo: CreateResourceInfo, ): string { @@ -381,7 +367,6 @@ export function createResourceInfoToJSON( CreateResourceInfo$outboundSchema.parse(createResourceInfo), ); } - export function createResourceInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createtaginfo.ts b/src/models/components/createtaginfo.ts index d0c3e60..7117b7d 100644 --- a/src/models/components/createtaginfo.ts +++ b/src/models/components/createtaginfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const CreateTagInfo$inboundSchema: z.ZodType< "tag_value": "tagValue", }); }); - /** @internal */ export type CreateTagInfo$Outbound = { tag_key: string; @@ -65,23 +64,9 @@ export const CreateTagInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTagInfo$ { - /** @deprecated use `CreateTagInfo$inboundSchema` instead. */ - export const inboundSchema = CreateTagInfo$inboundSchema; - /** @deprecated use `CreateTagInfo$outboundSchema` instead. */ - export const outboundSchema = CreateTagInfo$outboundSchema; - /** @deprecated use `CreateTagInfo$Outbound` instead. */ - export type Outbound = CreateTagInfo$Outbound; -} - export function createTagInfoToJSON(createTagInfo: CreateTagInfo): string { return JSON.stringify(CreateTagInfo$outboundSchema.parse(createTagInfo)); } - export function createTagInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createuarinfo.ts b/src/models/components/createuarinfo.ts index a175ac8..dd1a5eb 100644 --- a/src/models/components/createuarinfo.ts +++ b/src/models/components/createuarinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,7 @@ export type CreateUARInfo = { */ name: string; /** - * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. + * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. */ reviewerAssignmentPolicy: UARReviewerAssignmentPolicyEnum; /** @@ -47,6 +47,10 @@ export type CreateUARInfo = { * A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. */ selfReviewAllowed: boolean; + /** + * A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + */ + instantlyActionReviews?: boolean | undefined; reminderSchedule?: Array | undefined; reminderIncludeManager?: boolean | undefined; /** @@ -67,6 +71,7 @@ export const CreateUARInfo$inboundSchema: z.ZodType< deadline: z.string().datetime({ offset: true }).transform(v => new Date(v)), time_zone: z.string(), self_review_allowed: z.boolean(), + instantly_action_reviews: z.boolean().optional(), reminder_schedule: z.array(z.number().int()).optional(), reminder_include_manager: z.boolean().optional(), uar_scope: UARScope$inboundSchema.optional(), @@ -77,12 +82,12 @@ export const CreateUARInfo$inboundSchema: z.ZodType< "sendReviewerAssignmentNotification", "time_zone": "timeZone", "self_review_allowed": "selfReviewAllowed", + "instantly_action_reviews": "instantlyActionReviews", "reminder_schedule": "reminderSchedule", "reminder_include_manager": "reminderIncludeManager", "uar_scope": "uarScope", }); }); - /** @internal */ export type CreateUARInfo$Outbound = { name: string; @@ -91,6 +96,7 @@ export type CreateUARInfo$Outbound = { deadline: string; time_zone: string; self_review_allowed: boolean; + instantly_action_reviews?: boolean | undefined; reminder_schedule?: Array | undefined; reminder_include_manager?: boolean | undefined; uar_scope?: UARScope$Outbound | undefined; @@ -108,6 +114,7 @@ export const CreateUARInfo$outboundSchema: z.ZodType< deadline: z.date().transform(v => v.toISOString()), timeZone: z.string(), selfReviewAllowed: z.boolean(), + instantlyActionReviews: z.boolean().optional(), reminderSchedule: z.array(z.number().int()).optional(), reminderIncludeManager: z.boolean().optional(), uarScope: UARScope$outboundSchema.optional(), @@ -117,29 +124,16 @@ export const CreateUARInfo$outboundSchema: z.ZodType< sendReviewerAssignmentNotification: "send_reviewer_assignment_notification", timeZone: "time_zone", selfReviewAllowed: "self_review_allowed", + instantlyActionReviews: "instantly_action_reviews", reminderSchedule: "reminder_schedule", reminderIncludeManager: "reminder_include_manager", uarScope: "uar_scope", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateUARInfo$ { - /** @deprecated use `CreateUARInfo$inboundSchema` instead. */ - export const inboundSchema = CreateUARInfo$inboundSchema; - /** @deprecated use `CreateUARInfo$outboundSchema` instead. */ - export const outboundSchema = CreateUARInfo$outboundSchema; - /** @deprecated use `CreateUARInfo$Outbound` instead. */ - export type Outbound = CreateUARInfo$Outbound; -} - export function createUARInfoToJSON(createUARInfo: CreateUARInfo): string { return JSON.stringify(CreateUARInfo$outboundSchema.parse(createUARInfo)); } - export function createUARInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/delegation.ts b/src/models/components/delegation.ts new file mode 100644 index 0000000..be65aa7 --- /dev/null +++ b/src/models/components/delegation.ts @@ -0,0 +1,129 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * # Delegation Object + * + * @remarks + * ### Description + * The `Delegation` object represents a delegation of access review requests from one user to another. + * + * ### Usage Example + * List from the `GET Delegations` endpoint. + * Get from the `GET Delegation` endpoint. + */ +export type Delegation = { + /** + * The ID of the delegation. + */ + id: string; + /** + * The ID of the user delegating their access review requests. + */ + delegatorUserId: string; + /** + * The ID of the user being delegated to. + */ + delegateUserId: string; + /** + * The start time of the delegation. + */ + startTime: Date; + /** + * The end time of the delegation. + */ + endTime: Date; + /** + * The reason for the delegation. + */ + reason: string; + /** + * The creation time of the delegation. + */ + createdAt: Date; + /** + * The last updated time of the delegation. + */ + updatedAt: Date; +}; + +/** @internal */ +export const Delegation$inboundSchema: z.ZodType< + Delegation, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + delegator_user_id: z.string(), + delegate_user_id: z.string(), + start_time: z.string().datetime({ offset: true }).transform(v => new Date(v)), + end_time: z.string().datetime({ offset: true }).transform(v => new Date(v)), + reason: z.string(), + created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), + updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), +}).transform((v) => { + return remap$(v, { + "delegator_user_id": "delegatorUserId", + "delegate_user_id": "delegateUserId", + "start_time": "startTime", + "end_time": "endTime", + "created_at": "createdAt", + "updated_at": "updatedAt", + }); +}); +/** @internal */ +export type Delegation$Outbound = { + id: string; + delegator_user_id: string; + delegate_user_id: string; + start_time: string; + end_time: string; + reason: string; + created_at: string; + updated_at: string; +}; + +/** @internal */ +export const Delegation$outboundSchema: z.ZodType< + Delegation$Outbound, + z.ZodTypeDef, + Delegation +> = z.object({ + id: z.string(), + delegatorUserId: z.string(), + delegateUserId: z.string(), + startTime: z.date().transform(v => v.toISOString()), + endTime: z.date().transform(v => v.toISOString()), + reason: z.string(), + createdAt: z.date().transform(v => v.toISOString()), + updatedAt: z.date().transform(v => v.toISOString()), +}).transform((v) => { + return remap$(v, { + delegatorUserId: "delegator_user_id", + delegateUserId: "delegate_user_id", + startTime: "start_time", + endTime: "end_time", + createdAt: "created_at", + updatedAt: "updated_at", + }); +}); + +export function delegationToJSON(delegation: Delegation): string { + return JSON.stringify(Delegation$outboundSchema.parse(delegation)); +} +export function delegationFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Delegation$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Delegation' from JSON`, + ); +} diff --git a/src/models/components/entitytypeenum.ts b/src/models/components/entitytypeenum.ts index c44815b..a379247 100644 --- a/src/models/components/entitytypeenum.ts +++ b/src/models/components/entitytypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -22,19 +22,7 @@ export type EntityTypeEnum = ClosedEnum; export const EntityTypeEnum$inboundSchema: z.ZodNativeEnum< typeof EntityTypeEnum > = z.nativeEnum(EntityTypeEnum); - /** @internal */ export const EntityTypeEnum$outboundSchema: z.ZodNativeEnum< typeof EntityTypeEnum > = EntityTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EntityTypeEnum$ { - /** @deprecated use `EntityTypeEnum$inboundSchema` instead. */ - export const inboundSchema = EntityTypeEnum$inboundSchema; - /** @deprecated use `EntityTypeEnum$outboundSchema` instead. */ - export const outboundSchema = EntityTypeEnum$outboundSchema; -} diff --git a/src/models/components/event.ts b/src/models/components/event.ts index bf2252f..546905c 100644 --- a/src/models/components/event.ts +++ b/src/models/components/event.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -93,7 +93,6 @@ export const Event$inboundSchema: z.ZodType = z "sub_events": "subEvents", }); }); - /** @internal */ export type Event$Outbound = { event_id: string; @@ -139,23 +138,9 @@ export const Event$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Event$ { - /** @deprecated use `Event$inboundSchema` instead. */ - export const inboundSchema = Event$inboundSchema; - /** @deprecated use `Event$outboundSchema` instead. */ - export const outboundSchema = Event$outboundSchema; - /** @deprecated use `Event$Outbound` instead. */ - export type Outbound = Event$Outbound; -} - export function eventToJSON(event: Event): string { return JSON.stringify(Event$outboundSchema.parse(event)); } - export function eventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/group.ts b/src/models/components/group.ts index e7e60c5..6286310 100644 --- a/src/models/components/group.ts +++ b/src/models/components/group.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -30,6 +30,12 @@ import { RiskSensitivityEnum$inboundSchema, RiskSensitivityEnum$outboundSchema, } from "./risksensitivityenum.js"; +import { + SyncTask, + SyncTask$inboundSchema, + SyncTask$Outbound, + SyncTask$outboundSchema, +} from "./synctask.js"; /** * The risk sensitivity level for the group. When an override is set, this field will match that. @@ -102,6 +108,10 @@ export type Group = { * The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. */ recommendedDuration?: number | undefined; + /** + * The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + */ + extensionsDurationInMinutes?: number | undefined; /** * A bool representing whether or not access requests to the group require manager approval. * @@ -157,7 +167,7 @@ export type Group = { */ metadata?: string | undefined; /** - * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. + * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. */ remoteInfo?: GroupRemoteInfo | undefined; /** @@ -169,29 +179,21 @@ export type Group = { */ riskSensitivity?: GroupRiskSensitivity | undefined; riskSensitivityOverride?: RiskSensitivityEnum | undefined; + /** + * Represents a sync task that has been completed, either successfully or with errors. + */ + lastSuccessfulSync?: SyncTask | undefined; }; /** @internal */ export const GroupRiskSensitivity$inboundSchema: z.ZodNativeEnum< typeof GroupRiskSensitivity > = z.nativeEnum(GroupRiskSensitivity); - /** @internal */ export const GroupRiskSensitivity$outboundSchema: z.ZodNativeEnum< typeof GroupRiskSensitivity > = GroupRiskSensitivity$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupRiskSensitivity$ { - /** @deprecated use `GroupRiskSensitivity$inboundSchema` instead. */ - export const inboundSchema = GroupRiskSensitivity$inboundSchema; - /** @deprecated use `GroupRiskSensitivity$outboundSchema` instead. */ - export const outboundSchema = GroupRiskSensitivity$outboundSchema; -} - /** @internal */ export const Group$inboundSchema: z.ZodType = z .object({ @@ -206,6 +208,7 @@ export const Group$inboundSchema: z.ZodType = z group_type: GroupTypeEnum$inboundSchema.optional(), max_duration: z.number().int().optional(), recommended_duration: z.number().int().optional(), + extensions_duration_in_minutes: z.number().int().optional(), require_manager_approval: z.boolean().optional(), require_support_ticket: z.boolean().optional(), require_mfa_to_approve: z.boolean().optional(), @@ -224,6 +227,7 @@ export const Group$inboundSchema: z.ZodType = z custom_request_notification: z.nullable(z.string()).optional(), risk_sensitivity: GroupRiskSensitivity$inboundSchema.optional(), risk_sensitivity_override: RiskSensitivityEnum$inboundSchema.optional(), + last_successful_sync: SyncTask$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "group_id": "groupId", @@ -235,6 +239,7 @@ export const Group$inboundSchema: z.ZodType = z "group_type": "groupType", "max_duration": "maxDuration", "recommended_duration": "recommendedDuration", + "extensions_duration_in_minutes": "extensionsDurationInMinutes", "require_manager_approval": "requireManagerApproval", "require_support_ticket": "requireSupportTicket", "require_mfa_to_approve": "requireMfaToApprove", @@ -250,9 +255,9 @@ export const Group$inboundSchema: z.ZodType = z "custom_request_notification": "customRequestNotification", "risk_sensitivity": "riskSensitivity", "risk_sensitivity_override": "riskSensitivityOverride", + "last_successful_sync": "lastSuccessfulSync", }); }); - /** @internal */ export type Group$Outbound = { group_id: string; @@ -266,6 +271,7 @@ export type Group$Outbound = { group_type?: string | undefined; max_duration?: number | undefined; recommended_duration?: number | undefined; + extensions_duration_in_minutes?: number | undefined; require_manager_approval?: boolean | undefined; require_support_ticket?: boolean | undefined; require_mfa_to_approve?: boolean | undefined; @@ -282,6 +288,7 @@ export type Group$Outbound = { custom_request_notification?: string | null | undefined; risk_sensitivity?: string | undefined; risk_sensitivity_override?: string | undefined; + last_successful_sync?: SyncTask$Outbound | undefined; }; /** @internal */ @@ -301,6 +308,7 @@ export const Group$outboundSchema: z.ZodType< groupType: GroupTypeEnum$outboundSchema.optional(), maxDuration: z.number().int().optional(), recommendedDuration: z.number().int().optional(), + extensionsDurationInMinutes: z.number().int().optional(), requireManagerApproval: z.boolean().optional(), requireSupportTicket: z.boolean().optional(), requireMfaToApprove: z.boolean().optional(), @@ -319,6 +327,7 @@ export const Group$outboundSchema: z.ZodType< customRequestNotification: z.nullable(z.string()).optional(), riskSensitivity: GroupRiskSensitivity$outboundSchema.optional(), riskSensitivityOverride: RiskSensitivityEnum$outboundSchema.optional(), + lastSuccessfulSync: SyncTask$outboundSchema.optional(), }).transform((v) => { return remap$(v, { groupId: "group_id", @@ -330,6 +339,7 @@ export const Group$outboundSchema: z.ZodType< groupType: "group_type", maxDuration: "max_duration", recommendedDuration: "recommended_duration", + extensionsDurationInMinutes: "extensions_duration_in_minutes", requireManagerApproval: "require_manager_approval", requireSupportTicket: "require_support_ticket", requireMfaToApprove: "require_mfa_to_approve", @@ -345,26 +355,13 @@ export const Group$outboundSchema: z.ZodType< customRequestNotification: "custom_request_notification", riskSensitivity: "risk_sensitivity", riskSensitivityOverride: "risk_sensitivity_override", + lastSuccessfulSync: "last_successful_sync", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Group$ { - /** @deprecated use `Group$inboundSchema` instead. */ - export const inboundSchema = Group$inboundSchema; - /** @deprecated use `Group$outboundSchema` instead. */ - export const outboundSchema = Group$outboundSchema; - /** @deprecated use `Group$Outbound` instead. */ - export type Outbound = Group$Outbound; -} - export function groupToJSON(group: Group): string { return JSON.stringify(Group$outboundSchema.parse(group)); } - export function groupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupaccesslevel.ts b/src/models/components/groupaccesslevel.ts index 7a4c3ed..1a51a9c 100644 --- a/src/models/components/groupaccesslevel.ts +++ b/src/models/components/groupaccesslevel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -44,7 +44,6 @@ export const GroupAccessLevel$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type GroupAccessLevel$Outbound = { access_level_name: string; @@ -66,19 +65,6 @@ export const GroupAccessLevel$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupAccessLevel$ { - /** @deprecated use `GroupAccessLevel$inboundSchema` instead. */ - export const inboundSchema = GroupAccessLevel$inboundSchema; - /** @deprecated use `GroupAccessLevel$outboundSchema` instead. */ - export const outboundSchema = GroupAccessLevel$outboundSchema; - /** @deprecated use `GroupAccessLevel$Outbound` instead. */ - export type Outbound = GroupAccessLevel$Outbound; -} - export function groupAccessLevelToJSON( groupAccessLevel: GroupAccessLevel, ): string { @@ -86,7 +72,6 @@ export function groupAccessLevelToJSON( GroupAccessLevel$outboundSchema.parse(groupAccessLevel), ); } - export function groupAccessLevelFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupbinding.ts b/src/models/components/groupbinding.ts index 46b529a..4563af6 100644 --- a/src/models/components/groupbinding.ts +++ b/src/models/components/groupbinding.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -66,7 +66,6 @@ export const GroupBinding$inboundSchema: z.ZodType< "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type GroupBinding$Outbound = { group_binding_id: string; @@ -96,23 +95,9 @@ export const GroupBinding$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupBinding$ { - /** @deprecated use `GroupBinding$inboundSchema` instead. */ - export const inboundSchema = GroupBinding$inboundSchema; - /** @deprecated use `GroupBinding$outboundSchema` instead. */ - export const outboundSchema = GroupBinding$outboundSchema; - /** @deprecated use `GroupBinding$Outbound` instead. */ - export type Outbound = GroupBinding$Outbound; -} - export function groupBindingToJSON(groupBinding: GroupBinding): string { return JSON.stringify(GroupBinding$outboundSchema.parse(groupBinding)); } - export function groupBindingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupbindinggroup.ts b/src/models/components/groupbindinggroup.ts index 5cb2aa9..68ceddc 100644 --- a/src/models/components/groupbindinggroup.ts +++ b/src/models/components/groupbindinggroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,7 +48,6 @@ export const GroupBindingGroup$inboundSchema: z.ZodType< "group_type": "groupType", }); }); - /** @internal */ export type GroupBindingGroup$Outbound = { group_id: string; @@ -70,19 +69,6 @@ export const GroupBindingGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupBindingGroup$ { - /** @deprecated use `GroupBindingGroup$inboundSchema` instead. */ - export const inboundSchema = GroupBindingGroup$inboundSchema; - /** @deprecated use `GroupBindingGroup$outboundSchema` instead. */ - export const outboundSchema = GroupBindingGroup$outboundSchema; - /** @deprecated use `GroupBindingGroup$Outbound` instead. */ - export type Outbound = GroupBindingGroup$Outbound; -} - export function groupBindingGroupToJSON( groupBindingGroup: GroupBindingGroup, ): string { @@ -90,7 +76,6 @@ export function groupBindingGroupToJSON( GroupBindingGroup$outboundSchema.parse(groupBindingGroup), ); } - export function groupBindingGroupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupcontaininggroup.ts b/src/models/components/groupcontaininggroup.ts index ee01028..8209fe3 100644 --- a/src/models/components/groupcontaininggroup.ts +++ b/src/models/components/groupcontaininggroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -20,6 +20,14 @@ export type GroupContainingGroup = { * The groupID of the containing group. */ containingGroupId: string; + /** + * The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. + */ + durationMinutes?: number | undefined; + /** + * The updated remote ID of the access level granted to this group. + */ + accessLevelRemoteId?: string | undefined; }; /** @internal */ @@ -29,15 +37,20 @@ export const GroupContainingGroup$inboundSchema: z.ZodType< unknown > = z.object({ containing_group_id: z.string(), + duration_minutes: z.number().int().optional(), + access_level_remote_id: z.string().optional(), }).transform((v) => { return remap$(v, { "containing_group_id": "containingGroupId", + "duration_minutes": "durationMinutes", + "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type GroupContainingGroup$Outbound = { containing_group_id: string; + duration_minutes?: number | undefined; + access_level_remote_id?: string | undefined; }; /** @internal */ @@ -47,25 +60,16 @@ export const GroupContainingGroup$outboundSchema: z.ZodType< GroupContainingGroup > = z.object({ containingGroupId: z.string(), + durationMinutes: z.number().int().optional(), + accessLevelRemoteId: z.string().optional(), }).transform((v) => { return remap$(v, { containingGroupId: "containing_group_id", + durationMinutes: "duration_minutes", + accessLevelRemoteId: "access_level_remote_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupContainingGroup$ { - /** @deprecated use `GroupContainingGroup$inboundSchema` instead. */ - export const inboundSchema = GroupContainingGroup$inboundSchema; - /** @deprecated use `GroupContainingGroup$outboundSchema` instead. */ - export const outboundSchema = GroupContainingGroup$outboundSchema; - /** @deprecated use `GroupContainingGroup$Outbound` instead. */ - export type Outbound = GroupContainingGroup$Outbound; -} - export function groupContainingGroupToJSON( groupContainingGroup: GroupContainingGroup, ): string { @@ -73,7 +77,6 @@ export function groupContainingGroupToJSON( GroupContainingGroup$outboundSchema.parse(groupContainingGroup), ); } - export function groupContainingGroupFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupcontaininggrouplist.ts b/src/models/components/groupcontaininggrouplist.ts index 1957442..3011295 100644 --- a/src/models/components/groupcontaininggrouplist.ts +++ b/src/models/components/groupcontaininggrouplist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const GroupContainingGroupList$inboundSchema: z.ZodType< "containing_groups": "containingGroups", }); }); - /** @internal */ export type GroupContainingGroupList$Outbound = { containing_groups: Array; @@ -49,19 +48,6 @@ export const GroupContainingGroupList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupContainingGroupList$ { - /** @deprecated use `GroupContainingGroupList$inboundSchema` instead. */ - export const inboundSchema = GroupContainingGroupList$inboundSchema; - /** @deprecated use `GroupContainingGroupList$outboundSchema` instead. */ - export const outboundSchema = GroupContainingGroupList$outboundSchema; - /** @deprecated use `GroupContainingGroupList$Outbound` instead. */ - export type Outbound = GroupContainingGroupList$Outbound; -} - export function groupContainingGroupListToJSON( groupContainingGroupList: GroupContainingGroupList, ): string { @@ -69,7 +55,6 @@ export function groupContainingGroupListToJSON( GroupContainingGroupList$outboundSchema.parse(groupContainingGroupList), ); } - export function groupContainingGroupListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupremoteinfo.ts b/src/models/components/groupremoteinfo.ts index 688785e..278c860 100644 --- a/src/models/components/groupremoteinfo.ts +++ b/src/models/components/groupremoteinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -18,6 +18,46 @@ export type ActiveDirectoryGroup = { groupId: string; }; +/** + * Remote info for Tailscale group. + */ +export type TailscaleGroup = { + /** + * The id of the Tailscale group. + */ + groupId: string; +}; + +/** + * Remote info for AWS SSO group. + */ +export type AwsSsoGroup = { + /** + * The id of the AWS SSO group. + */ + groupId: string; +}; + +/** + * Remote info for Databricks account group. + */ +export type DatabricksAccountGroup = { + /** + * The id of the Databricks account group. + */ + groupId: string; +}; + +/** + * Remote info for Connector group. + */ +export type ConnectorGroup = { + /** + * The id of the Connector group. + */ + groupId: string; +}; + /** * Remote info for GitHub team. */ @@ -135,13 +175,59 @@ export type WorkdayUserSecurityGroup = { }; /** - * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. + * Remote info for PagerDuty on-call schedule group. + */ +export type PagerdutyOnCallSchedule = { + /** + * The id of the PagerDuty on-call schedule. + */ + scheduleId: string; +}; + +/** + * Remote info for Incident.io on-call schedule group. + */ +export type IncidentioOnCallSchedule = { + /** + * The id of the Incident.io on-call schedule. + */ + scheduleId: string; +}; + +/** + * Remote info for Devin group. + */ +export type DevinGroup = { + /** + * The name of the Devin group. + */ + groupName: string; +}; + +/** + * Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. */ export type GroupRemoteInfo = { /** * Remote info for Active Directory group. */ activeDirectoryGroup?: ActiveDirectoryGroup | undefined; + /** + * Remote info for Tailscale group. + */ + tailscaleGroup?: TailscaleGroup | undefined; + /** + * Remote info for AWS SSO group. + */ + awsSsoGroup?: AwsSsoGroup | undefined; + /** + * Remote info for Databricks account group. + */ + databricksAccountGroup?: DatabricksAccountGroup | undefined; + /** + * Remote info for Connector group. + */ + connectorGroup?: ConnectorGroup | undefined; /** * Remote info for GitHub team. */ @@ -186,6 +272,18 @@ export type GroupRemoteInfo = { * Remote info for Workday User Security group. */ workdayUserSecurityGroup?: WorkdayUserSecurityGroup | undefined; + /** + * Remote info for PagerDuty on-call schedule group. + */ + pagerdutyOnCallSchedule?: PagerdutyOnCallSchedule | undefined; + /** + * Remote info for Incident.io on-call schedule group. + */ + incidentioOnCallSchedule?: IncidentioOnCallSchedule | undefined; + /** + * Remote info for Devin group. + */ + devinGroup?: DevinGroup | undefined; }; /** @internal */ @@ -200,7 +298,6 @@ export const ActiveDirectoryGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type ActiveDirectoryGroup$Outbound = { group_id: string; @@ -219,19 +316,6 @@ export const ActiveDirectoryGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActiveDirectoryGroup$ { - /** @deprecated use `ActiveDirectoryGroup$inboundSchema` instead. */ - export const inboundSchema = ActiveDirectoryGroup$inboundSchema; - /** @deprecated use `ActiveDirectoryGroup$outboundSchema` instead. */ - export const outboundSchema = ActiveDirectoryGroup$outboundSchema; - /** @deprecated use `ActiveDirectoryGroup$Outbound` instead. */ - export type Outbound = ActiveDirectoryGroup$Outbound; -} - export function activeDirectoryGroupToJSON( activeDirectoryGroup: ActiveDirectoryGroup, ): string { @@ -239,7 +323,6 @@ export function activeDirectoryGroupToJSON( ActiveDirectoryGroup$outboundSchema.parse(activeDirectoryGroup), ); } - export function activeDirectoryGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -250,6 +333,182 @@ export function activeDirectoryGroupFromJSON( ); } +/** @internal */ +export const TailscaleGroup$inboundSchema: z.ZodType< + TailscaleGroup, + z.ZodTypeDef, + unknown +> = z.object({ + group_id: z.string(), +}).transform((v) => { + return remap$(v, { + "group_id": "groupId", + }); +}); +/** @internal */ +export type TailscaleGroup$Outbound = { + group_id: string; +}; + +/** @internal */ +export const TailscaleGroup$outboundSchema: z.ZodType< + TailscaleGroup$Outbound, + z.ZodTypeDef, + TailscaleGroup +> = z.object({ + groupId: z.string(), +}).transform((v) => { + return remap$(v, { + groupId: "group_id", + }); +}); + +export function tailscaleGroupToJSON(tailscaleGroup: TailscaleGroup): string { + return JSON.stringify(TailscaleGroup$outboundSchema.parse(tailscaleGroup)); +} +export function tailscaleGroupFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => TailscaleGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TailscaleGroup' from JSON`, + ); +} + +/** @internal */ +export const AwsSsoGroup$inboundSchema: z.ZodType< + AwsSsoGroup, + z.ZodTypeDef, + unknown +> = z.object({ + group_id: z.string(), +}).transform((v) => { + return remap$(v, { + "group_id": "groupId", + }); +}); +/** @internal */ +export type AwsSsoGroup$Outbound = { + group_id: string; +}; + +/** @internal */ +export const AwsSsoGroup$outboundSchema: z.ZodType< + AwsSsoGroup$Outbound, + z.ZodTypeDef, + AwsSsoGroup +> = z.object({ + groupId: z.string(), +}).transform((v) => { + return remap$(v, { + groupId: "group_id", + }); +}); + +export function awsSsoGroupToJSON(awsSsoGroup: AwsSsoGroup): string { + return JSON.stringify(AwsSsoGroup$outboundSchema.parse(awsSsoGroup)); +} +export function awsSsoGroupFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsSsoGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsSsoGroup' from JSON`, + ); +} + +/** @internal */ +export const DatabricksAccountGroup$inboundSchema: z.ZodType< + DatabricksAccountGroup, + z.ZodTypeDef, + unknown +> = z.object({ + group_id: z.string(), +}).transform((v) => { + return remap$(v, { + "group_id": "groupId", + }); +}); +/** @internal */ +export type DatabricksAccountGroup$Outbound = { + group_id: string; +}; + +/** @internal */ +export const DatabricksAccountGroup$outboundSchema: z.ZodType< + DatabricksAccountGroup$Outbound, + z.ZodTypeDef, + DatabricksAccountGroup +> = z.object({ + groupId: z.string(), +}).transform((v) => { + return remap$(v, { + groupId: "group_id", + }); +}); + +export function databricksAccountGroupToJSON( + databricksAccountGroup: DatabricksAccountGroup, +): string { + return JSON.stringify( + DatabricksAccountGroup$outboundSchema.parse(databricksAccountGroup), + ); +} +export function databricksAccountGroupFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DatabricksAccountGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DatabricksAccountGroup' from JSON`, + ); +} + +/** @internal */ +export const ConnectorGroup$inboundSchema: z.ZodType< + ConnectorGroup, + z.ZodTypeDef, + unknown +> = z.object({ + group_id: z.string(), +}).transform((v) => { + return remap$(v, { + "group_id": "groupId", + }); +}); +/** @internal */ +export type ConnectorGroup$Outbound = { + group_id: string; +}; + +/** @internal */ +export const ConnectorGroup$outboundSchema: z.ZodType< + ConnectorGroup$Outbound, + z.ZodTypeDef, + ConnectorGroup +> = z.object({ + groupId: z.string(), +}).transform((v) => { + return remap$(v, { + groupId: "group_id", + }); +}); + +export function connectorGroupToJSON(connectorGroup: ConnectorGroup): string { + return JSON.stringify(ConnectorGroup$outboundSchema.parse(connectorGroup)); +} +export function connectorGroupFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ConnectorGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ConnectorGroup' from JSON`, + ); +} + /** @internal */ export const GithubTeam$inboundSchema: z.ZodType< GithubTeam, @@ -264,7 +523,6 @@ export const GithubTeam$inboundSchema: z.ZodType< "team_slug": "teamSlug", }); }); - /** @internal */ export type GithubTeam$Outbound = { team_id?: string | undefined; @@ -286,23 +544,9 @@ export const GithubTeam$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubTeam$ { - /** @deprecated use `GithubTeam$inboundSchema` instead. */ - export const inboundSchema = GithubTeam$inboundSchema; - /** @deprecated use `GithubTeam$outboundSchema` instead. */ - export const outboundSchema = GithubTeam$outboundSchema; - /** @deprecated use `GithubTeam$Outbound` instead. */ - export type Outbound = GithubTeam$Outbound; -} - export function githubTeamToJSON(githubTeam: GithubTeam): string { return JSON.stringify(GithubTeam$outboundSchema.parse(githubTeam)); } - export function githubTeamFromJSON( jsonString: string, ): SafeParseResult { @@ -325,7 +569,6 @@ export const GitlabGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GitlabGroup$Outbound = { group_id: string; @@ -344,23 +587,9 @@ export const GitlabGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabGroup$ { - /** @deprecated use `GitlabGroup$inboundSchema` instead. */ - export const inboundSchema = GitlabGroup$inboundSchema; - /** @deprecated use `GitlabGroup$outboundSchema` instead. */ - export const outboundSchema = GitlabGroup$outboundSchema; - /** @deprecated use `GitlabGroup$Outbound` instead. */ - export type Outbound = GitlabGroup$Outbound; -} - export function gitlabGroupToJSON(gitlabGroup: GitlabGroup): string { return JSON.stringify(GitlabGroup$outboundSchema.parse(gitlabGroup)); } - export function gitlabGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -383,7 +612,6 @@ export const GoogleGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GoogleGroup$Outbound = { group_id: string; @@ -402,23 +630,9 @@ export const GoogleGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GoogleGroup$ { - /** @deprecated use `GoogleGroup$inboundSchema` instead. */ - export const inboundSchema = GoogleGroup$inboundSchema; - /** @deprecated use `GoogleGroup$outboundSchema` instead. */ - export const outboundSchema = GoogleGroup$outboundSchema; - /** @deprecated use `GoogleGroup$Outbound` instead. */ - export type Outbound = GoogleGroup$Outbound; -} - export function googleGroupToJSON(googleGroup: GoogleGroup): string { return JSON.stringify(GoogleGroup$outboundSchema.parse(googleGroup)); } - export function googleGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -441,7 +655,6 @@ export const LdapGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type LdapGroup$Outbound = { group_id: string; @@ -460,23 +673,9 @@ export const LdapGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LdapGroup$ { - /** @deprecated use `LdapGroup$inboundSchema` instead. */ - export const inboundSchema = LdapGroup$inboundSchema; - /** @deprecated use `LdapGroup$outboundSchema` instead. */ - export const outboundSchema = LdapGroup$outboundSchema; - /** @deprecated use `LdapGroup$Outbound` instead. */ - export type Outbound = LdapGroup$Outbound; -} - export function ldapGroupToJSON(ldapGroup: LdapGroup): string { return JSON.stringify(LdapGroup$outboundSchema.parse(ldapGroup)); } - export function ldapGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -499,7 +698,6 @@ export const OktaGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type OktaGroup$Outbound = { group_id: string; @@ -518,23 +716,9 @@ export const OktaGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OktaGroup$ { - /** @deprecated use `OktaGroup$inboundSchema` instead. */ - export const inboundSchema = OktaGroup$inboundSchema; - /** @deprecated use `OktaGroup$outboundSchema` instead. */ - export const outboundSchema = OktaGroup$outboundSchema; - /** @deprecated use `OktaGroup$Outbound` instead. */ - export type Outbound = OktaGroup$Outbound; -} - export function oktaGroupToJSON(oktaGroup: OktaGroup): string { return JSON.stringify(OktaGroup$outboundSchema.parse(oktaGroup)); } - export function oktaGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -557,7 +741,6 @@ export const DuoGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type DuoGroup$Outbound = { group_id: string; @@ -576,23 +759,9 @@ export const DuoGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DuoGroup$ { - /** @deprecated use `DuoGroup$inboundSchema` instead. */ - export const inboundSchema = DuoGroup$inboundSchema; - /** @deprecated use `DuoGroup$outboundSchema` instead. */ - export const outboundSchema = DuoGroup$outboundSchema; - /** @deprecated use `DuoGroup$Outbound` instead. */ - export type Outbound = DuoGroup$Outbound; -} - export function duoGroupToJSON(duoGroup: DuoGroup): string { return JSON.stringify(DuoGroup$outboundSchema.parse(duoGroup)); } - export function duoGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -615,7 +784,6 @@ export const AzureAdSecurityGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type AzureAdSecurityGroup$Outbound = { group_id: string; @@ -634,19 +802,6 @@ export const AzureAdSecurityGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AzureAdSecurityGroup$ { - /** @deprecated use `AzureAdSecurityGroup$inboundSchema` instead. */ - export const inboundSchema = AzureAdSecurityGroup$inboundSchema; - /** @deprecated use `AzureAdSecurityGroup$outboundSchema` instead. */ - export const outboundSchema = AzureAdSecurityGroup$outboundSchema; - /** @deprecated use `AzureAdSecurityGroup$Outbound` instead. */ - export type Outbound = AzureAdSecurityGroup$Outbound; -} - export function azureAdSecurityGroupToJSON( azureAdSecurityGroup: AzureAdSecurityGroup, ): string { @@ -654,7 +809,6 @@ export function azureAdSecurityGroupToJSON( AzureAdSecurityGroup$outboundSchema.parse(azureAdSecurityGroup), ); } - export function azureAdSecurityGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -677,7 +831,6 @@ export const AzureAdMicrosoft365Group$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type AzureAdMicrosoft365Group$Outbound = { group_id: string; @@ -696,19 +849,6 @@ export const AzureAdMicrosoft365Group$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AzureAdMicrosoft365Group$ { - /** @deprecated use `AzureAdMicrosoft365Group$inboundSchema` instead. */ - export const inboundSchema = AzureAdMicrosoft365Group$inboundSchema; - /** @deprecated use `AzureAdMicrosoft365Group$outboundSchema` instead. */ - export const outboundSchema = AzureAdMicrosoft365Group$outboundSchema; - /** @deprecated use `AzureAdMicrosoft365Group$Outbound` instead. */ - export type Outbound = AzureAdMicrosoft365Group$Outbound; -} - export function azureAdMicrosoft365GroupToJSON( azureAdMicrosoft365Group: AzureAdMicrosoft365Group, ): string { @@ -716,7 +856,6 @@ export function azureAdMicrosoft365GroupToJSON( AzureAdMicrosoft365Group$outboundSchema.parse(azureAdMicrosoft365Group), ); } - export function azureAdMicrosoft365GroupFromJSON( jsonString: string, ): SafeParseResult { @@ -739,7 +878,6 @@ export const SnowflakeRole$inboundSchema: z.ZodType< "role_id": "roleId", }); }); - /** @internal */ export type SnowflakeRole$Outbound = { role_id: string; @@ -758,23 +896,9 @@ export const SnowflakeRole$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SnowflakeRole$ { - /** @deprecated use `SnowflakeRole$inboundSchema` instead. */ - export const inboundSchema = SnowflakeRole$inboundSchema; - /** @deprecated use `SnowflakeRole$outboundSchema` instead. */ - export const outboundSchema = SnowflakeRole$outboundSchema; - /** @deprecated use `SnowflakeRole$Outbound` instead. */ - export type Outbound = SnowflakeRole$Outbound; -} - export function snowflakeRoleToJSON(snowflakeRole: SnowflakeRole): string { return JSON.stringify(SnowflakeRole$outboundSchema.parse(snowflakeRole)); } - export function snowflakeRoleFromJSON( jsonString: string, ): SafeParseResult { @@ -797,7 +921,6 @@ export const OktaGroupRule$inboundSchema: z.ZodType< "rule_id": "ruleId", }); }); - /** @internal */ export type OktaGroupRule$Outbound = { rule_id: string; @@ -816,23 +939,9 @@ export const OktaGroupRule$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OktaGroupRule$ { - /** @deprecated use `OktaGroupRule$inboundSchema` instead. */ - export const inboundSchema = OktaGroupRule$inboundSchema; - /** @deprecated use `OktaGroupRule$outboundSchema` instead. */ - export const outboundSchema = OktaGroupRule$outboundSchema; - /** @deprecated use `OktaGroupRule$Outbound` instead. */ - export type Outbound = OktaGroupRule$Outbound; -} - export function oktaGroupRuleToJSON(oktaGroupRule: OktaGroupRule): string { return JSON.stringify(OktaGroupRule$outboundSchema.parse(oktaGroupRule)); } - export function oktaGroupRuleFromJSON( jsonString: string, ): SafeParseResult { @@ -855,7 +964,6 @@ export const WorkdayUserSecurityGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type WorkdayUserSecurityGroup$Outbound = { group_id: string; @@ -874,19 +982,6 @@ export const WorkdayUserSecurityGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WorkdayUserSecurityGroup$ { - /** @deprecated use `WorkdayUserSecurityGroup$inboundSchema` instead. */ - export const inboundSchema = WorkdayUserSecurityGroup$inboundSchema; - /** @deprecated use `WorkdayUserSecurityGroup$outboundSchema` instead. */ - export const outboundSchema = WorkdayUserSecurityGroup$outboundSchema; - /** @deprecated use `WorkdayUserSecurityGroup$Outbound` instead. */ - export type Outbound = WorkdayUserSecurityGroup$Outbound; -} - export function workdayUserSecurityGroupToJSON( workdayUserSecurityGroup: WorkdayUserSecurityGroup, ): string { @@ -894,7 +989,6 @@ export function workdayUserSecurityGroupToJSON( WorkdayUserSecurityGroup$outboundSchema.parse(workdayUserSecurityGroup), ); } - export function workdayUserSecurityGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -905,6 +999,143 @@ export function workdayUserSecurityGroupFromJSON( ); } +/** @internal */ +export const PagerdutyOnCallSchedule$inboundSchema: z.ZodType< + PagerdutyOnCallSchedule, + z.ZodTypeDef, + unknown +> = z.object({ + schedule_id: z.string(), +}).transform((v) => { + return remap$(v, { + "schedule_id": "scheduleId", + }); +}); +/** @internal */ +export type PagerdutyOnCallSchedule$Outbound = { + schedule_id: string; +}; + +/** @internal */ +export const PagerdutyOnCallSchedule$outboundSchema: z.ZodType< + PagerdutyOnCallSchedule$Outbound, + z.ZodTypeDef, + PagerdutyOnCallSchedule +> = z.object({ + scheduleId: z.string(), +}).transform((v) => { + return remap$(v, { + scheduleId: "schedule_id", + }); +}); + +export function pagerdutyOnCallScheduleToJSON( + pagerdutyOnCallSchedule: PagerdutyOnCallSchedule, +): string { + return JSON.stringify( + PagerdutyOnCallSchedule$outboundSchema.parse(pagerdutyOnCallSchedule), + ); +} +export function pagerdutyOnCallScheduleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PagerdutyOnCallSchedule$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PagerdutyOnCallSchedule' from JSON`, + ); +} + +/** @internal */ +export const IncidentioOnCallSchedule$inboundSchema: z.ZodType< + IncidentioOnCallSchedule, + z.ZodTypeDef, + unknown +> = z.object({ + schedule_id: z.string(), +}).transform((v) => { + return remap$(v, { + "schedule_id": "scheduleId", + }); +}); +/** @internal */ +export type IncidentioOnCallSchedule$Outbound = { + schedule_id: string; +}; + +/** @internal */ +export const IncidentioOnCallSchedule$outboundSchema: z.ZodType< + IncidentioOnCallSchedule$Outbound, + z.ZodTypeDef, + IncidentioOnCallSchedule +> = z.object({ + scheduleId: z.string(), +}).transform((v) => { + return remap$(v, { + scheduleId: "schedule_id", + }); +}); + +export function incidentioOnCallScheduleToJSON( + incidentioOnCallSchedule: IncidentioOnCallSchedule, +): string { + return JSON.stringify( + IncidentioOnCallSchedule$outboundSchema.parse(incidentioOnCallSchedule), + ); +} +export function incidentioOnCallScheduleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => IncidentioOnCallSchedule$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'IncidentioOnCallSchedule' from JSON`, + ); +} + +/** @internal */ +export const DevinGroup$inboundSchema: z.ZodType< + DevinGroup, + z.ZodTypeDef, + unknown +> = z.object({ + group_name: z.string(), +}).transform((v) => { + return remap$(v, { + "group_name": "groupName", + }); +}); +/** @internal */ +export type DevinGroup$Outbound = { + group_name: string; +}; + +/** @internal */ +export const DevinGroup$outboundSchema: z.ZodType< + DevinGroup$Outbound, + z.ZodTypeDef, + DevinGroup +> = z.object({ + groupName: z.string(), +}).transform((v) => { + return remap$(v, { + groupName: "group_name", + }); +}); + +export function devinGroupToJSON(devinGroup: DevinGroup): string { + return JSON.stringify(DevinGroup$outboundSchema.parse(devinGroup)); +} +export function devinGroupFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DevinGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DevinGroup' from JSON`, + ); +} + /** @internal */ export const GroupRemoteInfo$inboundSchema: z.ZodType< GroupRemoteInfo, @@ -913,6 +1144,11 @@ export const GroupRemoteInfo$inboundSchema: z.ZodType< > = z.object({ active_directory_group: z.lazy(() => ActiveDirectoryGroup$inboundSchema) .optional(), + tailscale_group: z.lazy(() => TailscaleGroup$inboundSchema).optional(), + aws_sso_group: z.lazy(() => AwsSsoGroup$inboundSchema).optional(), + databricks_account_group: z.lazy(() => DatabricksAccountGroup$inboundSchema) + .optional(), + connector_group: z.lazy(() => ConnectorGroup$inboundSchema).optional(), github_team: z.lazy(() => GithubTeam$inboundSchema).optional(), gitlab_group: z.lazy(() => GitlabGroup$inboundSchema).optional(), google_group: z.lazy(() => GoogleGroup$inboundSchema).optional(), @@ -929,9 +1165,20 @@ export const GroupRemoteInfo$inboundSchema: z.ZodType< workday_user_security_group: z.lazy(() => WorkdayUserSecurityGroup$inboundSchema ).optional(), + pagerduty_on_call_schedule: z.lazy(() => + PagerdutyOnCallSchedule$inboundSchema + ).optional(), + incidentio_on_call_schedule: z.lazy(() => + IncidentioOnCallSchedule$inboundSchema + ).optional(), + devin_group: z.lazy(() => DevinGroup$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "active_directory_group": "activeDirectoryGroup", + "tailscale_group": "tailscaleGroup", + "aws_sso_group": "awsSsoGroup", + "databricks_account_group": "databricksAccountGroup", + "connector_group": "connectorGroup", "github_team": "githubTeam", "gitlab_group": "gitlabGroup", "google_group": "googleGroup", @@ -943,12 +1190,18 @@ export const GroupRemoteInfo$inboundSchema: z.ZodType< "snowflake_role": "snowflakeRole", "okta_group_rule": "oktaGroupRule", "workday_user_security_group": "workdayUserSecurityGroup", + "pagerduty_on_call_schedule": "pagerdutyOnCallSchedule", + "incidentio_on_call_schedule": "incidentioOnCallSchedule", + "devin_group": "devinGroup", }); }); - /** @internal */ export type GroupRemoteInfo$Outbound = { active_directory_group?: ActiveDirectoryGroup$Outbound | undefined; + tailscale_group?: TailscaleGroup$Outbound | undefined; + aws_sso_group?: AwsSsoGroup$Outbound | undefined; + databricks_account_group?: DatabricksAccountGroup$Outbound | undefined; + connector_group?: ConnectorGroup$Outbound | undefined; github_team?: GithubTeam$Outbound | undefined; gitlab_group?: GitlabGroup$Outbound | undefined; google_group?: GoogleGroup$Outbound | undefined; @@ -960,6 +1213,9 @@ export type GroupRemoteInfo$Outbound = { snowflake_role?: SnowflakeRole$Outbound | undefined; okta_group_rule?: OktaGroupRule$Outbound | undefined; workday_user_security_group?: WorkdayUserSecurityGroup$Outbound | undefined; + pagerduty_on_call_schedule?: PagerdutyOnCallSchedule$Outbound | undefined; + incidentio_on_call_schedule?: IncidentioOnCallSchedule$Outbound | undefined; + devin_group?: DevinGroup$Outbound | undefined; }; /** @internal */ @@ -970,6 +1226,11 @@ export const GroupRemoteInfo$outboundSchema: z.ZodType< > = z.object({ activeDirectoryGroup: z.lazy(() => ActiveDirectoryGroup$outboundSchema) .optional(), + tailscaleGroup: z.lazy(() => TailscaleGroup$outboundSchema).optional(), + awsSsoGroup: z.lazy(() => AwsSsoGroup$outboundSchema).optional(), + databricksAccountGroup: z.lazy(() => DatabricksAccountGroup$outboundSchema) + .optional(), + connectorGroup: z.lazy(() => ConnectorGroup$outboundSchema).optional(), githubTeam: z.lazy(() => GithubTeam$outboundSchema).optional(), gitlabGroup: z.lazy(() => GitlabGroup$outboundSchema).optional(), googleGroup: z.lazy(() => GoogleGroup$outboundSchema).optional(), @@ -986,9 +1247,19 @@ export const GroupRemoteInfo$outboundSchema: z.ZodType< workdayUserSecurityGroup: z.lazy(() => WorkdayUserSecurityGroup$outboundSchema ).optional(), + pagerdutyOnCallSchedule: z.lazy(() => PagerdutyOnCallSchedule$outboundSchema) + .optional(), + incidentioOnCallSchedule: z.lazy(() => + IncidentioOnCallSchedule$outboundSchema + ).optional(), + devinGroup: z.lazy(() => DevinGroup$outboundSchema).optional(), }).transform((v) => { return remap$(v, { activeDirectoryGroup: "active_directory_group", + tailscaleGroup: "tailscale_group", + awsSsoGroup: "aws_sso_group", + databricksAccountGroup: "databricks_account_group", + connectorGroup: "connector_group", githubTeam: "github_team", gitlabGroup: "gitlab_group", googleGroup: "google_group", @@ -1000,28 +1271,17 @@ export const GroupRemoteInfo$outboundSchema: z.ZodType< snowflakeRole: "snowflake_role", oktaGroupRule: "okta_group_rule", workdayUserSecurityGroup: "workday_user_security_group", + pagerdutyOnCallSchedule: "pagerduty_on_call_schedule", + incidentioOnCallSchedule: "incidentio_on_call_schedule", + devinGroup: "devin_group", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupRemoteInfo$ { - /** @deprecated use `GroupRemoteInfo$inboundSchema` instead. */ - export const inboundSchema = GroupRemoteInfo$inboundSchema; - /** @deprecated use `GroupRemoteInfo$outboundSchema` instead. */ - export const outboundSchema = GroupRemoteInfo$outboundSchema; - /** @deprecated use `GroupRemoteInfo$Outbound` instead. */ - export type Outbound = GroupRemoteInfo$Outbound; -} - export function groupRemoteInfoToJSON( groupRemoteInfo: GroupRemoteInfo, ): string { return JSON.stringify(GroupRemoteInfo$outboundSchema.parse(groupRemoteInfo)); } - export function groupRemoteInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupresource.ts b/src/models/components/groupresource.ts index 0988370..f26f61a 100644 --- a/src/models/components/groupresource.ts +++ b/src/models/components/groupresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -60,7 +60,6 @@ export const GroupResource$inboundSchema: z.ZodType< "access_level": "accessLevel", }); }); - /** @internal */ export type GroupResource$Outbound = { group_id: string; @@ -85,23 +84,9 @@ export const GroupResource$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupResource$ { - /** @deprecated use `GroupResource$inboundSchema` instead. */ - export const inboundSchema = GroupResource$inboundSchema; - /** @deprecated use `GroupResource$outboundSchema` instead. */ - export const outboundSchema = GroupResource$outboundSchema; - /** @deprecated use `GroupResource$Outbound` instead. */ - export type Outbound = GroupResource$Outbound; -} - export function groupResourceToJSON(groupResource: GroupResource): string { return JSON.stringify(GroupResource$outboundSchema.parse(groupResource)); } - export function groupResourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupresourcelist.ts b/src/models/components/groupresourcelist.ts index 629ca92..273950d 100644 --- a/src/models/components/groupresourcelist.ts +++ b/src/models/components/groupresourcelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const GroupResourceList$inboundSchema: z.ZodType< "group_resources": "groupResources", }); }); - /** @internal */ export type GroupResourceList$Outbound = { group_resources: Array; @@ -49,19 +48,6 @@ export const GroupResourceList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupResourceList$ { - /** @deprecated use `GroupResourceList$inboundSchema` instead. */ - export const inboundSchema = GroupResourceList$inboundSchema; - /** @deprecated use `GroupResourceList$outboundSchema` instead. */ - export const outboundSchema = GroupResourceList$outboundSchema; - /** @deprecated use `GroupResourceList$Outbound` instead. */ - export type Outbound = GroupResourceList$Outbound; -} - export function groupResourceListToJSON( groupResourceList: GroupResourceList, ): string { @@ -69,7 +55,6 @@ export function groupResourceListToJSON( GroupResourceList$outboundSchema.parse(groupResourceList), ); } - export function groupResourceListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/grouptypeenum.ts b/src/models/components/grouptypeenum.ts index ba6273b..2c0c825 100644 --- a/src/models/components/grouptypeenum.ts +++ b/src/models/components/grouptypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -28,6 +28,9 @@ export const GroupTypeEnum = { ConnectorGroup: "CONNECTOR_GROUP", SnowflakeRole: "SNOWFLAKE_ROLE", WorkdayUserSecurityGroup: "WORKDAY_USER_SECURITY_GROUP", + PagerdutyOnCallSchedule: "PAGERDUTY_ON_CALL_SCHEDULE", + IncidentioOnCallSchedule: "INCIDENTIO_ON_CALL_SCHEDULE", + DevinGroup: "DEVIN_GROUP", } as const; /** * The type of the group. @@ -38,19 +41,7 @@ export type GroupTypeEnum = ClosedEnum; export const GroupTypeEnum$inboundSchema: z.ZodNativeEnum< typeof GroupTypeEnum > = z.nativeEnum(GroupTypeEnum); - /** @internal */ export const GroupTypeEnum$outboundSchema: z.ZodNativeEnum< typeof GroupTypeEnum > = GroupTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupTypeEnum$ { - /** @deprecated use `GroupTypeEnum$inboundSchema` instead. */ - export const inboundSchema = GroupTypeEnum$inboundSchema; - /** @deprecated use `GroupTypeEnum$outboundSchema` instead. */ - export const outboundSchema = GroupTypeEnum$outboundSchema; -} diff --git a/src/models/components/groupuser.ts b/src/models/components/groupuser.ts index a1edeba..cdcf28c 100644 --- a/src/models/components/groupuser.ts +++ b/src/models/components/groupuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,6 +35,14 @@ export type GroupUser = { * The ID of the group. */ groupId: string; + /** + * The name of the group. + */ + groupName: string; + /** + * The description of the group. + */ + description: string; /** * The ID of the user. */ @@ -76,6 +84,8 @@ export const GroupUser$inboundSchema: z.ZodType< unknown > = z.object({ group_id: z.string(), + group_name: z.string(), + description: z.string(), user_id: z.string(), access_level: GroupAccessLevel$inboundSchema.optional(), full_name: z.string(), @@ -87,6 +97,7 @@ export const GroupUser$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "group_id": "groupId", + "group_name": "groupName", "user_id": "userId", "access_level": "accessLevel", "full_name": "fullName", @@ -94,10 +105,11 @@ export const GroupUser$inboundSchema: z.ZodType< "propagation_status": "propagationStatus", }); }); - /** @internal */ export type GroupUser$Outbound = { group_id: string; + group_name: string; + description: string; user_id: string; access_level?: GroupAccessLevel$Outbound | undefined; full_name: string; @@ -113,6 +125,8 @@ export const GroupUser$outboundSchema: z.ZodType< GroupUser > = z.object({ groupId: z.string(), + groupName: z.string(), + description: z.string(), userId: z.string(), accessLevel: GroupAccessLevel$outboundSchema.optional(), fullName: z.string(), @@ -123,6 +137,7 @@ export const GroupUser$outboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { groupId: "group_id", + groupName: "group_name", userId: "user_id", accessLevel: "access_level", fullName: "full_name", @@ -131,23 +146,9 @@ export const GroupUser$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupUser$ { - /** @deprecated use `GroupUser$inboundSchema` instead. */ - export const inboundSchema = GroupUser$inboundSchema; - /** @deprecated use `GroupUser$outboundSchema` instead. */ - export const outboundSchema = GroupUser$outboundSchema; - /** @deprecated use `GroupUser$Outbound` instead. */ - export type Outbound = GroupUser$Outbound; -} - export function groupUserToJSON(groupUser: GroupUser): string { return JSON.stringify(GroupUser$outboundSchema.parse(groupUser)); } - export function groupUserFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/groupuserlist.ts b/src/models/components/groupuserlist.ts index 2b2c380..3c68c81 100644 --- a/src/models/components/groupuserlist.ts +++ b/src/models/components/groupuserlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,6 +15,14 @@ import { export type GroupUserList = { results?: Array | undefined; + /** + * The cursor with which to continue pagination if additional result pages exist. + */ + next?: string | null | undefined; + /** + * The cursor used to obtain the current result page. + */ + previous?: string | null | undefined; }; /** @internal */ @@ -24,11 +32,14 @@ export const GroupUserList$inboundSchema: z.ZodType< unknown > = z.object({ results: z.array(GroupUser$inboundSchema).optional(), + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), }); - /** @internal */ export type GroupUserList$Outbound = { results?: Array | undefined; + next?: string | null | undefined; + previous?: string | null | undefined; }; /** @internal */ @@ -38,25 +49,13 @@ export const GroupUserList$outboundSchema: z.ZodType< GroupUserList > = z.object({ results: z.array(GroupUser$outboundSchema).optional(), + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupUserList$ { - /** @deprecated use `GroupUserList$inboundSchema` instead. */ - export const inboundSchema = GroupUserList$inboundSchema; - /** @deprecated use `GroupUserList$outboundSchema` instead. */ - export const outboundSchema = GroupUserList$outboundSchema; - /** @deprecated use `GroupUserList$Outbound` instead. */ - export type Outbound = GroupUserList$Outbound; -} - export function groupUserListToJSON(groupUserList: GroupUserList): string { return JSON.stringify(GroupUserList$outboundSchema.parse(groupUserList)); } - export function groupUserListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/idpgroupmapping.ts b/src/models/components/idpgroupmapping.ts index e48f841..0bba99d 100644 --- a/src/models/components/idpgroupmapping.ts +++ b/src/models/components/idpgroupmapping.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -12,6 +12,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; * Information about a group mapping. */ export type IdpGroupMapping = { + /** + * The ID of the app resource. + */ + appResourceId?: string | undefined; /** * The ID of the group. */ @@ -32,18 +36,20 @@ export const IdpGroupMapping$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + app_resource_id: z.string().optional(), group_id: z.string(), alias: z.string().optional(), hidden_from_end_user: z.boolean(), }).transform((v) => { return remap$(v, { + "app_resource_id": "appResourceId", "group_id": "groupId", "hidden_from_end_user": "hiddenFromEndUser", }); }); - /** @internal */ export type IdpGroupMapping$Outbound = { + app_resource_id?: string | undefined; group_id: string; alias?: string | undefined; hidden_from_end_user: boolean; @@ -55,35 +61,23 @@ export const IdpGroupMapping$outboundSchema: z.ZodType< z.ZodTypeDef, IdpGroupMapping > = z.object({ + appResourceId: z.string().optional(), groupId: z.string(), alias: z.string().optional(), hiddenFromEndUser: z.boolean(), }).transform((v) => { return remap$(v, { + appResourceId: "app_resource_id", groupId: "group_id", hiddenFromEndUser: "hidden_from_end_user", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IdpGroupMapping$ { - /** @deprecated use `IdpGroupMapping$inboundSchema` instead. */ - export const inboundSchema = IdpGroupMapping$inboundSchema; - /** @deprecated use `IdpGroupMapping$outboundSchema` instead. */ - export const outboundSchema = IdpGroupMapping$outboundSchema; - /** @deprecated use `IdpGroupMapping$Outbound` instead. */ - export type Outbound = IdpGroupMapping$Outbound; -} - export function idpGroupMappingToJSON( idpGroupMapping: IdpGroupMapping, ): string { return JSON.stringify(IdpGroupMapping$outboundSchema.parse(idpGroupMapping)); } - export function idpGroupMappingFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/idpgroupmappinglist.ts b/src/models/components/idpgroupmappinglist.ts index 8971b92..275eae1 100644 --- a/src/models/components/idpgroupmappinglist.ts +++ b/src/models/components/idpgroupmappinglist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const IdpGroupMappingList$inboundSchema: z.ZodType< > = z.object({ mappings: z.array(IdpGroupMapping$inboundSchema), }); - /** @internal */ export type IdpGroupMappingList$Outbound = { mappings: Array; @@ -40,19 +39,6 @@ export const IdpGroupMappingList$outboundSchema: z.ZodType< mappings: z.array(IdpGroupMapping$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IdpGroupMappingList$ { - /** @deprecated use `IdpGroupMappingList$inboundSchema` instead. */ - export const inboundSchema = IdpGroupMappingList$inboundSchema; - /** @deprecated use `IdpGroupMappingList$outboundSchema` instead. */ - export const outboundSchema = IdpGroupMappingList$outboundSchema; - /** @deprecated use `IdpGroupMappingList$Outbound` instead. */ - export type Outbound = IdpGroupMappingList$Outbound; -} - export function idpGroupMappingListToJSON( idpGroupMappingList: IdpGroupMappingList, ): string { @@ -60,7 +46,6 @@ export function idpGroupMappingListToJSON( IdpGroupMappingList$outboundSchema.parse(idpGroupMappingList), ); } - export function idpGroupMappingListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 17512f0..98f20eb 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -19,6 +19,7 @@ export * from "./condition.js"; export * from "./configurationtemplate.js"; export * from "./createbundleinfo.js"; export * from "./createconfigurationtemplateinfo.js"; +export * from "./createdelegationrequest.js"; export * from "./creategroupbindinginfo.js"; export * from "./creategroupinfo.js"; export * from "./createmessagechannelinfo.js"; @@ -29,6 +30,7 @@ export * from "./createrequestinfo.js"; export * from "./createresourceinfo.js"; export * from "./createtaginfo.js"; export * from "./createuarinfo.js"; +export * from "./delegation.js"; export * from "./entitytypeenum.js"; export * from "./event.js"; export * from "./group.js"; @@ -59,17 +61,24 @@ export * from "./paginatedbundlegrouplist.js"; export * from "./paginatedbundlelist.js"; export * from "./paginatedbundleresourcelist.js"; export * from "./paginatedconfigurationtemplatelist.js"; +export * from "./paginateddelegationslist.js"; export * from "./paginatedeventlist.js"; export * from "./paginatedgroupbindingslist.js"; export * from "./paginatedgroupslist.js"; export * from "./paginatedownerslist.js"; +export * from "./paginatedremoteuserslist.js"; export * from "./paginatedresourceslist.js"; export * from "./paginatedtagslist.js"; export * from "./paginateduarslist.js"; export * from "./paginateduserslist.js"; export * from "./propagationstatus.js"; export * from "./propagationstatusenum.js"; +export * from "./rdsengineenum.js"; +export * from "./remoteuser.js"; export * from "./request.js"; +export * from "./requestapprovalenum.js"; +export * from "./requestcomment.js"; +export * from "./requestcommentlist.js"; export * from "./requestconfiguration.js"; export * from "./requestconnection.js"; export * from "./requestcustomfieldresponse.js"; @@ -78,6 +87,7 @@ export * from "./requesteditem.js"; export * from "./requestitemstages.js"; export * from "./requestlist.js"; export * from "./requestreviewer.js"; +export * from "./requestreviewerstages.js"; export * from "./requeststage.js"; export * from "./requeststatusenum.js"; export * from "./requesttemplatecustomfieldtypeenum.js"; @@ -110,10 +120,12 @@ export * from "./sessionslist.js"; export * from "./subevent.js"; export * from "./syncerror.js"; export * from "./syncerrorlist.js"; +export * from "./synctask.js"; export * from "./tag.js"; export * from "./tagfilter.js"; export * from "./tagselector.js"; export * from "./tagslist.js"; +export * from "./thirdpartyproviderenum.js"; export * from "./ticketingproviderenum.js"; export * from "./ticketpropagationconfiguration.js"; export * from "./uar.js"; diff --git a/src/models/components/messagechannel.ts b/src/models/components/messagechannel.ts index efbacc1..86a407a 100644 --- a/src/models/components/messagechannel.ts +++ b/src/models/components/messagechannel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -65,7 +65,6 @@ export const MessageChannel$inboundSchema: z.ZodType< "is_private": "isPrivate", }); }); - /** @internal */ export type MessageChannel$Outbound = { message_channel_id: string; @@ -95,23 +94,9 @@ export const MessageChannel$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageChannel$ { - /** @deprecated use `MessageChannel$inboundSchema` instead. */ - export const inboundSchema = MessageChannel$inboundSchema; - /** @deprecated use `MessageChannel$outboundSchema` instead. */ - export const outboundSchema = MessageChannel$outboundSchema; - /** @deprecated use `MessageChannel$Outbound` instead. */ - export type Outbound = MessageChannel$Outbound; -} - export function messageChannelToJSON(messageChannel: MessageChannel): string { return JSON.stringify(MessageChannel$outboundSchema.parse(messageChannel)); } - export function messageChannelFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/messagechannelidlist.ts b/src/models/components/messagechannelidlist.ts index 4b0592a..a239aa3 100644 --- a/src/models/components/messagechannelidlist.ts +++ b/src/models/components/messagechannelidlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const MessageChannelIDList$inboundSchema: z.ZodType< "message_channel_ids": "messageChannelIds", }); }); - /** @internal */ export type MessageChannelIDList$Outbound = { message_channel_ids: Array; @@ -46,19 +45,6 @@ export const MessageChannelIDList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageChannelIDList$ { - /** @deprecated use `MessageChannelIDList$inboundSchema` instead. */ - export const inboundSchema = MessageChannelIDList$inboundSchema; - /** @deprecated use `MessageChannelIDList$outboundSchema` instead. */ - export const outboundSchema = MessageChannelIDList$outboundSchema; - /** @deprecated use `MessageChannelIDList$Outbound` instead. */ - export type Outbound = MessageChannelIDList$Outbound; -} - export function messageChannelIDListToJSON( messageChannelIDList: MessageChannelIDList, ): string { @@ -66,7 +52,6 @@ export function messageChannelIDListToJSON( MessageChannelIDList$outboundSchema.parse(messageChannelIDList), ); } - export function messageChannelIDListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/messagechannellist.ts b/src/models/components/messagechannellist.ts index f1d1a47..a2107e4 100644 --- a/src/models/components/messagechannellist.ts +++ b/src/models/components/messagechannellist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const MessageChannelList$inboundSchema: z.ZodType< > = z.object({ channels: z.array(MessageChannel$inboundSchema), }); - /** @internal */ export type MessageChannelList$Outbound = { channels: Array; @@ -40,19 +39,6 @@ export const MessageChannelList$outboundSchema: z.ZodType< channels: z.array(MessageChannel$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageChannelList$ { - /** @deprecated use `MessageChannelList$inboundSchema` instead. */ - export const inboundSchema = MessageChannelList$inboundSchema; - /** @deprecated use `MessageChannelList$outboundSchema` instead. */ - export const outboundSchema = MessageChannelList$outboundSchema; - /** @deprecated use `MessageChannelList$Outbound` instead. */ - export type Outbound = MessageChannelList$Outbound; -} - export function messageChannelListToJSON( messageChannelList: MessageChannelList, ): string { @@ -60,7 +46,6 @@ export function messageChannelListToJSON( MessageChannelList$outboundSchema.parse(messageChannelList), ); } - export function messageChannelListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/messagechannelproviderenum.ts b/src/models/components/messagechannelproviderenum.ts index b717d4c..32a12b1 100644 --- a/src/models/components/messagechannelproviderenum.ts +++ b/src/models/components/messagechannelproviderenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -22,19 +22,7 @@ export type MessageChannelProviderEnum = ClosedEnum< export const MessageChannelProviderEnum$inboundSchema: z.ZodNativeEnum< typeof MessageChannelProviderEnum > = z.nativeEnum(MessageChannelProviderEnum); - /** @internal */ export const MessageChannelProviderEnum$outboundSchema: z.ZodNativeEnum< typeof MessageChannelProviderEnum > = MessageChannelProviderEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MessageChannelProviderEnum$ { - /** @deprecated use `MessageChannelProviderEnum$inboundSchema` instead. */ - export const inboundSchema = MessageChannelProviderEnum$inboundSchema; - /** @deprecated use `MessageChannelProviderEnum$outboundSchema` instead. */ - export const outboundSchema = MessageChannelProviderEnum$outboundSchema; -} diff --git a/src/models/components/oncallschedule.ts b/src/models/components/oncallschedule.ts index 40fad17..6722a57 100644 --- a/src/models/components/oncallschedule.ts +++ b/src/models/components/oncallschedule.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -59,7 +59,6 @@ export const OnCallSchedule$inboundSchema: z.ZodType< "remote_id": "remoteId", }); }); - /** @internal */ export type OnCallSchedule$Outbound = { on_call_schedule_id?: string | undefined; @@ -86,23 +85,9 @@ export const OnCallSchedule$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OnCallSchedule$ { - /** @deprecated use `OnCallSchedule$inboundSchema` instead. */ - export const inboundSchema = OnCallSchedule$inboundSchema; - /** @deprecated use `OnCallSchedule$outboundSchema` instead. */ - export const outboundSchema = OnCallSchedule$outboundSchema; - /** @deprecated use `OnCallSchedule$Outbound` instead. */ - export type Outbound = OnCallSchedule$Outbound; -} - export function onCallScheduleToJSON(onCallSchedule: OnCallSchedule): string { return JSON.stringify(OnCallSchedule$outboundSchema.parse(onCallSchedule)); } - export function onCallScheduleFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/oncallscheduleidlist.ts b/src/models/components/oncallscheduleidlist.ts index 21a77bf..8951f92 100644 --- a/src/models/components/oncallscheduleidlist.ts +++ b/src/models/components/oncallscheduleidlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const OnCallScheduleIDList$inboundSchema: z.ZodType< "on_call_schedule_ids": "onCallScheduleIds", }); }); - /** @internal */ export type OnCallScheduleIDList$Outbound = { on_call_schedule_ids: Array; @@ -46,19 +45,6 @@ export const OnCallScheduleIDList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OnCallScheduleIDList$ { - /** @deprecated use `OnCallScheduleIDList$inboundSchema` instead. */ - export const inboundSchema = OnCallScheduleIDList$inboundSchema; - /** @deprecated use `OnCallScheduleIDList$outboundSchema` instead. */ - export const outboundSchema = OnCallScheduleIDList$outboundSchema; - /** @deprecated use `OnCallScheduleIDList$Outbound` instead. */ - export type Outbound = OnCallScheduleIDList$Outbound; -} - export function onCallScheduleIDListToJSON( onCallScheduleIDList: OnCallScheduleIDList, ): string { @@ -66,7 +52,6 @@ export function onCallScheduleIDListToJSON( OnCallScheduleIDList$outboundSchema.parse(onCallScheduleIDList), ); } - export function onCallScheduleIDListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/oncallschedulelist.ts b/src/models/components/oncallschedulelist.ts index 656a2ec..cc9dfe3 100644 --- a/src/models/components/oncallschedulelist.ts +++ b/src/models/components/oncallschedulelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const OnCallScheduleList$inboundSchema: z.ZodType< "on_call_schedules": "onCallSchedules", }); }); - /** @internal */ export type OnCallScheduleList$Outbound = { on_call_schedules: Array; @@ -49,19 +48,6 @@ export const OnCallScheduleList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OnCallScheduleList$ { - /** @deprecated use `OnCallScheduleList$inboundSchema` instead. */ - export const inboundSchema = OnCallScheduleList$inboundSchema; - /** @deprecated use `OnCallScheduleList$outboundSchema` instead. */ - export const outboundSchema = OnCallScheduleList$outboundSchema; - /** @deprecated use `OnCallScheduleList$Outbound` instead. */ - export type Outbound = OnCallScheduleList$Outbound; -} - export function onCallScheduleListToJSON( onCallScheduleList: OnCallScheduleList, ): string { @@ -69,7 +55,6 @@ export function onCallScheduleListToJSON( OnCallScheduleList$outboundSchema.parse(onCallScheduleList), ); } - export function onCallScheduleListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/oncallscheduleproviderenum.ts b/src/models/components/oncallscheduleproviderenum.ts index eed8e6d..8927e20 100644 --- a/src/models/components/oncallscheduleproviderenum.ts +++ b/src/models/components/oncallscheduleproviderenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -23,19 +23,7 @@ export type OnCallScheduleProviderEnum = ClosedEnum< export const OnCallScheduleProviderEnum$inboundSchema: z.ZodNativeEnum< typeof OnCallScheduleProviderEnum > = z.nativeEnum(OnCallScheduleProviderEnum); - /** @internal */ export const OnCallScheduleProviderEnum$outboundSchema: z.ZodNativeEnum< typeof OnCallScheduleProviderEnum > = OnCallScheduleProviderEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OnCallScheduleProviderEnum$ { - /** @deprecated use `OnCallScheduleProviderEnum$inboundSchema` instead. */ - export const inboundSchema = OnCallScheduleProviderEnum$inboundSchema; - /** @deprecated use `OnCallScheduleProviderEnum$outboundSchema` instead. */ - export const outboundSchema = OnCallScheduleProviderEnum$outboundSchema; -} diff --git a/src/models/components/owner.ts b/src/models/components/owner.ts index 9311870..a7f33c3 100644 --- a/src/models/components/owner.ts +++ b/src/models/components/owner.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -53,7 +53,6 @@ export const Owner$inboundSchema: z.ZodType = z "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type Owner$Outbound = { owner_id: string; @@ -85,23 +84,9 @@ export const Owner$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Owner$ { - /** @deprecated use `Owner$inboundSchema` instead. */ - export const inboundSchema = Owner$inboundSchema; - /** @deprecated use `Owner$outboundSchema` instead. */ - export const outboundSchema = Owner$outboundSchema; - /** @deprecated use `Owner$Outbound` instead. */ - export type Outbound = Owner$Outbound; -} - export function ownerToJSON(owner: Owner): string { return JSON.stringify(Owner$outboundSchema.parse(owner)); } - export function ownerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/pageinfo.ts b/src/models/components/pageinfo.ts index d316bc7..7f98ec1 100644 --- a/src/models/components/pageinfo.ts +++ b/src/models/components/pageinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -37,7 +37,6 @@ export const PageInfo$inboundSchema: z.ZodType< hasPreviousPage: z.boolean(), startCursor: z.string(), }); - /** @internal */ export type PageInfo$Outbound = { hasNextPage: boolean; @@ -58,23 +57,9 @@ export const PageInfo$outboundSchema: z.ZodType< startCursor: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PageInfo$ { - /** @deprecated use `PageInfo$inboundSchema` instead. */ - export const inboundSchema = PageInfo$inboundSchema; - /** @deprecated use `PageInfo$outboundSchema` instead. */ - export const outboundSchema = PageInfo$outboundSchema; - /** @deprecated use `PageInfo$Outbound` instead. */ - export type Outbound = PageInfo$Outbound; -} - export function pageInfoToJSON(pageInfo: PageInfo): string { return JSON.stringify(PageInfo$outboundSchema.parse(pageInfo)); } - export function pageInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedbundlegrouplist.ts b/src/models/components/paginatedbundlegrouplist.ts index 444521f..e84a650 100644 --- a/src/models/components/paginatedbundlegrouplist.ts +++ b/src/models/components/paginatedbundlegrouplist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,7 +46,6 @@ export const PaginatedBundleGroupList$inboundSchema: z.ZodType< "bundle_groups": "bundleGroups", }); }); - /** @internal */ export type PaginatedBundleGroupList$Outbound = { previous?: string | null | undefined; @@ -72,19 +71,6 @@ export const PaginatedBundleGroupList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedBundleGroupList$ { - /** @deprecated use `PaginatedBundleGroupList$inboundSchema` instead. */ - export const inboundSchema = PaginatedBundleGroupList$inboundSchema; - /** @deprecated use `PaginatedBundleGroupList$outboundSchema` instead. */ - export const outboundSchema = PaginatedBundleGroupList$outboundSchema; - /** @deprecated use `PaginatedBundleGroupList$Outbound` instead. */ - export type Outbound = PaginatedBundleGroupList$Outbound; -} - export function paginatedBundleGroupListToJSON( paginatedBundleGroupList: PaginatedBundleGroupList, ): string { @@ -92,7 +78,6 @@ export function paginatedBundleGroupListToJSON( PaginatedBundleGroupList$outboundSchema.parse(paginatedBundleGroupList), ); } - export function paginatedBundleGroupListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedbundlelist.ts b/src/models/components/paginatedbundlelist.ts index 3456be9..0c38909 100644 --- a/src/models/components/paginatedbundlelist.ts +++ b/src/models/components/paginatedbundlelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const PaginatedBundleList$inboundSchema: z.ZodType< "total_count": "totalCount", }); }); - /** @internal */ export type PaginatedBundleList$Outbound = { previous?: string | null | undefined; @@ -70,19 +69,6 @@ export const PaginatedBundleList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedBundleList$ { - /** @deprecated use `PaginatedBundleList$inboundSchema` instead. */ - export const inboundSchema = PaginatedBundleList$inboundSchema; - /** @deprecated use `PaginatedBundleList$outboundSchema` instead. */ - export const outboundSchema = PaginatedBundleList$outboundSchema; - /** @deprecated use `PaginatedBundleList$Outbound` instead. */ - export type Outbound = PaginatedBundleList$Outbound; -} - export function paginatedBundleListToJSON( paginatedBundleList: PaginatedBundleList, ): string { @@ -90,7 +76,6 @@ export function paginatedBundleListToJSON( PaginatedBundleList$outboundSchema.parse(paginatedBundleList), ); } - export function paginatedBundleListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedbundleresourcelist.ts b/src/models/components/paginatedbundleresourcelist.ts index 0eabbf2..6187cb4 100644 --- a/src/models/components/paginatedbundleresourcelist.ts +++ b/src/models/components/paginatedbundleresourcelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,7 +46,6 @@ export const PaginatedBundleResourceList$inboundSchema: z.ZodType< "bundle_resources": "bundleResources", }); }); - /** @internal */ export type PaginatedBundleResourceList$Outbound = { previous?: string | null | undefined; @@ -72,19 +71,6 @@ export const PaginatedBundleResourceList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedBundleResourceList$ { - /** @deprecated use `PaginatedBundleResourceList$inboundSchema` instead. */ - export const inboundSchema = PaginatedBundleResourceList$inboundSchema; - /** @deprecated use `PaginatedBundleResourceList$outboundSchema` instead. */ - export const outboundSchema = PaginatedBundleResourceList$outboundSchema; - /** @deprecated use `PaginatedBundleResourceList$Outbound` instead. */ - export type Outbound = PaginatedBundleResourceList$Outbound; -} - export function paginatedBundleResourceListToJSON( paginatedBundleResourceList: PaginatedBundleResourceList, ): string { @@ -94,7 +80,6 @@ export function paginatedBundleResourceListToJSON( ), ); } - export function paginatedBundleResourceListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedconfigurationtemplatelist.ts b/src/models/components/paginatedconfigurationtemplatelist.ts index 602b189..2bc348e 100644 --- a/src/models/components/paginatedconfigurationtemplatelist.ts +++ b/src/models/components/paginatedconfigurationtemplatelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedConfigurationTemplateList$inboundSchema: z.ZodType< > = z.object({ results: z.array(ConfigurationTemplate$inboundSchema).optional(), }); - /** @internal */ export type PaginatedConfigurationTemplateList$Outbound = { results?: Array | undefined; @@ -50,20 +49,6 @@ export const PaginatedConfigurationTemplateList$outboundSchema: z.ZodType< results: z.array(ConfigurationTemplate$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedConfigurationTemplateList$ { - /** @deprecated use `PaginatedConfigurationTemplateList$inboundSchema` instead. */ - export const inboundSchema = PaginatedConfigurationTemplateList$inboundSchema; - /** @deprecated use `PaginatedConfigurationTemplateList$outboundSchema` instead. */ - export const outboundSchema = - PaginatedConfigurationTemplateList$outboundSchema; - /** @deprecated use `PaginatedConfigurationTemplateList$Outbound` instead. */ - export type Outbound = PaginatedConfigurationTemplateList$Outbound; -} - export function paginatedConfigurationTemplateListToJSON( paginatedConfigurationTemplateList: PaginatedConfigurationTemplateList, ): string { @@ -73,7 +58,6 @@ export function paginatedConfigurationTemplateListToJSON( ), ); } - export function paginatedConfigurationTemplateListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginateddelegationslist.ts b/src/models/components/paginateddelegationslist.ts new file mode 100644 index 0000000..8632aff --- /dev/null +++ b/src/models/components/paginateddelegationslist.ts @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + Delegation, + Delegation$inboundSchema, + Delegation$Outbound, + Delegation$outboundSchema, +} from "./delegation.js"; + +/** + * A list of delegations for your organization. + */ +export type PaginatedDelegationsList = { + /** + * The delegations in the result set. + */ + results?: Array | undefined; + /** + * The cursor with which to continue pagination if additional result pages exist. + */ + next?: string | null | undefined; + /** + * The cursor used to obtain the current result page. + */ + previous?: string | null | undefined; + /** + * The total number of items in the result set. + */ + totalCount?: number | undefined; +}; + +/** @internal */ +export const PaginatedDelegationsList$inboundSchema: z.ZodType< + PaginatedDelegationsList, + z.ZodTypeDef, + unknown +> = z.object({ + results: z.array(Delegation$inboundSchema).optional(), + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), + total_count: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "total_count": "totalCount", + }); +}); +/** @internal */ +export type PaginatedDelegationsList$Outbound = { + results?: Array | undefined; + next?: string | null | undefined; + previous?: string | null | undefined; + total_count?: number | undefined; +}; + +/** @internal */ +export const PaginatedDelegationsList$outboundSchema: z.ZodType< + PaginatedDelegationsList$Outbound, + z.ZodTypeDef, + PaginatedDelegationsList +> = z.object({ + results: z.array(Delegation$outboundSchema).optional(), + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), + totalCount: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + totalCount: "total_count", + }); +}); + +export function paginatedDelegationsListToJSON( + paginatedDelegationsList: PaginatedDelegationsList, +): string { + return JSON.stringify( + PaginatedDelegationsList$outboundSchema.parse(paginatedDelegationsList), + ); +} +export function paginatedDelegationsListFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PaginatedDelegationsList$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PaginatedDelegationsList' from JSON`, + ); +} diff --git a/src/models/components/paginatedeventlist.ts b/src/models/components/paginatedeventlist.ts index 4e4b5ce..be9f460 100644 --- a/src/models/components/paginatedeventlist.ts +++ b/src/models/components/paginatedeventlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedEventList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Event$inboundSchema).optional(), }); - /** @internal */ export type PaginatedEventList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedEventList$outboundSchema: z.ZodType< results: z.array(Event$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedEventList$ { - /** @deprecated use `PaginatedEventList$inboundSchema` instead. */ - export const inboundSchema = PaginatedEventList$inboundSchema; - /** @deprecated use `PaginatedEventList$outboundSchema` instead. */ - export const outboundSchema = PaginatedEventList$outboundSchema; - /** @deprecated use `PaginatedEventList$Outbound` instead. */ - export type Outbound = PaginatedEventList$Outbound; -} - export function paginatedEventListToJSON( paginatedEventList: PaginatedEventList, ): string { @@ -74,7 +60,6 @@ export function paginatedEventListToJSON( PaginatedEventList$outboundSchema.parse(paginatedEventList), ); } - export function paginatedEventListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedgroupbindingslist.ts b/src/models/components/paginatedgroupbindingslist.ts index bfe1dda..d48c19c 100644 --- a/src/models/components/paginatedgroupbindingslist.ts +++ b/src/models/components/paginatedgroupbindingslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedGroupBindingsList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(GroupBinding$inboundSchema), }); - /** @internal */ export type PaginatedGroupBindingsList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedGroupBindingsList$outboundSchema: z.ZodType< results: z.array(GroupBinding$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedGroupBindingsList$ { - /** @deprecated use `PaginatedGroupBindingsList$inboundSchema` instead. */ - export const inboundSchema = PaginatedGroupBindingsList$inboundSchema; - /** @deprecated use `PaginatedGroupBindingsList$outboundSchema` instead. */ - export const outboundSchema = PaginatedGroupBindingsList$outboundSchema; - /** @deprecated use `PaginatedGroupBindingsList$Outbound` instead. */ - export type Outbound = PaginatedGroupBindingsList$Outbound; -} - export function paginatedGroupBindingsListToJSON( paginatedGroupBindingsList: PaginatedGroupBindingsList, ): string { @@ -74,7 +60,6 @@ export function paginatedGroupBindingsListToJSON( PaginatedGroupBindingsList$outboundSchema.parse(paginatedGroupBindingsList), ); } - export function paginatedGroupBindingsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedgroupslist.ts b/src/models/components/paginatedgroupslist.ts index 7ffdd3c..57778be 100644 --- a/src/models/components/paginatedgroupslist.ts +++ b/src/models/components/paginatedgroupslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedGroupsList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Group$inboundSchema), }); - /** @internal */ export type PaginatedGroupsList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedGroupsList$outboundSchema: z.ZodType< results: z.array(Group$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedGroupsList$ { - /** @deprecated use `PaginatedGroupsList$inboundSchema` instead. */ - export const inboundSchema = PaginatedGroupsList$inboundSchema; - /** @deprecated use `PaginatedGroupsList$outboundSchema` instead. */ - export const outboundSchema = PaginatedGroupsList$outboundSchema; - /** @deprecated use `PaginatedGroupsList$Outbound` instead. */ - export type Outbound = PaginatedGroupsList$Outbound; -} - export function paginatedGroupsListToJSON( paginatedGroupsList: PaginatedGroupsList, ): string { @@ -74,7 +60,6 @@ export function paginatedGroupsListToJSON( PaginatedGroupsList$outboundSchema.parse(paginatedGroupsList), ); } - export function paginatedGroupsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedownerslist.ts b/src/models/components/paginatedownerslist.ts index 1c61dc1..3da7c5c 100644 --- a/src/models/components/paginatedownerslist.ts +++ b/src/models/components/paginatedownerslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedOwnersList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Owner$inboundSchema), }); - /** @internal */ export type PaginatedOwnersList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedOwnersList$outboundSchema: z.ZodType< results: z.array(Owner$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedOwnersList$ { - /** @deprecated use `PaginatedOwnersList$inboundSchema` instead. */ - export const inboundSchema = PaginatedOwnersList$inboundSchema; - /** @deprecated use `PaginatedOwnersList$outboundSchema` instead. */ - export const outboundSchema = PaginatedOwnersList$outboundSchema; - /** @deprecated use `PaginatedOwnersList$Outbound` instead. */ - export type Outbound = PaginatedOwnersList$Outbound; -} - export function paginatedOwnersListToJSON( paginatedOwnersList: PaginatedOwnersList, ): string { @@ -74,7 +60,6 @@ export function paginatedOwnersListToJSON( PaginatedOwnersList$outboundSchema.parse(paginatedOwnersList), ); } - export function paginatedOwnersListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedremoteuserslist.ts b/src/models/components/paginatedremoteuserslist.ts new file mode 100644 index 0000000..2c6c077 --- /dev/null +++ b/src/models/components/paginatedremoteuserslist.ts @@ -0,0 +1,71 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + RemoteUser, + RemoteUser$inboundSchema, + RemoteUser$Outbound, + RemoteUser$outboundSchema, +} from "./remoteuser.js"; + +export type PaginatedRemoteUsersList = { + /** + * The cursor with which to continue pagination if additional result pages exist. + */ + next?: string | null | undefined; + /** + * The cursor used to obtain the current result page. + */ + previous?: string | null | undefined; + results: Array; +}; + +/** @internal */ +export const PaginatedRemoteUsersList$inboundSchema: z.ZodType< + PaginatedRemoteUsersList, + z.ZodTypeDef, + unknown +> = z.object({ + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), + results: z.array(RemoteUser$inboundSchema), +}); +/** @internal */ +export type PaginatedRemoteUsersList$Outbound = { + next?: string | null | undefined; + previous?: string | null | undefined; + results: Array; +}; + +/** @internal */ +export const PaginatedRemoteUsersList$outboundSchema: z.ZodType< + PaginatedRemoteUsersList$Outbound, + z.ZodTypeDef, + PaginatedRemoteUsersList +> = z.object({ + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), + results: z.array(RemoteUser$outboundSchema), +}); + +export function paginatedRemoteUsersListToJSON( + paginatedRemoteUsersList: PaginatedRemoteUsersList, +): string { + return JSON.stringify( + PaginatedRemoteUsersList$outboundSchema.parse(paginatedRemoteUsersList), + ); +} +export function paginatedRemoteUsersListFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => PaginatedRemoteUsersList$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PaginatedRemoteUsersList' from JSON`, + ); +} diff --git a/src/models/components/paginatedresourceslist.ts b/src/models/components/paginatedresourceslist.ts index dda67c8..cd3b306 100644 --- a/src/models/components/paginatedresourceslist.ts +++ b/src/models/components/paginatedresourceslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedResourcesList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Resource$inboundSchema), }); - /** @internal */ export type PaginatedResourcesList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedResourcesList$outboundSchema: z.ZodType< results: z.array(Resource$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedResourcesList$ { - /** @deprecated use `PaginatedResourcesList$inboundSchema` instead. */ - export const inboundSchema = PaginatedResourcesList$inboundSchema; - /** @deprecated use `PaginatedResourcesList$outboundSchema` instead. */ - export const outboundSchema = PaginatedResourcesList$outboundSchema; - /** @deprecated use `PaginatedResourcesList$Outbound` instead. */ - export type Outbound = PaginatedResourcesList$Outbound; -} - export function paginatedResourcesListToJSON( paginatedResourcesList: PaginatedResourcesList, ): string { @@ -74,7 +60,6 @@ export function paginatedResourcesListToJSON( PaginatedResourcesList$outboundSchema.parse(paginatedResourcesList), ); } - export function paginatedResourcesListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginatedtagslist.ts b/src/models/components/paginatedtagslist.ts index ce90687..1ede6cb 100644 --- a/src/models/components/paginatedtagslist.ts +++ b/src/models/components/paginatedtagslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedTagsList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Tag$inboundSchema), }); - /** @internal */ export type PaginatedTagsList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedTagsList$outboundSchema: z.ZodType< results: z.array(Tag$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedTagsList$ { - /** @deprecated use `PaginatedTagsList$inboundSchema` instead. */ - export const inboundSchema = PaginatedTagsList$inboundSchema; - /** @deprecated use `PaginatedTagsList$outboundSchema` instead. */ - export const outboundSchema = PaginatedTagsList$outboundSchema; - /** @deprecated use `PaginatedTagsList$Outbound` instead. */ - export type Outbound = PaginatedTagsList$Outbound; -} - export function paginatedTagsListToJSON( paginatedTagsList: PaginatedTagsList, ): string { @@ -74,7 +60,6 @@ export function paginatedTagsListToJSON( PaginatedTagsList$outboundSchema.parse(paginatedTagsList), ); } - export function paginatedTagsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginateduarslist.ts b/src/models/components/paginateduarslist.ts index 390e063..0b4c1c0 100644 --- a/src/models/components/paginateduarslist.ts +++ b/src/models/components/paginateduarslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -38,7 +38,6 @@ export const PaginatedUARsList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Uar$inboundSchema), }); - /** @internal */ export type PaginatedUARsList$Outbound = { next?: string | null | undefined; @@ -57,19 +56,6 @@ export const PaginatedUARsList$outboundSchema: z.ZodType< results: z.array(Uar$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedUARsList$ { - /** @deprecated use `PaginatedUARsList$inboundSchema` instead. */ - export const inboundSchema = PaginatedUARsList$inboundSchema; - /** @deprecated use `PaginatedUARsList$outboundSchema` instead. */ - export const outboundSchema = PaginatedUARsList$outboundSchema; - /** @deprecated use `PaginatedUARsList$Outbound` instead. */ - export type Outbound = PaginatedUARsList$Outbound; -} - export function paginatedUARsListToJSON( paginatedUARsList: PaginatedUARsList, ): string { @@ -77,7 +63,6 @@ export function paginatedUARsListToJSON( PaginatedUARsList$outboundSchema.parse(paginatedUARsList), ); } - export function paginatedUARsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/paginateduserslist.ts b/src/models/components/paginateduserslist.ts index 6a706c8..dec15ac 100644 --- a/src/models/components/paginateduserslist.ts +++ b/src/models/components/paginateduserslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const PaginatedUsersList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(User$inboundSchema), }); - /** @internal */ export type PaginatedUsersList$Outbound = { next?: string | null | undefined; @@ -54,19 +53,6 @@ export const PaginatedUsersList$outboundSchema: z.ZodType< results: z.array(User$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PaginatedUsersList$ { - /** @deprecated use `PaginatedUsersList$inboundSchema` instead. */ - export const inboundSchema = PaginatedUsersList$inboundSchema; - /** @deprecated use `PaginatedUsersList$outboundSchema` instead. */ - export const outboundSchema = PaginatedUsersList$outboundSchema; - /** @deprecated use `PaginatedUsersList$Outbound` instead. */ - export type Outbound = PaginatedUsersList$Outbound; -} - export function paginatedUsersListToJSON( paginatedUsersList: PaginatedUsersList, ): string { @@ -74,7 +60,6 @@ export function paginatedUsersListToJSON( PaginatedUsersList$outboundSchema.parse(paginatedUsersList), ); } - export function paginatedUsersListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propagationstatus.ts b/src/models/components/propagationstatus.ts index 0ece451..b119989 100644 --- a/src/models/components/propagationstatus.ts +++ b/src/models/components/propagationstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,7 +30,6 @@ export const PropagationStatus$inboundSchema: z.ZodType< > = z.object({ status: PropagationStatusEnum$inboundSchema, }); - /** @internal */ export type PropagationStatus$Outbound = { status: string; @@ -45,19 +44,6 @@ export const PropagationStatus$outboundSchema: z.ZodType< status: PropagationStatusEnum$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropagationStatus$ { - /** @deprecated use `PropagationStatus$inboundSchema` instead. */ - export const inboundSchema = PropagationStatus$inboundSchema; - /** @deprecated use `PropagationStatus$outboundSchema` instead. */ - export const outboundSchema = PropagationStatus$outboundSchema; - /** @deprecated use `PropagationStatus$Outbound` instead. */ - export type Outbound = PropagationStatus$Outbound; -} - export function propagationStatusToJSON( propagationStatus: PropagationStatus, ): string { @@ -65,7 +51,6 @@ export function propagationStatusToJSON( PropagationStatus$outboundSchema.parse(propagationStatus), ); } - export function propagationStatusFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propagationstatusenum.ts b/src/models/components/propagationstatusenum.ts index fad4437..43b2c71 100644 --- a/src/models/components/propagationstatusenum.ts +++ b/src/models/components/propagationstatusenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -40,19 +40,7 @@ export type PropagationStatusEnum = ClosedEnum; export const PropagationStatusEnum$inboundSchema: z.ZodNativeEnum< typeof PropagationStatusEnum > = z.nativeEnum(PropagationStatusEnum); - /** @internal */ export const PropagationStatusEnum$outboundSchema: z.ZodNativeEnum< typeof PropagationStatusEnum > = PropagationStatusEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropagationStatusEnum$ { - /** @deprecated use `PropagationStatusEnum$inboundSchema` instead. */ - export const inboundSchema = PropagationStatusEnum$inboundSchema; - /** @deprecated use `PropagationStatusEnum$outboundSchema` instead. */ - export const outboundSchema = PropagationStatusEnum$outboundSchema; -} diff --git a/src/models/components/rdsengineenum.ts b/src/models/components/rdsengineenum.ts new file mode 100644 index 0000000..0151f15 --- /dev/null +++ b/src/models/components/rdsengineenum.ts @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * The database engine for the RDS instance. + */ +export const RDSEngineEnum = { + Mysql: "MYSQL", + Postgresql: "POSTGRESQL", +} as const; +/** + * The database engine for the RDS instance. + */ +export type RDSEngineEnum = ClosedEnum; + +/** @internal */ +export const RDSEngineEnum$inboundSchema: z.ZodNativeEnum< + typeof RDSEngineEnum +> = z.nativeEnum(RDSEngineEnum); +/** @internal */ +export const RDSEngineEnum$outboundSchema: z.ZodNativeEnum< + typeof RDSEngineEnum +> = RDSEngineEnum$inboundSchema; diff --git a/src/models/components/remoteuser.ts b/src/models/components/remoteuser.ts new file mode 100644 index 0000000..3a32856 --- /dev/null +++ b/src/models/components/remoteuser.ts @@ -0,0 +1,89 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + ThirdPartyProviderEnum, + ThirdPartyProviderEnum$inboundSchema, + ThirdPartyProviderEnum$outboundSchema, +} from "./thirdpartyproviderenum.js"; + +/** + * # RemoteUser Object + * + * @remarks + * ### Description + * The `RemoteUser` object is used to represent a remote user. + */ +export type RemoteUser = { + /** + * The ID of the user. + */ + userId: string; + /** + * The ID of the remote user. + */ + remoteId: string; + /** + * The third party provider of the remote user. + */ + thirdPartyProvider: ThirdPartyProviderEnum; +}; + +/** @internal */ +export const RemoteUser$inboundSchema: z.ZodType< + RemoteUser, + z.ZodTypeDef, + unknown +> = z.object({ + user_id: z.string(), + remote_id: z.string(), + third_party_provider: ThirdPartyProviderEnum$inboundSchema, +}).transform((v) => { + return remap$(v, { + "user_id": "userId", + "remote_id": "remoteId", + "third_party_provider": "thirdPartyProvider", + }); +}); +/** @internal */ +export type RemoteUser$Outbound = { + user_id: string; + remote_id: string; + third_party_provider: string; +}; + +/** @internal */ +export const RemoteUser$outboundSchema: z.ZodType< + RemoteUser$Outbound, + z.ZodTypeDef, + RemoteUser +> = z.object({ + userId: z.string(), + remoteId: z.string(), + thirdPartyProvider: ThirdPartyProviderEnum$outboundSchema, +}).transform((v) => { + return remap$(v, { + userId: "user_id", + remoteId: "remote_id", + thirdPartyProvider: "third_party_provider", + }); +}); + +export function remoteUserToJSON(remoteUser: RemoteUser): string { + return JSON.stringify(RemoteUser$outboundSchema.parse(remoteUser)); +} +export function remoteUserFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RemoteUser$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RemoteUser' from JSON`, + ); +} diff --git a/src/models/components/request.ts b/src/models/components/request.ts index a228614..2493f2c 100644 --- a/src/models/components/request.ts +++ b/src/models/components/request.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -25,12 +25,23 @@ import { RequestItemStages$Outbound, RequestItemStages$outboundSchema, } from "./requestitemstages.js"; +import { + RequestReviewerStages, + RequestReviewerStages$inboundSchema, + RequestReviewerStages$Outbound, + RequestReviewerStages$outboundSchema, +} from "./requestreviewerstages.js"; import { RequestStatusEnum, RequestStatusEnum$inboundSchema, RequestStatusEnum$outboundSchema, } from "./requeststatusenum.js"; +/** + * The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded + */ +export type ReviewerStages = Array | string; + /** * # Request Object * @@ -95,10 +106,47 @@ export type RequestT = { customFieldsResponses?: Array | undefined; /** * The stages configuration for a request item + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ stages?: RequestItemStages | undefined; + /** + * The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded + */ + reviewerStages?: Array | string | undefined; }; +/** @internal */ +export const ReviewerStages$inboundSchema: z.ZodType< + ReviewerStages, + z.ZodTypeDef, + unknown +> = z.union([z.array(RequestReviewerStages$inboundSchema), z.string()]); +/** @internal */ +export type ReviewerStages$Outbound = + | Array + | string; + +/** @internal */ +export const ReviewerStages$outboundSchema: z.ZodType< + ReviewerStages$Outbound, + z.ZodTypeDef, + ReviewerStages +> = z.union([z.array(RequestReviewerStages$outboundSchema), z.string()]); + +export function reviewerStagesToJSON(reviewerStages: ReviewerStages): string { + return JSON.stringify(ReviewerStages$outboundSchema.parse(reviewerStages)); +} +export function reviewerStagesFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ReviewerStages$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ReviewerStages' from JSON`, + ); +} + /** @internal */ export const RequestT$inboundSchema: z.ZodType< RequestT, @@ -118,6 +166,10 @@ export const RequestT$inboundSchema: z.ZodType< custom_fields_responses: z.array(RequestCustomFieldResponse$inboundSchema) .optional(), stages: RequestItemStages$inboundSchema.optional(), + reviewer_stages: z.union([ + z.array(RequestReviewerStages$inboundSchema), + z.string(), + ]).optional(), }).transform((v) => { return remap$(v, { "created_at": "createdAt", @@ -128,9 +180,9 @@ export const RequestT$inboundSchema: z.ZodType< "duration_minutes": "durationMinutes", "requested_items_list": "requestedItemsList", "custom_fields_responses": "customFieldsResponses", + "reviewer_stages": "reviewerStages", }); }); - /** @internal */ export type RequestT$Outbound = { id: string; @@ -147,6 +199,7 @@ export type RequestT$Outbound = { | Array | undefined; stages?: RequestItemStages$Outbound | undefined; + reviewer_stages?: Array | string | undefined; }; /** @internal */ @@ -168,6 +221,10 @@ export const RequestT$outboundSchema: z.ZodType< customFieldsResponses: z.array(RequestCustomFieldResponse$outboundSchema) .optional(), stages: RequestItemStages$outboundSchema.optional(), + reviewerStages: z.union([ + z.array(RequestReviewerStages$outboundSchema), + z.string(), + ]).optional(), }).transform((v) => { return remap$(v, { createdAt: "created_at", @@ -178,26 +235,13 @@ export const RequestT$outboundSchema: z.ZodType< durationMinutes: "duration_minutes", requestedItemsList: "requested_items_list", customFieldsResponses: "custom_fields_responses", + reviewerStages: "reviewer_stages", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestT$ { - /** @deprecated use `RequestT$inboundSchema` instead. */ - export const inboundSchema = RequestT$inboundSchema; - /** @deprecated use `RequestT$outboundSchema` instead. */ - export const outboundSchema = RequestT$outboundSchema; - /** @deprecated use `RequestT$Outbound` instead. */ - export type Outbound = RequestT$Outbound; -} - export function requestToJSON(requestT: RequestT): string { return JSON.stringify(RequestT$outboundSchema.parse(requestT)); } - export function requestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestapprovalenum.ts b/src/models/components/requestapprovalenum.ts new file mode 100644 index 0000000..1e06894 --- /dev/null +++ b/src/models/components/requestapprovalenum.ts @@ -0,0 +1,27 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * The decision level for the approval + */ +export const RequestApprovalEnum = { + Regular: "REGULAR", + Admin: "ADMIN", +} as const; +/** + * The decision level for the approval + */ +export type RequestApprovalEnum = ClosedEnum; + +/** @internal */ +export const RequestApprovalEnum$inboundSchema: z.ZodNativeEnum< + typeof RequestApprovalEnum +> = z.nativeEnum(RequestApprovalEnum); +/** @internal */ +export const RequestApprovalEnum$outboundSchema: z.ZodNativeEnum< + typeof RequestApprovalEnum +> = RequestApprovalEnum$inboundSchema; diff --git a/src/models/components/requestcomment.ts b/src/models/components/requestcomment.ts new file mode 100644 index 0000000..8ac529b --- /dev/null +++ b/src/models/components/requestcomment.ts @@ -0,0 +1,112 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * # Request Comment Object + * + * @remarks + * ### Description + * The `RequestComment` object is used to represent a comment on a request. + * + * ### Usage Example + * Returned from the `GET Requests` endpoint as part of a `Request` object. + */ +export type RequestComment = { + /** + * The date and time the comment was created. + */ + createdAt: Date; + /** + * The unique identifier of the request the comment is associated with. + */ + requestId: string; + /** + * The unique identifier of the user who made the comment. + */ + userId: string; + /** + * The user's full name. + */ + userFullName?: string | undefined; + /** + * The user's email address. + */ + userEmail?: string | undefined; + /** + * The content of the comment. + */ + comment: string; +}; + +/** @internal */ +export const RequestComment$inboundSchema: z.ZodType< + RequestComment, + z.ZodTypeDef, + unknown +> = z.object({ + created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), + request_id: z.string(), + user_id: z.string(), + user_full_name: z.string().optional(), + user_email: z.string().optional(), + comment: z.string(), +}).transform((v) => { + return remap$(v, { + "created_at": "createdAt", + "request_id": "requestId", + "user_id": "userId", + "user_full_name": "userFullName", + "user_email": "userEmail", + }); +}); +/** @internal */ +export type RequestComment$Outbound = { + created_at: string; + request_id: string; + user_id: string; + user_full_name?: string | undefined; + user_email?: string | undefined; + comment: string; +}; + +/** @internal */ +export const RequestComment$outboundSchema: z.ZodType< + RequestComment$Outbound, + z.ZodTypeDef, + RequestComment +> = z.object({ + createdAt: z.date().transform(v => v.toISOString()), + requestId: z.string(), + userId: z.string(), + userFullName: z.string().optional(), + userEmail: z.string().optional(), + comment: z.string(), +}).transform((v) => { + return remap$(v, { + createdAt: "created_at", + requestId: "request_id", + userId: "user_id", + userFullName: "user_full_name", + userEmail: "user_email", + }); +}); + +export function requestCommentToJSON(requestComment: RequestComment): string { + return JSON.stringify(RequestComment$outboundSchema.parse(requestComment)); +} +export function requestCommentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestComment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestComment' from JSON`, + ); +} diff --git a/src/models/components/requestcommentlist.ts b/src/models/components/requestcommentlist.ts new file mode 100644 index 0000000..e6b5270 --- /dev/null +++ b/src/models/components/requestcommentlist.ts @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + RequestComment, + RequestComment$inboundSchema, + RequestComment$Outbound, + RequestComment$outboundSchema, +} from "./requestcomment.js"; + +/** + * A paginated list of request comments + */ +export type RequestCommentList = { + comments: Array; +}; + +/** @internal */ +export const RequestCommentList$inboundSchema: z.ZodType< + RequestCommentList, + z.ZodTypeDef, + unknown +> = z.object({ + comments: z.array(RequestComment$inboundSchema), +}); +/** @internal */ +export type RequestCommentList$Outbound = { + comments: Array; +}; + +/** @internal */ +export const RequestCommentList$outboundSchema: z.ZodType< + RequestCommentList$Outbound, + z.ZodTypeDef, + RequestCommentList +> = z.object({ + comments: z.array(RequestComment$outboundSchema), +}); + +export function requestCommentListToJSON( + requestCommentList: RequestCommentList, +): string { + return JSON.stringify( + RequestCommentList$outboundSchema.parse(requestCommentList), + ); +} +export function requestCommentListFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestCommentList$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestCommentList' from JSON`, + ); +} diff --git a/src/models/components/requestconfiguration.ts b/src/models/components/requestconfiguration.ts index eb09b81..3085da2 100644 --- a/src/models/components/requestconfiguration.ts +++ b/src/models/components/requestconfiguration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -66,6 +66,10 @@ export type RequestConfiguration = { * A bool representing whether or not access requests to the resource require an access ticket. */ requireSupportTicket: boolean; + /** + * The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + */ + extensionsDurationInMinutes?: number | undefined; /** * The ID of the associated request template. */ @@ -93,6 +97,7 @@ export const RequestConfiguration$inboundSchema: z.ZodType< max_duration_minutes: z.number().int().optional(), recommended_duration_minutes: z.number().int().optional(), require_support_ticket: z.boolean(), + extensions_duration_in_minutes: z.number().int().optional(), request_template_id: z.string().optional(), reviewer_stages: z.array(ReviewerStage$inboundSchema).optional(), priority: z.number().int(), @@ -104,11 +109,11 @@ export const RequestConfiguration$inboundSchema: z.ZodType< "max_duration_minutes": "maxDurationMinutes", "recommended_duration_minutes": "recommendedDurationMinutes", "require_support_ticket": "requireSupportTicket", + "extensions_duration_in_minutes": "extensionsDurationInMinutes", "request_template_id": "requestTemplateId", "reviewer_stages": "reviewerStages", }); }); - /** @internal */ export type RequestConfiguration$Outbound = { condition?: Condition$Outbound | undefined; @@ -118,6 +123,7 @@ export type RequestConfiguration$Outbound = { max_duration_minutes?: number | undefined; recommended_duration_minutes?: number | undefined; require_support_ticket: boolean; + extensions_duration_in_minutes?: number | undefined; request_template_id?: string | undefined; reviewer_stages?: Array | undefined; priority: number; @@ -136,6 +142,7 @@ export const RequestConfiguration$outboundSchema: z.ZodType< maxDurationMinutes: z.number().int().optional(), recommendedDurationMinutes: z.number().int().optional(), requireSupportTicket: z.boolean(), + extensionsDurationInMinutes: z.number().int().optional(), requestTemplateId: z.string().optional(), reviewerStages: z.array(ReviewerStage$outboundSchema).optional(), priority: z.number().int(), @@ -147,24 +154,12 @@ export const RequestConfiguration$outboundSchema: z.ZodType< maxDurationMinutes: "max_duration_minutes", recommendedDurationMinutes: "recommended_duration_minutes", requireSupportTicket: "require_support_ticket", + extensionsDurationInMinutes: "extensions_duration_in_minutes", requestTemplateId: "request_template_id", reviewerStages: "reviewer_stages", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestConfiguration$ { - /** @deprecated use `RequestConfiguration$inboundSchema` instead. */ - export const inboundSchema = RequestConfiguration$inboundSchema; - /** @deprecated use `RequestConfiguration$outboundSchema` instead. */ - export const outboundSchema = RequestConfiguration$outboundSchema; - /** @deprecated use `RequestConfiguration$Outbound` instead. */ - export type Outbound = RequestConfiguration$Outbound; -} - export function requestConfigurationToJSON( requestConfiguration: RequestConfiguration, ): string { @@ -172,7 +167,6 @@ export function requestConfigurationToJSON( RequestConfiguration$outboundSchema.parse(requestConfiguration), ); } - export function requestConfigurationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestconnection.ts b/src/models/components/requestconnection.ts index bda7b13..dd807af 100644 --- a/src/models/components/requestconnection.ts +++ b/src/models/components/requestconnection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -38,7 +38,6 @@ export const RequestConnection$inboundSchema: z.ZodType< pageInfo: PageInfo$inboundSchema, totalCount: z.number().int(), }); - /** @internal */ export type RequestConnection$Outbound = { edges: Array; @@ -57,19 +56,6 @@ export const RequestConnection$outboundSchema: z.ZodType< totalCount: z.number().int(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestConnection$ { - /** @deprecated use `RequestConnection$inboundSchema` instead. */ - export const inboundSchema = RequestConnection$inboundSchema; - /** @deprecated use `RequestConnection$outboundSchema` instead. */ - export const outboundSchema = RequestConnection$outboundSchema; - /** @deprecated use `RequestConnection$Outbound` instead. */ - export type Outbound = RequestConnection$Outbound; -} - export function requestConnectionToJSON( requestConnection: RequestConnection, ): string { @@ -77,7 +63,6 @@ export function requestConnectionToJSON( RequestConnection$outboundSchema.parse(requestConnection), ); } - export function requestConnectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestcustomfieldresponse.ts b/src/models/components/requestcustomfieldresponse.ts index 611e183..f29f87c 100644 --- a/src/models/components/requestcustomfieldresponse.ts +++ b/src/models/components/requestcustomfieldresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const FieldValue$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.boolean()]); - /** @internal */ export type FieldValue$Outbound = string | boolean; @@ -41,23 +40,9 @@ export const FieldValue$outboundSchema: z.ZodType< FieldValue > = z.union([z.string(), z.boolean()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FieldValue$ { - /** @deprecated use `FieldValue$inboundSchema` instead. */ - export const inboundSchema = FieldValue$inboundSchema; - /** @deprecated use `FieldValue$outboundSchema` instead. */ - export const outboundSchema = FieldValue$outboundSchema; - /** @deprecated use `FieldValue$Outbound` instead. */ - export type Outbound = FieldValue$Outbound; -} - export function fieldValueToJSON(fieldValue: FieldValue): string { return JSON.stringify(FieldValue$outboundSchema.parse(fieldValue)); } - export function fieldValueFromJSON( jsonString: string, ): SafeParseResult { @@ -84,7 +69,6 @@ export const RequestCustomFieldResponse$inboundSchema: z.ZodType< "field_value": "fieldValue", }); }); - /** @internal */ export type RequestCustomFieldResponse$Outbound = { field_name: string; @@ -109,19 +93,6 @@ export const RequestCustomFieldResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestCustomFieldResponse$ { - /** @deprecated use `RequestCustomFieldResponse$inboundSchema` instead. */ - export const inboundSchema = RequestCustomFieldResponse$inboundSchema; - /** @deprecated use `RequestCustomFieldResponse$outboundSchema` instead. */ - export const outboundSchema = RequestCustomFieldResponse$outboundSchema; - /** @deprecated use `RequestCustomFieldResponse$Outbound` instead. */ - export type Outbound = RequestCustomFieldResponse$Outbound; -} - export function requestCustomFieldResponseToJSON( requestCustomFieldResponse: RequestCustomFieldResponse, ): string { @@ -129,7 +100,6 @@ export function requestCustomFieldResponseToJSON( RequestCustomFieldResponse$outboundSchema.parse(requestCustomFieldResponse), ); } - export function requestCustomFieldResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestedge.ts b/src/models/components/requestedge.ts index 22cbc78..79c7ff8 100644 --- a/src/models/components/requestedge.ts +++ b/src/models/components/requestedge.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -40,7 +40,6 @@ export const RequestEdge$inboundSchema: z.ZodType< node: RequestT$inboundSchema, cursor: z.string(), }); - /** @internal */ export type RequestEdge$Outbound = { node: RequestT$Outbound; @@ -57,23 +56,9 @@ export const RequestEdge$outboundSchema: z.ZodType< cursor: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestEdge$ { - /** @deprecated use `RequestEdge$inboundSchema` instead. */ - export const inboundSchema = RequestEdge$inboundSchema; - /** @deprecated use `RequestEdge$outboundSchema` instead. */ - export const outboundSchema = RequestEdge$outboundSchema; - /** @deprecated use `RequestEdge$Outbound` instead. */ - export type Outbound = RequestEdge$Outbound; -} - export function requestEdgeToJSON(requestEdge: RequestEdge): string { return JSON.stringify(RequestEdge$outboundSchema.parse(requestEdge)); } - export function requestEdgeFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requesteditem.ts b/src/models/components/requesteditem.ts index 11a3b1b..e00e4b8 100644 --- a/src/models/components/requesteditem.ts +++ b/src/models/components/requesteditem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -72,7 +72,6 @@ export const RequestedItem$inboundSchema: z.ZodType< "remote_name": "remoteName", }); }); - /** @internal */ export type RequestedItem$Outbound = { resource_id?: string | undefined; @@ -108,23 +107,9 @@ export const RequestedItem$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestedItem$ { - /** @deprecated use `RequestedItem$inboundSchema` instead. */ - export const inboundSchema = RequestedItem$inboundSchema; - /** @deprecated use `RequestedItem$outboundSchema` instead. */ - export const outboundSchema = RequestedItem$outboundSchema; - /** @deprecated use `RequestedItem$Outbound` instead. */ - export type Outbound = RequestedItem$Outbound; -} - export function requestedItemToJSON(requestedItem: RequestedItem): string { return JSON.stringify(RequestedItem$outboundSchema.parse(requestedItem)); } - export function requestedItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestitemstages.ts b/src/models/components/requestitemstages.ts index 007d6a5..3354493 100644 --- a/src/models/components/requestitemstages.ts +++ b/src/models/components/requestitemstages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -15,6 +15,8 @@ import { /** * The stages configuration for a request item + * + * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible. */ export type RequestItemStages = { /** @@ -41,7 +43,6 @@ export const RequestItemStages$inboundSchema: z.ZodType< requestedItemName: z.string(), stages: z.array(RequestStage$inboundSchema), }); - /** @internal */ export type RequestItemStages$Outbound = { requestedRoleName?: string | undefined; @@ -60,19 +61,6 @@ export const RequestItemStages$outboundSchema: z.ZodType< stages: z.array(RequestStage$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestItemStages$ { - /** @deprecated use `RequestItemStages$inboundSchema` instead. */ - export const inboundSchema = RequestItemStages$inboundSchema; - /** @deprecated use `RequestItemStages$outboundSchema` instead. */ - export const outboundSchema = RequestItemStages$outboundSchema; - /** @deprecated use `RequestItemStages$Outbound` instead. */ - export type Outbound = RequestItemStages$Outbound; -} - export function requestItemStagesToJSON( requestItemStages: RequestItemStages, ): string { @@ -80,7 +68,6 @@ export function requestItemStagesToJSON( RequestItemStages$outboundSchema.parse(requestItemStages), ); } - export function requestItemStagesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestlist.ts b/src/models/components/requestlist.ts index bfbc407..3c435f7 100644 --- a/src/models/components/requestlist.ts +++ b/src/models/components/requestlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -43,7 +43,6 @@ export const RequestList$inboundSchema: z.ZodType< requests: z.array(RequestT$inboundSchema).optional(), cursor: z.string().optional(), }); - /** @internal */ export type RequestList$Outbound = { requests?: Array | undefined; @@ -60,23 +59,9 @@ export const RequestList$outboundSchema: z.ZodType< cursor: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestList$ { - /** @deprecated use `RequestList$inboundSchema` instead. */ - export const inboundSchema = RequestList$inboundSchema; - /** @deprecated use `RequestList$outboundSchema` instead. */ - export const outboundSchema = RequestList$outboundSchema; - /** @deprecated use `RequestList$Outbound` instead. */ - export type Outbound = RequestList$Outbound; -} - export function requestListToJSON(requestList: RequestList): string { return JSON.stringify(RequestList$outboundSchema.parse(requestList)); } - export function requestListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestreviewer.ts b/src/models/components/requestreviewer.ts index f637bdf..e3baaed 100644 --- a/src/models/components/requestreviewer.ts +++ b/src/models/components/requestreviewer.ts @@ -2,7 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -29,6 +30,10 @@ export type RequestReviewer = { * The unique identifier of the reviewer */ id: string; + /** + * The user's full name. + */ + fullName?: string | undefined; /** * The status of this reviewer's review */ @@ -39,23 +44,11 @@ export type RequestReviewer = { export const RequestReviewerStatus$inboundSchema: z.ZodNativeEnum< typeof RequestReviewerStatus > = z.nativeEnum(RequestReviewerStatus); - /** @internal */ export const RequestReviewerStatus$outboundSchema: z.ZodNativeEnum< typeof RequestReviewerStatus > = RequestReviewerStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestReviewerStatus$ { - /** @deprecated use `RequestReviewerStatus$inboundSchema` instead. */ - export const inboundSchema = RequestReviewerStatus$inboundSchema; - /** @deprecated use `RequestReviewerStatus$outboundSchema` instead. */ - export const outboundSchema = RequestReviewerStatus$outboundSchema; -} - /** @internal */ export const RequestReviewer$inboundSchema: z.ZodType< RequestReviewer, @@ -63,12 +56,17 @@ export const RequestReviewer$inboundSchema: z.ZodType< unknown > = z.object({ id: z.string(), + full_name: z.string().optional(), status: RequestReviewerStatus$inboundSchema, +}).transform((v) => { + return remap$(v, { + "full_name": "fullName", + }); }); - /** @internal */ export type RequestReviewer$Outbound = { id: string; + full_name?: string | undefined; status: string; }; @@ -79,28 +77,19 @@ export const RequestReviewer$outboundSchema: z.ZodType< RequestReviewer > = z.object({ id: z.string(), + fullName: z.string().optional(), status: RequestReviewerStatus$outboundSchema, +}).transform((v) => { + return remap$(v, { + fullName: "full_name", + }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestReviewer$ { - /** @deprecated use `RequestReviewer$inboundSchema` instead. */ - export const inboundSchema = RequestReviewer$inboundSchema; - /** @deprecated use `RequestReviewer$outboundSchema` instead. */ - export const outboundSchema = RequestReviewer$outboundSchema; - /** @deprecated use `RequestReviewer$Outbound` instead. */ - export type Outbound = RequestReviewer$Outbound; -} - export function requestReviewerToJSON( requestReviewer: RequestReviewer, ): string { return JSON.stringify(RequestReviewer$outboundSchema.parse(requestReviewer)); } - export function requestReviewerFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requestreviewerstages.ts b/src/models/components/requestreviewerstages.ts new file mode 100644 index 0000000..ebed97c --- /dev/null +++ b/src/models/components/requestreviewerstages.ts @@ -0,0 +1,106 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + RequestStage, + RequestStage$inboundSchema, + RequestStage$Outbound, + RequestStage$outboundSchema, +} from "./requeststage.js"; + +/** + * The stages configuration for a request item + */ +export type RequestReviewerStages = { + /** + * The name of the access level requested. + */ + accessLevelName?: string | undefined; + /** + * The ID of the access level requested on the remote system. + */ + accessLevelRemoteId?: string | undefined; + /** + * The name of the requested item + */ + itemName: string; + /** + * The ID of the resource requested. + */ + itemId: string; + /** + * The stages of review for this request + */ + stages: Array; +}; + +/** @internal */ +export const RequestReviewerStages$inboundSchema: z.ZodType< + RequestReviewerStages, + z.ZodTypeDef, + unknown +> = z.object({ + access_level_name: z.string().optional(), + access_level_remote_id: z.string().optional(), + item_name: z.string(), + item_id: z.string(), + stages: z.array(RequestStage$inboundSchema), +}).transform((v) => { + return remap$(v, { + "access_level_name": "accessLevelName", + "access_level_remote_id": "accessLevelRemoteId", + "item_name": "itemName", + "item_id": "itemId", + }); +}); +/** @internal */ +export type RequestReviewerStages$Outbound = { + access_level_name?: string | undefined; + access_level_remote_id?: string | undefined; + item_name: string; + item_id: string; + stages: Array; +}; + +/** @internal */ +export const RequestReviewerStages$outboundSchema: z.ZodType< + RequestReviewerStages$Outbound, + z.ZodTypeDef, + RequestReviewerStages +> = z.object({ + accessLevelName: z.string().optional(), + accessLevelRemoteId: z.string().optional(), + itemName: z.string(), + itemId: z.string(), + stages: z.array(RequestStage$outboundSchema), +}).transform((v) => { + return remap$(v, { + accessLevelName: "access_level_name", + accessLevelRemoteId: "access_level_remote_id", + itemName: "item_name", + itemId: "item_id", + }); +}); + +export function requestReviewerStagesToJSON( + requestReviewerStages: RequestReviewerStages, +): string { + return JSON.stringify( + RequestReviewerStages$outboundSchema.parse(requestReviewerStages), + ); +} +export function requestReviewerStagesFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestReviewerStages$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestReviewerStages' from JSON`, + ); +} diff --git a/src/models/components/requeststage.ts b/src/models/components/requeststage.ts index c502da8..7486adf 100644 --- a/src/models/components/requeststage.ts +++ b/src/models/components/requeststage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -46,7 +46,6 @@ export const RequestStage$inboundSchema: z.ZodType< operator: ReviewStageOperator$inboundSchema, reviewers: z.array(RequestReviewer$inboundSchema), }); - /** @internal */ export type RequestStage$Outbound = { stage: number; @@ -65,23 +64,9 @@ export const RequestStage$outboundSchema: z.ZodType< reviewers: z.array(RequestReviewer$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestStage$ { - /** @deprecated use `RequestStage$inboundSchema` instead. */ - export const inboundSchema = RequestStage$inboundSchema; - /** @deprecated use `RequestStage$outboundSchema` instead. */ - export const outboundSchema = RequestStage$outboundSchema; - /** @deprecated use `RequestStage$Outbound` instead. */ - export type Outbound = RequestStage$Outbound; -} - export function requestStageToJSON(requestStage: RequestStage): string { return JSON.stringify(RequestStage$outboundSchema.parse(requestStage)); } - export function requestStageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/requeststatusenum.ts b/src/models/components/requeststatusenum.ts index fd9f884..16285e1 100644 --- a/src/models/components/requeststatusenum.ts +++ b/src/models/components/requeststatusenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -37,19 +37,7 @@ export type RequestStatusEnum = ClosedEnum; export const RequestStatusEnum$inboundSchema: z.ZodNativeEnum< typeof RequestStatusEnum > = z.nativeEnum(RequestStatusEnum); - /** @internal */ export const RequestStatusEnum$outboundSchema: z.ZodNativeEnum< typeof RequestStatusEnum > = RequestStatusEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestStatusEnum$ { - /** @deprecated use `RequestStatusEnum$inboundSchema` instead. */ - export const inboundSchema = RequestStatusEnum$inboundSchema; - /** @deprecated use `RequestStatusEnum$outboundSchema` instead. */ - export const outboundSchema = RequestStatusEnum$outboundSchema; -} diff --git a/src/models/components/requesttemplatecustomfieldtypeenum.ts b/src/models/components/requesttemplatecustomfieldtypeenum.ts index 47d95bf..556c09d 100644 --- a/src/models/components/requesttemplatecustomfieldtypeenum.ts +++ b/src/models/components/requesttemplatecustomfieldtypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -25,20 +25,7 @@ export type RequestTemplateCustomFieldTypeEnum = ClosedEnum< export const RequestTemplateCustomFieldTypeEnum$inboundSchema: z.ZodNativeEnum< typeof RequestTemplateCustomFieldTypeEnum > = z.nativeEnum(RequestTemplateCustomFieldTypeEnum); - /** @internal */ export const RequestTemplateCustomFieldTypeEnum$outboundSchema: z.ZodNativeEnum< typeof RequestTemplateCustomFieldTypeEnum > = RequestTemplateCustomFieldTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestTemplateCustomFieldTypeEnum$ { - /** @deprecated use `RequestTemplateCustomFieldTypeEnum$inboundSchema` instead. */ - export const inboundSchema = RequestTemplateCustomFieldTypeEnum$inboundSchema; - /** @deprecated use `RequestTemplateCustomFieldTypeEnum$outboundSchema` instead. */ - export const outboundSchema = - RequestTemplateCustomFieldTypeEnum$outboundSchema; -} diff --git a/src/models/components/resource.ts b/src/models/components/resource.ts index f40c2b9..dfc5936 100644 --- a/src/models/components/resource.ts +++ b/src/models/components/resource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -30,6 +30,12 @@ import { RiskSensitivityEnum$inboundSchema, RiskSensitivityEnum$outboundSchema, } from "./risksensitivityenum.js"; +import { + SyncTask, + SyncTask$inboundSchema, + SyncTask$Outbound, + SyncTask$outboundSchema, +} from "./synctask.js"; import { TicketPropagationConfiguration, TicketPropagationConfiguration$inboundSchema, @@ -106,6 +112,10 @@ export type Resource = { * The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. */ recommendedDuration?: number | undefined; + /** + * The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. + */ + extensionsDurationInMinutes?: number | undefined; /** * A bool representing whether or not access requests to the resource require manager approval. * @@ -189,29 +199,21 @@ export type Resource = { * List of resource IDs that are descendants of this resource. */ descendantResourceIds?: Array | undefined; + /** + * Represents a sync task that has been completed, either successfully or with errors. + */ + lastSuccessfulSync?: SyncTask | undefined; }; /** @internal */ export const ResourceRiskSensitivity$inboundSchema: z.ZodNativeEnum< typeof ResourceRiskSensitivity > = z.nativeEnum(ResourceRiskSensitivity); - /** @internal */ export const ResourceRiskSensitivity$outboundSchema: z.ZodNativeEnum< typeof ResourceRiskSensitivity > = ResourceRiskSensitivity$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceRiskSensitivity$ { - /** @deprecated use `ResourceRiskSensitivity$inboundSchema` instead. */ - export const inboundSchema = ResourceRiskSensitivity$inboundSchema; - /** @deprecated use `ResourceRiskSensitivity$outboundSchema` instead. */ - export const outboundSchema = ResourceRiskSensitivity$outboundSchema; -} - /** @internal */ export const Resource$inboundSchema: z.ZodType< Resource, @@ -228,6 +230,7 @@ export const Resource$inboundSchema: z.ZodType< resource_type: ResourceTypeEnum$inboundSchema.optional(), max_duration: z.number().int().optional(), recommended_duration: z.number().int().optional(), + extensions_duration_in_minutes: z.number().int().optional(), require_manager_approval: z.boolean().optional(), require_support_ticket: z.boolean().optional(), require_mfa_to_approve: z.boolean().optional(), @@ -250,6 +253,7 @@ export const Resource$inboundSchema: z.ZodType< remote_info: ResourceRemoteInfo$inboundSchema.optional(), ancestor_resource_ids: z.array(z.string()).optional(), descendant_resource_ids: z.array(z.string()).optional(), + last_successful_sync: SyncTask$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "resource_id": "resourceId", @@ -260,6 +264,7 @@ export const Resource$inboundSchema: z.ZodType< "resource_type": "resourceType", "max_duration": "maxDuration", "recommended_duration": "recommendedDuration", + "extensions_duration_in_minutes": "extensionsDurationInMinutes", "require_manager_approval": "requireManagerApproval", "require_support_ticket": "requireSupportTicket", "require_mfa_to_approve": "requireMfaToApprove", @@ -279,9 +284,9 @@ export const Resource$inboundSchema: z.ZodType< "remote_info": "remoteInfo", "ancestor_resource_ids": "ancestorResourceIds", "descendant_resource_ids": "descendantResourceIds", + "last_successful_sync": "lastSuccessfulSync", }); }); - /** @internal */ export type Resource$Outbound = { resource_id: string; @@ -294,6 +299,7 @@ export type Resource$Outbound = { resource_type?: string | undefined; max_duration?: number | undefined; recommended_duration?: number | undefined; + extensions_duration_in_minutes?: number | undefined; require_manager_approval?: boolean | undefined; require_support_ticket?: boolean | undefined; require_mfa_to_approve?: boolean | undefined; @@ -314,6 +320,7 @@ export type Resource$Outbound = { remote_info?: ResourceRemoteInfo$Outbound | undefined; ancestor_resource_ids?: Array | undefined; descendant_resource_ids?: Array | undefined; + last_successful_sync?: SyncTask$Outbound | undefined; }; /** @internal */ @@ -332,6 +339,7 @@ export const Resource$outboundSchema: z.ZodType< resourceType: ResourceTypeEnum$outboundSchema.optional(), maxDuration: z.number().int().optional(), recommendedDuration: z.number().int().optional(), + extensionsDurationInMinutes: z.number().int().optional(), requireManagerApproval: z.boolean().optional(), requireSupportTicket: z.boolean().optional(), requireMfaToApprove: z.boolean().optional(), @@ -354,6 +362,7 @@ export const Resource$outboundSchema: z.ZodType< remoteInfo: ResourceRemoteInfo$outboundSchema.optional(), ancestorResourceIds: z.array(z.string()).optional(), descendantResourceIds: z.array(z.string()).optional(), + lastSuccessfulSync: SyncTask$outboundSchema.optional(), }).transform((v) => { return remap$(v, { resourceId: "resource_id", @@ -364,6 +373,7 @@ export const Resource$outboundSchema: z.ZodType< resourceType: "resource_type", maxDuration: "max_duration", recommendedDuration: "recommended_duration", + extensionsDurationInMinutes: "extensions_duration_in_minutes", requireManagerApproval: "require_manager_approval", requireSupportTicket: "require_support_ticket", requireMfaToApprove: "require_mfa_to_approve", @@ -383,26 +393,13 @@ export const Resource$outboundSchema: z.ZodType< remoteInfo: "remote_info", ancestorResourceIds: "ancestor_resource_ids", descendantResourceIds: "descendant_resource_ids", + lastSuccessfulSync: "last_successful_sync", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Resource$ { - /** @deprecated use `Resource$inboundSchema` instead. */ - export const inboundSchema = Resource$inboundSchema; - /** @deprecated use `Resource$outboundSchema` instead. */ - export const outboundSchema = Resource$outboundSchema; - /** @deprecated use `Resource$Outbound` instead. */ - export type Outbound = Resource$Outbound; -} - export function resourceToJSON(resource: Resource): string { return JSON.stringify(Resource$outboundSchema.parse(resource)); } - export function resourceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceaccesslevel.ts b/src/models/components/resourceaccesslevel.ts index 8d85b3c..9bfe223 100644 --- a/src/models/components/resourceaccesslevel.ts +++ b/src/models/components/resourceaccesslevel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -44,7 +44,6 @@ export const ResourceAccessLevel$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type ResourceAccessLevel$Outbound = { access_level_name: string; @@ -66,19 +65,6 @@ export const ResourceAccessLevel$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceAccessLevel$ { - /** @deprecated use `ResourceAccessLevel$inboundSchema` instead. */ - export const inboundSchema = ResourceAccessLevel$inboundSchema; - /** @deprecated use `ResourceAccessLevel$outboundSchema` instead. */ - export const outboundSchema = ResourceAccessLevel$outboundSchema; - /** @deprecated use `ResourceAccessLevel$Outbound` instead. */ - export type Outbound = ResourceAccessLevel$Outbound; -} - export function resourceAccessLevelToJSON( resourceAccessLevel: ResourceAccessLevel, ): string { @@ -86,7 +72,6 @@ export function resourceAccessLevelToJSON( ResourceAccessLevel$outboundSchema.parse(resourceAccessLevel), ); } - export function resourceAccessLevelFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceaccessuser.ts b/src/models/components/resourceaccessuser.ts index d48b49e..0177e59 100644 --- a/src/models/components/resourceaccessuser.ts +++ b/src/models/components/resourceaccessuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -35,6 +35,14 @@ export type ResourceAccessUser = { * The ID of the resource. */ resourceId: string; + /** + * The name of the resource. + */ + resourceName?: string | undefined; + /** + * The description of the resource. + */ + description?: string | undefined; /** * The ID of the user. */ @@ -84,6 +92,8 @@ export const ResourceAccessUser$inboundSchema: z.ZodType< unknown > = z.object({ resource_id: z.string(), + resource_name: z.string().optional(), + description: z.string().optional(), user_id: z.string(), access_level: ResourceAccessLevel$inboundSchema, full_name: z.string(), @@ -97,6 +107,7 @@ export const ResourceAccessUser$inboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { "resource_id": "resourceId", + "resource_name": "resourceName", "user_id": "userId", "access_level": "accessLevel", "full_name": "fullName", @@ -106,10 +117,11 @@ export const ResourceAccessUser$inboundSchema: z.ZodType< "propagation_status": "propagationStatus", }); }); - /** @internal */ export type ResourceAccessUser$Outbound = { resource_id: string; + resource_name?: string | undefined; + description?: string | undefined; user_id: string; access_level: ResourceAccessLevel$Outbound; full_name: string; @@ -127,6 +139,8 @@ export const ResourceAccessUser$outboundSchema: z.ZodType< ResourceAccessUser > = z.object({ resourceId: z.string(), + resourceName: z.string().optional(), + description: z.string().optional(), userId: z.string(), accessLevel: ResourceAccessLevel$outboundSchema, fullName: z.string(), @@ -139,6 +153,7 @@ export const ResourceAccessUser$outboundSchema: z.ZodType< }).transform((v) => { return remap$(v, { resourceId: "resource_id", + resourceName: "resource_name", userId: "user_id", accessLevel: "access_level", fullName: "full_name", @@ -149,19 +164,6 @@ export const ResourceAccessUser$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceAccessUser$ { - /** @deprecated use `ResourceAccessUser$inboundSchema` instead. */ - export const inboundSchema = ResourceAccessUser$inboundSchema; - /** @deprecated use `ResourceAccessUser$outboundSchema` instead. */ - export const outboundSchema = ResourceAccessUser$outboundSchema; - /** @deprecated use `ResourceAccessUser$Outbound` instead. */ - export type Outbound = ResourceAccessUser$Outbound; -} - export function resourceAccessUserToJSON( resourceAccessUser: ResourceAccessUser, ): string { @@ -169,7 +171,6 @@ export function resourceAccessUserToJSON( ResourceAccessUser$outboundSchema.parse(resourceAccessUser), ); } - export function resourceAccessUserFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceaccessuserlist.ts b/src/models/components/resourceaccessuserlist.ts index 0e4b0bb..cdd7494 100644 --- a/src/models/components/resourceaccessuserlist.ts +++ b/src/models/components/resourceaccessuserlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -14,6 +14,14 @@ import { } from "./resourceaccessuser.js"; export type ResourceAccessUserList = { + /** + * The cursor with which to continue pagination if additional result pages exist. + */ + next?: string | null | undefined; + /** + * The cursor used to obtain the current result page. + */ + previous?: string | null | undefined; results?: Array | undefined; }; @@ -23,11 +31,14 @@ export const ResourceAccessUserList$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), results: z.array(ResourceAccessUser$inboundSchema).optional(), }); - /** @internal */ export type ResourceAccessUserList$Outbound = { + next?: string | null | undefined; + previous?: string | null | undefined; results?: Array | undefined; }; @@ -37,22 +48,11 @@ export const ResourceAccessUserList$outboundSchema: z.ZodType< z.ZodTypeDef, ResourceAccessUserList > = z.object({ + next: z.nullable(z.string()).optional(), + previous: z.nullable(z.string()).optional(), results: z.array(ResourceAccessUser$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceAccessUserList$ { - /** @deprecated use `ResourceAccessUserList$inboundSchema` instead. */ - export const inboundSchema = ResourceAccessUserList$inboundSchema; - /** @deprecated use `ResourceAccessUserList$outboundSchema` instead. */ - export const outboundSchema = ResourceAccessUserList$outboundSchema; - /** @deprecated use `ResourceAccessUserList$Outbound` instead. */ - export type Outbound = ResourceAccessUserList$Outbound; -} - export function resourceAccessUserListToJSON( resourceAccessUserList: ResourceAccessUserList, ): string { @@ -60,7 +60,6 @@ export function resourceAccessUserListToJSON( ResourceAccessUserList$outboundSchema.parse(resourceAccessUserList), ); } - export function resourceAccessUserListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourcenhi.ts b/src/models/components/resourcenhi.ts index 77f7aa6..cc84352 100644 --- a/src/models/components/resourcenhi.ts +++ b/src/models/components/resourcenhi.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -68,7 +68,6 @@ export const ResourceNHI$inboundSchema: z.ZodType< "expiration_date": "expirationDate", }); }); - /** @internal */ export type ResourceNHI$Outbound = { resource_id: string; @@ -97,23 +96,9 @@ export const ResourceNHI$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceNHI$ { - /** @deprecated use `ResourceNHI$inboundSchema` instead. */ - export const inboundSchema = ResourceNHI$inboundSchema; - /** @deprecated use `ResourceNHI$outboundSchema` instead. */ - export const outboundSchema = ResourceNHI$outboundSchema; - /** @deprecated use `ResourceNHI$Outbound` instead. */ - export type Outbound = ResourceNHI$Outbound; -} - export function resourceNHIToJSON(resourceNHI: ResourceNHI): string { return JSON.stringify(ResourceNHI$outboundSchema.parse(resourceNHI)); } - export function resourceNHIFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceremoteinfo.ts b/src/models/components/resourceremoteinfo.ts index b271ff3..1f78483 100644 --- a/src/models/components/resourceremoteinfo.ts +++ b/src/models/components/resourceremoteinfo.ts @@ -2,11 +2,160 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + RDSEngineEnum, + RDSEngineEnum$inboundSchema, + RDSEngineEnum$outboundSchema, +} from "./rdsengineenum.js"; + +/** + * Remote info for Databricks account service principal. + */ +export type DatabricksAccountServicePrincipal = { + /** + * The application ID of the service principal. + */ + applicationId: string; + /** + * The resource ID of the service principal. + */ + resourceId: string; +}; + +/** + * Remote info for Azure subscription. + */ +export type AzureSubscription = { + /** + * The ARM resource ID of the subscription. + */ + resourceId: string; +}; + +/** + * Remote info for Azure resource group. + */ +export type AzureResourceGroup = { + /** + * The ARM resource ID of the resource group. + */ + resourceId: string; +}; + +/** + * Remote info for Azure management group. + */ +export type AzureManagementGroup = { + /** + * The ARM resource ID of the management group. + */ + resourceId: string; +}; + +/** + * Remote info for Azure virtual machine. + */ +export type AzureVirtualMachine = { + /** + * The ARM resource ID of the virtual machine. + */ + resourceId: string; +}; + +/** + * Remote info for Azure storage account. + */ +export type AzureStorageAccount = { + /** + * The ARM resource ID of the storage account. + */ + resourceId: string; +}; + +/** + * Remote info for Azure storage container. + */ +export type AzureStorageContainer = { + /** + * The ARM resource ID of the storage container. + */ + resourceId: string; +}; + +/** + * Remote info for Azure SQL server. + */ +export type AzureSqlServer = { + /** + * The ARM resource ID of the SQL server. + */ + resourceId: string; +}; + +/** + * Remote info for Azure SQL database. + */ +export type AzureSqlDatabase = { + /** + * The ARM resource ID of the SQL database. + */ + resourceId: string; +}; + +/** + * Remote info for Azure SQL managed instance. + */ +export type AzureSqlManagedInstance = { + /** + * The ARM resource ID of the SQL managed instance. + */ + resourceId: string; +}; + +/** + * Remote info for Azure SQL managed database. + */ +export type AzureSqlManagedDatabase = { + /** + * The ARM resource ID of the SQL managed database. + */ + resourceId: string; +}; + +/** + * Remote info for Azure user assigned managed identity. + */ +export type AzureUserAssignedManagedIdentity = { + /** + * The ARM resource ID of the user assigned managed identity. + */ + resourceId: string; +}; + +/** + * Remote info for Azure Enterprise App. + */ +export type AzureEnterpriseApp = { + /** + * The remote application identifier (service principal or application object ID). + */ + resourceId: string; +}; + +/** + * Remote info for Azure Entra ID role. + */ +export type AzureEntraIdRole = { + /** + * The remote role identifier from Entra (object ID). + */ + resourceId: string; +}; /** * Remote info for AWS organizational unit. @@ -82,6 +231,33 @@ export type AwsEc2Instance = { accountId?: string | undefined; }; +/** + * Remote info for AWS RDS cluster. + */ +export type AwsRdsCluster = { + /** + * The clusterId of the RDS cluster. + */ + clusterId: string; + /** + * The region of the RDS cluster. + */ + region: string; + /** + * The resourceId of the RDS cluster. + */ + resourceId: string; + /** + * The id of the AWS account. Required for AWS Organizations. + */ + accountId: string; + /** + * The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. + */ + databaseName: string; + engine: RDSEngineEnum; +}; + /** * Remote info for AWS RDS instance. */ @@ -290,6 +466,26 @@ export type GithubRepo = { repoName: string; }; +/** + * Remote info for GitHub organization role. + */ +export type GithubOrgRole = { + /** + * The id of the role. + */ + roleId: string; +}; + +/** + * Remote info for GitHub organization. + */ +export type GithubOrg = { + /** + * The name of the organization. + */ + orgName: string; +}; + /** * Remote info for Gitlab project. */ @@ -330,6 +526,68 @@ export type OktaCustomRole = { roleId: string; }; +/** + * Remote info for Snowflake database. + */ +export type SnowflakeDatabase = { + /** + * The name of the database. + */ + databaseName: string; +}; + +/** + * Remote info for Snowflake schema. + */ +export type SnowflakeSchema = { + /** + * The name of the database the schema is in. + */ + databaseName: string; + /** + * The name of the schema. + */ + schemaName: string; +}; + +/** + * Remote info for Snowflake table. + */ +export type SnowflakeTable = { + /** + * The name of the database the table is in. + */ + databaseName: string; + /** + * The name of the schema the table is in. + */ + schemaName: string; + /** + * The name of the table. + */ + tableName: string; +}; + +/** + * Remote info for iLevel Advanced role. + */ +export type IlevelAdvancedRole = { + /** + * The name of the role. + */ + roleName: string; +}; + +/** + * Remote info for Tailscale SSH tag. + */ +export type TailscaleSsh = { + /** + * The name of the tag. + */ + tagName: string; +}; + /** * Remote info for Pagerduty role. */ @@ -340,6 +598,16 @@ export type PagerdutyRole = { roleName: string; }; +/** + * Remote info for Workday role. + */ +export type WorkdayRole = { + /** + * The id of the role. + */ + roleId: string; +}; + /** * Remote info for Salesforce permission set. */ @@ -385,55 +653,213 @@ export type TeleportRole = { }; /** - * Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. + * Remote info for an Astra role. */ -export type ResourceRemoteInfo = { +export type DatastaxAstraRole = { /** - * Remote info for AWS organizational unit. + * The id of the role. */ - awsOrganizationalUnit?: AwsOrganizationalUnit | undefined; + roleId: string; +}; + +/** + * Remote info for Coupa role. + */ +export type CoupaRole = { /** - * Remote info for AWS account. + * The id of the role. */ - awsAccount?: AwsAccount | undefined; + roleId: string; +}; + +/** + * Remote info for a Cursor organization. + */ +export type CursorOrganization = { /** - * Remote info for AWS Identity Center permission set. + * The id of the organization. */ - awsPermissionSet?: AwsPermissionSet | undefined; + orgId: string; +}; + +/** + * Remote info for OpenAI Platform project. + */ +export type OpenaiPlatformProject = { /** - * Remote info for AWS IAM role. + * The id of the project. */ - awsIamRole?: AwsIamRole | undefined; + projectId: string; +}; + +/** + * Remote info for OpenAI Platform service account. + */ +export type OpenaiPlatformServiceAccount = { /** - * Remote info for AWS EC2 instance. + * The id of the project for the service account. */ - awsEc2Instance?: AwsEc2Instance | undefined; + projectId: string; /** - * Remote info for AWS RDS instance. + * The id of the service account. */ - awsRdsInstance?: AwsRdsInstance | undefined; + serviceAccountId: string; +}; + +/** + * Remote info for Anthropic workspace. + */ +export type AnthropicWorkspace = { /** - * Remote info for AWS EKS cluster. + * The id of the workspace. */ - awsEksCluster?: AwsEksCluster | undefined; + workspaceId: string; +}; + +/** + * Remote info for Oracle Fusion role. + */ +export type OracleFusionRole = { /** - * Remote info for a custom connector resource. + * The id of the role. */ - customConnector?: CustomConnector | undefined; + roleId: string; +}; + +/** + * Remote info for Devin organization. + */ +export type DevinOrganization = { /** - * Remote info for GCP organization. + * The id of the organization. */ - gcpOrganization?: GcpOrganization | undefined; + orgId: string; +}; + +/** + * Remote info for Devin role. + */ +export type DevinRole = { /** - * Remote info for GCP bucket. + * The id of the role. */ - gcpBucket?: GcpBucket | undefined; + roleId: string; +}; + +/** + * Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. + */ +export type ResourceRemoteInfo = { /** - * Remote info for GCP compute instance. + * Remote info for Databricks account service principal. */ - gcpComputeInstance?: GcpComputeInstance | undefined; + databricksAccountServicePrincipal?: + | DatabricksAccountServicePrincipal + | undefined; /** - * Remote info for GCP BigQuery Dataset. + * Remote info for Azure subscription. + */ + azureSubscription?: AzureSubscription | undefined; + /** + * Remote info for Azure resource group. + */ + azureResourceGroup?: AzureResourceGroup | undefined; + /** + * Remote info for Azure management group. + */ + azureManagementGroup?: AzureManagementGroup | undefined; + /** + * Remote info for Azure virtual machine. + */ + azureVirtualMachine?: AzureVirtualMachine | undefined; + /** + * Remote info for Azure storage account. + */ + azureStorageAccount?: AzureStorageAccount | undefined; + /** + * Remote info for Azure storage container. + */ + azureStorageContainer?: AzureStorageContainer | undefined; + /** + * Remote info for Azure SQL server. + */ + azureSqlServer?: AzureSqlServer | undefined; + /** + * Remote info for Azure SQL database. + */ + azureSqlDatabase?: AzureSqlDatabase | undefined; + /** + * Remote info for Azure SQL managed instance. + */ + azureSqlManagedInstance?: AzureSqlManagedInstance | undefined; + /** + * Remote info for Azure SQL managed database. + */ + azureSqlManagedDatabase?: AzureSqlManagedDatabase | undefined; + /** + * Remote info for Azure user assigned managed identity. + */ + azureUserAssignedManagedIdentity?: + | AzureUserAssignedManagedIdentity + | undefined; + /** + * Remote info for Azure Enterprise App. + */ + azureEnterpriseApp?: AzureEnterpriseApp | undefined; + /** + * Remote info for Azure Entra ID role. + */ + azureEntraIdRole?: AzureEntraIdRole | undefined; + /** + * Remote info for AWS organizational unit. + */ + awsOrganizationalUnit?: AwsOrganizationalUnit | undefined; + /** + * Remote info for AWS account. + */ + awsAccount?: AwsAccount | undefined; + /** + * Remote info for AWS Identity Center permission set. + */ + awsPermissionSet?: AwsPermissionSet | undefined; + /** + * Remote info for AWS IAM role. + */ + awsIamRole?: AwsIamRole | undefined; + /** + * Remote info for AWS EC2 instance. + */ + awsEc2Instance?: AwsEc2Instance | undefined; + /** + * Remote info for AWS RDS cluster. + */ + awsRdsCluster?: AwsRdsCluster | undefined; + /** + * Remote info for AWS RDS instance. + */ + awsRdsInstance?: AwsRdsInstance | undefined; + /** + * Remote info for AWS EKS cluster. + */ + awsEksCluster?: AwsEksCluster | undefined; + /** + * Remote info for a custom connector resource. + */ + customConnector?: CustomConnector | undefined; + /** + * Remote info for GCP organization. + */ + gcpOrganization?: GcpOrganization | undefined; + /** + * Remote info for GCP bucket. + */ + gcpBucket?: GcpBucket | undefined; + /** + * Remote info for GCP compute instance. + */ + gcpComputeInstance?: GcpComputeInstance | undefined; + /** + * Remote info for GCP BigQuery Dataset. */ gcpBigQueryDataset?: GcpBigQueryDataset | undefined; /** @@ -468,6 +894,14 @@ export type ResourceRemoteInfo = { * Remote info for GitHub repository. */ githubRepo?: GithubRepo | undefined; + /** + * Remote info for GitHub organization role. + */ + githubOrgRole?: GithubOrgRole | undefined; + /** + * Remote info for GitHub organization. + */ + githubOrg?: GithubOrg | undefined; /** * Remote info for Gitlab project. */ @@ -484,10 +918,34 @@ export type ResourceRemoteInfo = { * Remote info for Okta directory custom role. */ oktaCustomRole?: OktaCustomRole | undefined; + /** + * Remote info for Snowflake database. + */ + snowflakeDatabase?: SnowflakeDatabase | undefined; + /** + * Remote info for Snowflake schema. + */ + snowflakeSchema?: SnowflakeSchema | undefined; + /** + * Remote info for Snowflake table. + */ + snowflakeTable?: SnowflakeTable | undefined; + /** + * Remote info for iLevel Advanced role. + */ + ilevelAdvancedRole?: IlevelAdvancedRole | undefined; + /** + * Remote info for Tailscale SSH tag. + */ + tailscaleSsh?: TailscaleSsh | undefined; /** * Remote info for Pagerduty role. */ pagerdutyRole?: PagerdutyRole | undefined; + /** + * Remote info for Workday role. + */ + workdayRole?: WorkdayRole | undefined; /** * Remote info for Salesforce permission set. */ @@ -504,1164 +962,2436 @@ export type ResourceRemoteInfo = { * Remote info for Teleport role. */ teleportRole?: TeleportRole | undefined; + /** + * Remote info for an Astra role. + */ + datastaxAstraRole?: DatastaxAstraRole | undefined; + /** + * Remote info for Coupa role. + */ + coupaRole?: CoupaRole | undefined; + /** + * Remote info for a Cursor organization. + */ + cursorOrganization?: CursorOrganization | undefined; + /** + * Remote info for OpenAI Platform project. + */ + openaiPlatformProject?: OpenaiPlatformProject | undefined; + /** + * Remote info for OpenAI Platform service account. + */ + openaiPlatformServiceAccount?: OpenaiPlatformServiceAccount | undefined; + /** + * Remote info for Anthropic workspace. + */ + anthropicWorkspace?: AnthropicWorkspace | undefined; + /** + * Remote info for Oracle Fusion role. + */ + oracleFusionRole?: OracleFusionRole | undefined; + /** + * Remote info for Devin organization. + */ + devinOrganization?: DevinOrganization | undefined; + /** + * Remote info for Devin role. + */ + devinRole?: DevinRole | undefined; }; /** @internal */ -export const AwsOrganizationalUnit$inboundSchema: z.ZodType< - AwsOrganizationalUnit, +export const DatabricksAccountServicePrincipal$inboundSchema: z.ZodType< + DatabricksAccountServicePrincipal, z.ZodTypeDef, unknown > = z.object({ - parent_id: z.string().optional(), - organizational_unit_id: z.string(), + application_id: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "parent_id": "parentId", - "organizational_unit_id": "organizationalUnitId", + "application_id": "applicationId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type AwsOrganizationalUnit$Outbound = { - parent_id?: string | undefined; - organizational_unit_id: string; +export type DatabricksAccountServicePrincipal$Outbound = { + application_id: string; + resource_id: string; }; /** @internal */ -export const AwsOrganizationalUnit$outboundSchema: z.ZodType< - AwsOrganizationalUnit$Outbound, +export const DatabricksAccountServicePrincipal$outboundSchema: z.ZodType< + DatabricksAccountServicePrincipal$Outbound, z.ZodTypeDef, - AwsOrganizationalUnit + DatabricksAccountServicePrincipal > = z.object({ - parentId: z.string().optional(), - organizationalUnitId: z.string(), + applicationId: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - parentId: "parent_id", - organizationalUnitId: "organizational_unit_id", + applicationId: "application_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsOrganizationalUnit$ { - /** @deprecated use `AwsOrganizationalUnit$inboundSchema` instead. */ - export const inboundSchema = AwsOrganizationalUnit$inboundSchema; - /** @deprecated use `AwsOrganizationalUnit$outboundSchema` instead. */ - export const outboundSchema = AwsOrganizationalUnit$outboundSchema; - /** @deprecated use `AwsOrganizationalUnit$Outbound` instead. */ - export type Outbound = AwsOrganizationalUnit$Outbound; -} - -export function awsOrganizationalUnitToJSON( - awsOrganizationalUnit: AwsOrganizationalUnit, +export function databricksAccountServicePrincipalToJSON( + databricksAccountServicePrincipal: DatabricksAccountServicePrincipal, ): string { return JSON.stringify( - AwsOrganizationalUnit$outboundSchema.parse(awsOrganizationalUnit), + DatabricksAccountServicePrincipal$outboundSchema.parse( + databricksAccountServicePrincipal, + ), ); } - -export function awsOrganizationalUnitFromJSON( +export function databricksAccountServicePrincipalFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsOrganizationalUnit$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsOrganizationalUnit' from JSON`, + (x) => DatabricksAccountServicePrincipal$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DatabricksAccountServicePrincipal' from JSON`, ); } /** @internal */ -export const AwsAccount$inboundSchema: z.ZodType< - AwsAccount, +export const AzureSubscription$inboundSchema: z.ZodType< + AzureSubscription, z.ZodTypeDef, unknown > = z.object({ - account_id: z.string(), - organizational_unit_id: z.string().optional(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "account_id": "accountId", - "organizational_unit_id": "organizationalUnitId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type AwsAccount$Outbound = { - account_id: string; - organizational_unit_id?: string | undefined; +export type AzureSubscription$Outbound = { + resource_id: string; }; /** @internal */ -export const AwsAccount$outboundSchema: z.ZodType< - AwsAccount$Outbound, +export const AzureSubscription$outboundSchema: z.ZodType< + AzureSubscription$Outbound, z.ZodTypeDef, - AwsAccount + AzureSubscription > = z.object({ - accountId: z.string(), - organizationalUnitId: z.string().optional(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - accountId: "account_id", - organizationalUnitId: "organizational_unit_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsAccount$ { - /** @deprecated use `AwsAccount$inboundSchema` instead. */ - export const inboundSchema = AwsAccount$inboundSchema; - /** @deprecated use `AwsAccount$outboundSchema` instead. */ - export const outboundSchema = AwsAccount$outboundSchema; - /** @deprecated use `AwsAccount$Outbound` instead. */ - export type Outbound = AwsAccount$Outbound; -} - -export function awsAccountToJSON(awsAccount: AwsAccount): string { - return JSON.stringify(AwsAccount$outboundSchema.parse(awsAccount)); +export function azureSubscriptionToJSON( + azureSubscription: AzureSubscription, +): string { + return JSON.stringify( + AzureSubscription$outboundSchema.parse(azureSubscription), + ); } - -export function awsAccountFromJSON( +export function azureSubscriptionFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsAccount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsAccount' from JSON`, + (x) => AzureSubscription$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureSubscription' from JSON`, ); } /** @internal */ -export const AwsPermissionSet$inboundSchema: z.ZodType< - AwsPermissionSet, +export const AzureResourceGroup$inboundSchema: z.ZodType< + AzureResourceGroup, z.ZodTypeDef, unknown > = z.object({ - arn: z.string(), - account_id: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "account_id": "accountId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type AwsPermissionSet$Outbound = { - arn: string; - account_id: string; +export type AzureResourceGroup$Outbound = { + resource_id: string; }; /** @internal */ -export const AwsPermissionSet$outboundSchema: z.ZodType< - AwsPermissionSet$Outbound, +export const AzureResourceGroup$outboundSchema: z.ZodType< + AzureResourceGroup$Outbound, z.ZodTypeDef, - AwsPermissionSet + AzureResourceGroup > = z.object({ - arn: z.string(), - accountId: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - accountId: "account_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsPermissionSet$ { - /** @deprecated use `AwsPermissionSet$inboundSchema` instead. */ - export const inboundSchema = AwsPermissionSet$inboundSchema; - /** @deprecated use `AwsPermissionSet$outboundSchema` instead. */ - export const outboundSchema = AwsPermissionSet$outboundSchema; - /** @deprecated use `AwsPermissionSet$Outbound` instead. */ - export type Outbound = AwsPermissionSet$Outbound; -} - -export function awsPermissionSetToJSON( - awsPermissionSet: AwsPermissionSet, +export function azureResourceGroupToJSON( + azureResourceGroup: AzureResourceGroup, ): string { return JSON.stringify( - AwsPermissionSet$outboundSchema.parse(awsPermissionSet), + AzureResourceGroup$outboundSchema.parse(azureResourceGroup), ); } - -export function awsPermissionSetFromJSON( +export function azureResourceGroupFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsPermissionSet$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsPermissionSet' from JSON`, + (x) => AzureResourceGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureResourceGroup' from JSON`, ); } /** @internal */ -export const AwsIamRole$inboundSchema: z.ZodType< - AwsIamRole, +export const AzureManagementGroup$inboundSchema: z.ZodType< + AzureManagementGroup, z.ZodTypeDef, unknown > = z.object({ - arn: z.string(), - account_id: z.string().optional(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "account_id": "accountId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type AwsIamRole$Outbound = { - arn: string; - account_id?: string | undefined; +export type AzureManagementGroup$Outbound = { + resource_id: string; }; /** @internal */ -export const AwsIamRole$outboundSchema: z.ZodType< - AwsIamRole$Outbound, +export const AzureManagementGroup$outboundSchema: z.ZodType< + AzureManagementGroup$Outbound, z.ZodTypeDef, - AwsIamRole + AzureManagementGroup > = z.object({ - arn: z.string(), - accountId: z.string().optional(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - accountId: "account_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsIamRole$ { - /** @deprecated use `AwsIamRole$inboundSchema` instead. */ - export const inboundSchema = AwsIamRole$inboundSchema; - /** @deprecated use `AwsIamRole$outboundSchema` instead. */ - export const outboundSchema = AwsIamRole$outboundSchema; - /** @deprecated use `AwsIamRole$Outbound` instead. */ - export type Outbound = AwsIamRole$Outbound; -} - -export function awsIamRoleToJSON(awsIamRole: AwsIamRole): string { - return JSON.stringify(AwsIamRole$outboundSchema.parse(awsIamRole)); +export function azureManagementGroupToJSON( + azureManagementGroup: AzureManagementGroup, +): string { + return JSON.stringify( + AzureManagementGroup$outboundSchema.parse(azureManagementGroup), + ); } - -export function awsIamRoleFromJSON( +export function azureManagementGroupFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsIamRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsIamRole' from JSON`, + (x) => AzureManagementGroup$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureManagementGroup' from JSON`, ); } /** @internal */ -export const AwsEc2Instance$inboundSchema: z.ZodType< - AwsEc2Instance, +export const AzureVirtualMachine$inboundSchema: z.ZodType< + AzureVirtualMachine, z.ZodTypeDef, unknown > = z.object({ - instance_id: z.string(), - region: z.string(), - account_id: z.string().optional(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "instance_id": "instanceId", - "account_id": "accountId", + "resource_id": "resourceId", }); }); +/** @internal */ +export type AzureVirtualMachine$Outbound = { + resource_id: string; +}; /** @internal */ -export type AwsEc2Instance$Outbound = { - instance_id: string; - region: string; - account_id?: string | undefined; -}; - -/** @internal */ -export const AwsEc2Instance$outboundSchema: z.ZodType< - AwsEc2Instance$Outbound, +export const AzureVirtualMachine$outboundSchema: z.ZodType< + AzureVirtualMachine$Outbound, z.ZodTypeDef, - AwsEc2Instance + AzureVirtualMachine > = z.object({ - instanceId: z.string(), - region: z.string(), - accountId: z.string().optional(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - instanceId: "instance_id", - accountId: "account_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsEc2Instance$ { - /** @deprecated use `AwsEc2Instance$inboundSchema` instead. */ - export const inboundSchema = AwsEc2Instance$inboundSchema; - /** @deprecated use `AwsEc2Instance$outboundSchema` instead. */ - export const outboundSchema = AwsEc2Instance$outboundSchema; - /** @deprecated use `AwsEc2Instance$Outbound` instead. */ - export type Outbound = AwsEc2Instance$Outbound; -} - -export function awsEc2InstanceToJSON(awsEc2Instance: AwsEc2Instance): string { - return JSON.stringify(AwsEc2Instance$outboundSchema.parse(awsEc2Instance)); +export function azureVirtualMachineToJSON( + azureVirtualMachine: AzureVirtualMachine, +): string { + return JSON.stringify( + AzureVirtualMachine$outboundSchema.parse(azureVirtualMachine), + ); } - -export function awsEc2InstanceFromJSON( +export function azureVirtualMachineFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsEc2Instance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsEc2Instance' from JSON`, + (x) => AzureVirtualMachine$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureVirtualMachine' from JSON`, ); } /** @internal */ -export const AwsRdsInstance$inboundSchema: z.ZodType< - AwsRdsInstance, +export const AzureStorageAccount$inboundSchema: z.ZodType< + AzureStorageAccount, z.ZodTypeDef, unknown > = z.object({ - instance_id: z.string(), - region: z.string(), resource_id: z.string(), - account_id: z.string().optional(), }).transform((v) => { return remap$(v, { - "instance_id": "instanceId", "resource_id": "resourceId", - "account_id": "accountId", }); }); - /** @internal */ -export type AwsRdsInstance$Outbound = { - instance_id: string; - region: string; +export type AzureStorageAccount$Outbound = { resource_id: string; - account_id?: string | undefined; }; /** @internal */ -export const AwsRdsInstance$outboundSchema: z.ZodType< - AwsRdsInstance$Outbound, +export const AzureStorageAccount$outboundSchema: z.ZodType< + AzureStorageAccount$Outbound, z.ZodTypeDef, - AwsRdsInstance + AzureStorageAccount > = z.object({ - instanceId: z.string(), - region: z.string(), resourceId: z.string(), - accountId: z.string().optional(), }).transform((v) => { return remap$(v, { - instanceId: "instance_id", resourceId: "resource_id", - accountId: "account_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsRdsInstance$ { - /** @deprecated use `AwsRdsInstance$inboundSchema` instead. */ - export const inboundSchema = AwsRdsInstance$inboundSchema; - /** @deprecated use `AwsRdsInstance$outboundSchema` instead. */ - export const outboundSchema = AwsRdsInstance$outboundSchema; - /** @deprecated use `AwsRdsInstance$Outbound` instead. */ - export type Outbound = AwsRdsInstance$Outbound; -} - -export function awsRdsInstanceToJSON(awsRdsInstance: AwsRdsInstance): string { - return JSON.stringify(AwsRdsInstance$outboundSchema.parse(awsRdsInstance)); +export function azureStorageAccountToJSON( + azureStorageAccount: AzureStorageAccount, +): string { + return JSON.stringify( + AzureStorageAccount$outboundSchema.parse(azureStorageAccount), + ); } - -export function awsRdsInstanceFromJSON( +export function azureStorageAccountFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsRdsInstance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsRdsInstance' from JSON`, + (x) => AzureStorageAccount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureStorageAccount' from JSON`, ); } /** @internal */ -export const AwsEksCluster$inboundSchema: z.ZodType< - AwsEksCluster, +export const AzureStorageContainer$inboundSchema: z.ZodType< + AzureStorageContainer, z.ZodTypeDef, unknown > = z.object({ - arn: z.string(), - account_id: z.string().optional(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "account_id": "accountId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type AwsEksCluster$Outbound = { - arn: string; - account_id?: string | undefined; +export type AzureStorageContainer$Outbound = { + resource_id: string; }; /** @internal */ -export const AwsEksCluster$outboundSchema: z.ZodType< - AwsEksCluster$Outbound, +export const AzureStorageContainer$outboundSchema: z.ZodType< + AzureStorageContainer$Outbound, z.ZodTypeDef, - AwsEksCluster + AzureStorageContainer > = z.object({ - arn: z.string(), - accountId: z.string().optional(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - accountId: "account_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AwsEksCluster$ { - /** @deprecated use `AwsEksCluster$inboundSchema` instead. */ - export const inboundSchema = AwsEksCluster$inboundSchema; - /** @deprecated use `AwsEksCluster$outboundSchema` instead. */ - export const outboundSchema = AwsEksCluster$outboundSchema; - /** @deprecated use `AwsEksCluster$Outbound` instead. */ - export type Outbound = AwsEksCluster$Outbound; -} - -export function awsEksClusterToJSON(awsEksCluster: AwsEksCluster): string { - return JSON.stringify(AwsEksCluster$outboundSchema.parse(awsEksCluster)); +export function azureStorageContainerToJSON( + azureStorageContainer: AzureStorageContainer, +): string { + return JSON.stringify( + AzureStorageContainer$outboundSchema.parse(azureStorageContainer), + ); } - -export function awsEksClusterFromJSON( +export function azureStorageContainerFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => AwsEksCluster$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AwsEksCluster' from JSON`, + (x) => AzureStorageContainer$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureStorageContainer' from JSON`, ); } /** @internal */ -export const CustomConnector$inboundSchema: z.ZodType< - CustomConnector, +export const AzureSqlServer$inboundSchema: z.ZodType< + AzureSqlServer, z.ZodTypeDef, unknown > = z.object({ - remote_resource_id: z.string(), - can_have_usage_events: z.boolean(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "remote_resource_id": "remoteResourceId", - "can_have_usage_events": "canHaveUsageEvents", + "resource_id": "resourceId", }); }); - /** @internal */ -export type CustomConnector$Outbound = { - remote_resource_id: string; - can_have_usage_events: boolean; +export type AzureSqlServer$Outbound = { + resource_id: string; }; /** @internal */ -export const CustomConnector$outboundSchema: z.ZodType< - CustomConnector$Outbound, +export const AzureSqlServer$outboundSchema: z.ZodType< + AzureSqlServer$Outbound, z.ZodTypeDef, - CustomConnector + AzureSqlServer > = z.object({ - remoteResourceId: z.string(), - canHaveUsageEvents: z.boolean(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - remoteResourceId: "remote_resource_id", - canHaveUsageEvents: "can_have_usage_events", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CustomConnector$ { - /** @deprecated use `CustomConnector$inboundSchema` instead. */ - export const inboundSchema = CustomConnector$inboundSchema; - /** @deprecated use `CustomConnector$outboundSchema` instead. */ - export const outboundSchema = CustomConnector$outboundSchema; - /** @deprecated use `CustomConnector$Outbound` instead. */ - export type Outbound = CustomConnector$Outbound; -} - -export function customConnectorToJSON( - customConnector: CustomConnector, -): string { - return JSON.stringify(CustomConnector$outboundSchema.parse(customConnector)); +export function azureSqlServerToJSON(azureSqlServer: AzureSqlServer): string { + return JSON.stringify(AzureSqlServer$outboundSchema.parse(azureSqlServer)); } - -export function customConnectorFromJSON( +export function azureSqlServerFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => CustomConnector$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CustomConnector' from JSON`, + (x) => AzureSqlServer$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureSqlServer' from JSON`, ); } /** @internal */ -export const GcpOrganization$inboundSchema: z.ZodType< - GcpOrganization, +export const AzureSqlDatabase$inboundSchema: z.ZodType< + AzureSqlDatabase, z.ZodTypeDef, unknown > = z.object({ - organization_id: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "organization_id": "organizationId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type GcpOrganization$Outbound = { - organization_id: string; +export type AzureSqlDatabase$Outbound = { + resource_id: string; }; /** @internal */ -export const GcpOrganization$outboundSchema: z.ZodType< - GcpOrganization$Outbound, +export const AzureSqlDatabase$outboundSchema: z.ZodType< + AzureSqlDatabase$Outbound, z.ZodTypeDef, - GcpOrganization + AzureSqlDatabase > = z.object({ - organizationId: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - organizationId: "organization_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpOrganization$ { - /** @deprecated use `GcpOrganization$inboundSchema` instead. */ - export const inboundSchema = GcpOrganization$inboundSchema; - /** @deprecated use `GcpOrganization$outboundSchema` instead. */ - export const outboundSchema = GcpOrganization$outboundSchema; - /** @deprecated use `GcpOrganization$Outbound` instead. */ - export type Outbound = GcpOrganization$Outbound; -} - -export function gcpOrganizationToJSON( - gcpOrganization: GcpOrganization, +export function azureSqlDatabaseToJSON( + azureSqlDatabase: AzureSqlDatabase, ): string { - return JSON.stringify(GcpOrganization$outboundSchema.parse(gcpOrganization)); + return JSON.stringify( + AzureSqlDatabase$outboundSchema.parse(azureSqlDatabase), + ); } - -export function gcpOrganizationFromJSON( +export function azureSqlDatabaseFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpOrganization$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpOrganization' from JSON`, + (x) => AzureSqlDatabase$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureSqlDatabase' from JSON`, ); } /** @internal */ -export const GcpBucket$inboundSchema: z.ZodType< - GcpBucket, +export const AzureSqlManagedInstance$inboundSchema: z.ZodType< + AzureSqlManagedInstance, z.ZodTypeDef, unknown > = z.object({ - bucket_id: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "bucket_id": "bucketId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type GcpBucket$Outbound = { - bucket_id: string; +export type AzureSqlManagedInstance$Outbound = { + resource_id: string; }; /** @internal */ -export const GcpBucket$outboundSchema: z.ZodType< - GcpBucket$Outbound, +export const AzureSqlManagedInstance$outboundSchema: z.ZodType< + AzureSqlManagedInstance$Outbound, z.ZodTypeDef, - GcpBucket + AzureSqlManagedInstance > = z.object({ - bucketId: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - bucketId: "bucket_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpBucket$ { - /** @deprecated use `GcpBucket$inboundSchema` instead. */ - export const inboundSchema = GcpBucket$inboundSchema; - /** @deprecated use `GcpBucket$outboundSchema` instead. */ - export const outboundSchema = GcpBucket$outboundSchema; - /** @deprecated use `GcpBucket$Outbound` instead. */ - export type Outbound = GcpBucket$Outbound; -} - -export function gcpBucketToJSON(gcpBucket: GcpBucket): string { - return JSON.stringify(GcpBucket$outboundSchema.parse(gcpBucket)); +export function azureSqlManagedInstanceToJSON( + azureSqlManagedInstance: AzureSqlManagedInstance, +): string { + return JSON.stringify( + AzureSqlManagedInstance$outboundSchema.parse(azureSqlManagedInstance), + ); } - -export function gcpBucketFromJSON( +export function azureSqlManagedInstanceFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpBucket$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpBucket' from JSON`, + (x) => AzureSqlManagedInstance$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureSqlManagedInstance' from JSON`, ); } /** @internal */ -export const GcpComputeInstance$inboundSchema: z.ZodType< - GcpComputeInstance, +export const AzureSqlManagedDatabase$inboundSchema: z.ZodType< + AzureSqlManagedDatabase, z.ZodTypeDef, unknown > = z.object({ - instance_id: z.string(), - project_id: z.string(), - zone: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "instance_id": "instanceId", - "project_id": "projectId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type GcpComputeInstance$Outbound = { - instance_id: string; - project_id: string; - zone: string; +export type AzureSqlManagedDatabase$Outbound = { + resource_id: string; }; /** @internal */ -export const GcpComputeInstance$outboundSchema: z.ZodType< - GcpComputeInstance$Outbound, +export const AzureSqlManagedDatabase$outboundSchema: z.ZodType< + AzureSqlManagedDatabase$Outbound, z.ZodTypeDef, - GcpComputeInstance + AzureSqlManagedDatabase > = z.object({ - instanceId: z.string(), - projectId: z.string(), - zone: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - instanceId: "instance_id", - projectId: "project_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpComputeInstance$ { - /** @deprecated use `GcpComputeInstance$inboundSchema` instead. */ - export const inboundSchema = GcpComputeInstance$inboundSchema; - /** @deprecated use `GcpComputeInstance$outboundSchema` instead. */ - export const outboundSchema = GcpComputeInstance$outboundSchema; - /** @deprecated use `GcpComputeInstance$Outbound` instead. */ - export type Outbound = GcpComputeInstance$Outbound; -} - -export function gcpComputeInstanceToJSON( - gcpComputeInstance: GcpComputeInstance, +export function azureSqlManagedDatabaseToJSON( + azureSqlManagedDatabase: AzureSqlManagedDatabase, ): string { return JSON.stringify( - GcpComputeInstance$outboundSchema.parse(gcpComputeInstance), + AzureSqlManagedDatabase$outboundSchema.parse(azureSqlManagedDatabase), ); } - -export function gcpComputeInstanceFromJSON( +export function azureSqlManagedDatabaseFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpComputeInstance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpComputeInstance' from JSON`, + (x) => AzureSqlManagedDatabase$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureSqlManagedDatabase' from JSON`, ); } /** @internal */ -export const GcpBigQueryDataset$inboundSchema: z.ZodType< - GcpBigQueryDataset, +export const AzureUserAssignedManagedIdentity$inboundSchema: z.ZodType< + AzureUserAssignedManagedIdentity, z.ZodTypeDef, unknown > = z.object({ - project_id: z.string(), - dataset_id: z.string(), + resource_id: z.string(), }).transform((v) => { return remap$(v, { - "project_id": "projectId", - "dataset_id": "datasetId", + "resource_id": "resourceId", }); }); - /** @internal */ -export type GcpBigQueryDataset$Outbound = { - project_id: string; - dataset_id: string; +export type AzureUserAssignedManagedIdentity$Outbound = { + resource_id: string; }; /** @internal */ -export const GcpBigQueryDataset$outboundSchema: z.ZodType< - GcpBigQueryDataset$Outbound, +export const AzureUserAssignedManagedIdentity$outboundSchema: z.ZodType< + AzureUserAssignedManagedIdentity$Outbound, z.ZodTypeDef, - GcpBigQueryDataset + AzureUserAssignedManagedIdentity > = z.object({ - projectId: z.string(), - datasetId: z.string(), + resourceId: z.string(), }).transform((v) => { return remap$(v, { - projectId: "project_id", - datasetId: "dataset_id", + resourceId: "resource_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpBigQueryDataset$ { - /** @deprecated use `GcpBigQueryDataset$inboundSchema` instead. */ - export const inboundSchema = GcpBigQueryDataset$inboundSchema; - /** @deprecated use `GcpBigQueryDataset$outboundSchema` instead. */ - export const outboundSchema = GcpBigQueryDataset$outboundSchema; - /** @deprecated use `GcpBigQueryDataset$Outbound` instead. */ - export type Outbound = GcpBigQueryDataset$Outbound; +export function azureUserAssignedManagedIdentityToJSON( + azureUserAssignedManagedIdentity: AzureUserAssignedManagedIdentity, +): string { + return JSON.stringify( + AzureUserAssignedManagedIdentity$outboundSchema.parse( + azureUserAssignedManagedIdentity, + ), + ); +} +export function azureUserAssignedManagedIdentityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AzureUserAssignedManagedIdentity$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureUserAssignedManagedIdentity' from JSON`, + ); +} + +/** @internal */ +export const AzureEnterpriseApp$inboundSchema: z.ZodType< + AzureEnterpriseApp, + z.ZodTypeDef, + unknown +> = z.object({ + resource_id: z.string(), +}).transform((v) => { + return remap$(v, { + "resource_id": "resourceId", + }); +}); +/** @internal */ +export type AzureEnterpriseApp$Outbound = { + resource_id: string; +}; + +/** @internal */ +export const AzureEnterpriseApp$outboundSchema: z.ZodType< + AzureEnterpriseApp$Outbound, + z.ZodTypeDef, + AzureEnterpriseApp +> = z.object({ + resourceId: z.string(), +}).transform((v) => { + return remap$(v, { + resourceId: "resource_id", + }); +}); + +export function azureEnterpriseAppToJSON( + azureEnterpriseApp: AzureEnterpriseApp, +): string { + return JSON.stringify( + AzureEnterpriseApp$outboundSchema.parse(azureEnterpriseApp), + ); +} +export function azureEnterpriseAppFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AzureEnterpriseApp$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureEnterpriseApp' from JSON`, + ); +} + +/** @internal */ +export const AzureEntraIdRole$inboundSchema: z.ZodType< + AzureEntraIdRole, + z.ZodTypeDef, + unknown +> = z.object({ + resource_id: z.string(), +}).transform((v) => { + return remap$(v, { + "resource_id": "resourceId", + }); +}); +/** @internal */ +export type AzureEntraIdRole$Outbound = { + resource_id: string; +}; + +/** @internal */ +export const AzureEntraIdRole$outboundSchema: z.ZodType< + AzureEntraIdRole$Outbound, + z.ZodTypeDef, + AzureEntraIdRole +> = z.object({ + resourceId: z.string(), +}).transform((v) => { + return remap$(v, { + resourceId: "resource_id", + }); +}); + +export function azureEntraIdRoleToJSON( + azureEntraIdRole: AzureEntraIdRole, +): string { + return JSON.stringify( + AzureEntraIdRole$outboundSchema.parse(azureEntraIdRole), + ); +} +export function azureEntraIdRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AzureEntraIdRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AzureEntraIdRole' from JSON`, + ); +} + +/** @internal */ +export const AwsOrganizationalUnit$inboundSchema: z.ZodType< + AwsOrganizationalUnit, + z.ZodTypeDef, + unknown +> = z.object({ + parent_id: z.string().optional(), + organizational_unit_id: z.string(), +}).transform((v) => { + return remap$(v, { + "parent_id": "parentId", + "organizational_unit_id": "organizationalUnitId", + }); +}); +/** @internal */ +export type AwsOrganizationalUnit$Outbound = { + parent_id?: string | undefined; + organizational_unit_id: string; +}; + +/** @internal */ +export const AwsOrganizationalUnit$outboundSchema: z.ZodType< + AwsOrganizationalUnit$Outbound, + z.ZodTypeDef, + AwsOrganizationalUnit +> = z.object({ + parentId: z.string().optional(), + organizationalUnitId: z.string(), +}).transform((v) => { + return remap$(v, { + parentId: "parent_id", + organizationalUnitId: "organizational_unit_id", + }); +}); + +export function awsOrganizationalUnitToJSON( + awsOrganizationalUnit: AwsOrganizationalUnit, +): string { + return JSON.stringify( + AwsOrganizationalUnit$outboundSchema.parse(awsOrganizationalUnit), + ); +} +export function awsOrganizationalUnitFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsOrganizationalUnit$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsOrganizationalUnit' from JSON`, + ); +} + +/** @internal */ +export const AwsAccount$inboundSchema: z.ZodType< + AwsAccount, + z.ZodTypeDef, + unknown +> = z.object({ + account_id: z.string(), + organizational_unit_id: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "account_id": "accountId", + "organizational_unit_id": "organizationalUnitId", + }); +}); +/** @internal */ +export type AwsAccount$Outbound = { + account_id: string; + organizational_unit_id?: string | undefined; +}; + +/** @internal */ +export const AwsAccount$outboundSchema: z.ZodType< + AwsAccount$Outbound, + z.ZodTypeDef, + AwsAccount +> = z.object({ + accountId: z.string(), + organizationalUnitId: z.string().optional(), +}).transform((v) => { + return remap$(v, { + accountId: "account_id", + organizationalUnitId: "organizational_unit_id", + }); +}); + +export function awsAccountToJSON(awsAccount: AwsAccount): string { + return JSON.stringify(AwsAccount$outboundSchema.parse(awsAccount)); +} +export function awsAccountFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsAccount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsAccount' from JSON`, + ); +} + +/** @internal */ +export const AwsPermissionSet$inboundSchema: z.ZodType< + AwsPermissionSet, + z.ZodTypeDef, + unknown +> = z.object({ + arn: z.string(), + account_id: z.string(), +}).transform((v) => { + return remap$(v, { + "account_id": "accountId", + }); +}); +/** @internal */ +export type AwsPermissionSet$Outbound = { + arn: string; + account_id: string; +}; + +/** @internal */ +export const AwsPermissionSet$outboundSchema: z.ZodType< + AwsPermissionSet$Outbound, + z.ZodTypeDef, + AwsPermissionSet +> = z.object({ + arn: z.string(), + accountId: z.string(), +}).transform((v) => { + return remap$(v, { + accountId: "account_id", + }); +}); + +export function awsPermissionSetToJSON( + awsPermissionSet: AwsPermissionSet, +): string { + return JSON.stringify( + AwsPermissionSet$outboundSchema.parse(awsPermissionSet), + ); +} +export function awsPermissionSetFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsPermissionSet$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsPermissionSet' from JSON`, + ); +} + +/** @internal */ +export const AwsIamRole$inboundSchema: z.ZodType< + AwsIamRole, + z.ZodTypeDef, + unknown +> = z.object({ + arn: z.string(), + account_id: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "account_id": "accountId", + }); +}); +/** @internal */ +export type AwsIamRole$Outbound = { + arn: string; + account_id?: string | undefined; +}; + +/** @internal */ +export const AwsIamRole$outboundSchema: z.ZodType< + AwsIamRole$Outbound, + z.ZodTypeDef, + AwsIamRole +> = z.object({ + arn: z.string(), + accountId: z.string().optional(), +}).transform((v) => { + return remap$(v, { + accountId: "account_id", + }); +}); + +export function awsIamRoleToJSON(awsIamRole: AwsIamRole): string { + return JSON.stringify(AwsIamRole$outboundSchema.parse(awsIamRole)); +} +export function awsIamRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsIamRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsIamRole' from JSON`, + ); +} + +/** @internal */ +export const AwsEc2Instance$inboundSchema: z.ZodType< + AwsEc2Instance, + z.ZodTypeDef, + unknown +> = z.object({ + instance_id: z.string(), + region: z.string(), + account_id: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "instance_id": "instanceId", + "account_id": "accountId", + }); +}); +/** @internal */ +export type AwsEc2Instance$Outbound = { + instance_id: string; + region: string; + account_id?: string | undefined; +}; + +/** @internal */ +export const AwsEc2Instance$outboundSchema: z.ZodType< + AwsEc2Instance$Outbound, + z.ZodTypeDef, + AwsEc2Instance +> = z.object({ + instanceId: z.string(), + region: z.string(), + accountId: z.string().optional(), +}).transform((v) => { + return remap$(v, { + instanceId: "instance_id", + accountId: "account_id", + }); +}); + +export function awsEc2InstanceToJSON(awsEc2Instance: AwsEc2Instance): string { + return JSON.stringify(AwsEc2Instance$outboundSchema.parse(awsEc2Instance)); +} +export function awsEc2InstanceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsEc2Instance$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsEc2Instance' from JSON`, + ); +} + +/** @internal */ +export const AwsRdsCluster$inboundSchema: z.ZodType< + AwsRdsCluster, + z.ZodTypeDef, + unknown +> = z.object({ + cluster_id: z.string(), + region: z.string(), + resource_id: z.string(), + account_id: z.string(), + database_name: z.string(), + engine: RDSEngineEnum$inboundSchema, +}).transform((v) => { + return remap$(v, { + "cluster_id": "clusterId", + "resource_id": "resourceId", + "account_id": "accountId", + "database_name": "databaseName", + }); +}); +/** @internal */ +export type AwsRdsCluster$Outbound = { + cluster_id: string; + region: string; + resource_id: string; + account_id: string; + database_name: string; + engine: string; +}; + +/** @internal */ +export const AwsRdsCluster$outboundSchema: z.ZodType< + AwsRdsCluster$Outbound, + z.ZodTypeDef, + AwsRdsCluster +> = z.object({ + clusterId: z.string(), + region: z.string(), + resourceId: z.string(), + accountId: z.string(), + databaseName: z.string(), + engine: RDSEngineEnum$outboundSchema, +}).transform((v) => { + return remap$(v, { + clusterId: "cluster_id", + resourceId: "resource_id", + accountId: "account_id", + databaseName: "database_name", + }); +}); + +export function awsRdsClusterToJSON(awsRdsCluster: AwsRdsCluster): string { + return JSON.stringify(AwsRdsCluster$outboundSchema.parse(awsRdsCluster)); +} +export function awsRdsClusterFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsRdsCluster$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsRdsCluster' from JSON`, + ); +} + +/** @internal */ +export const AwsRdsInstance$inboundSchema: z.ZodType< + AwsRdsInstance, + z.ZodTypeDef, + unknown +> = z.object({ + instance_id: z.string(), + region: z.string(), + resource_id: z.string(), + account_id: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "instance_id": "instanceId", + "resource_id": "resourceId", + "account_id": "accountId", + }); +}); +/** @internal */ +export type AwsRdsInstance$Outbound = { + instance_id: string; + region: string; + resource_id: string; + account_id?: string | undefined; +}; + +/** @internal */ +export const AwsRdsInstance$outboundSchema: z.ZodType< + AwsRdsInstance$Outbound, + z.ZodTypeDef, + AwsRdsInstance +> = z.object({ + instanceId: z.string(), + region: z.string(), + resourceId: z.string(), + accountId: z.string().optional(), +}).transform((v) => { + return remap$(v, { + instanceId: "instance_id", + resourceId: "resource_id", + accountId: "account_id", + }); +}); + +export function awsRdsInstanceToJSON(awsRdsInstance: AwsRdsInstance): string { + return JSON.stringify(AwsRdsInstance$outboundSchema.parse(awsRdsInstance)); +} +export function awsRdsInstanceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsRdsInstance$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsRdsInstance' from JSON`, + ); +} + +/** @internal */ +export const AwsEksCluster$inboundSchema: z.ZodType< + AwsEksCluster, + z.ZodTypeDef, + unknown +> = z.object({ + arn: z.string(), + account_id: z.string().optional(), +}).transform((v) => { + return remap$(v, { + "account_id": "accountId", + }); +}); +/** @internal */ +export type AwsEksCluster$Outbound = { + arn: string; + account_id?: string | undefined; +}; + +/** @internal */ +export const AwsEksCluster$outboundSchema: z.ZodType< + AwsEksCluster$Outbound, + z.ZodTypeDef, + AwsEksCluster +> = z.object({ + arn: z.string(), + accountId: z.string().optional(), +}).transform((v) => { + return remap$(v, { + accountId: "account_id", + }); +}); + +export function awsEksClusterToJSON(awsEksCluster: AwsEksCluster): string { + return JSON.stringify(AwsEksCluster$outboundSchema.parse(awsEksCluster)); +} +export function awsEksClusterFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AwsEksCluster$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AwsEksCluster' from JSON`, + ); +} + +/** @internal */ +export const CustomConnector$inboundSchema: z.ZodType< + CustomConnector, + z.ZodTypeDef, + unknown +> = z.object({ + remote_resource_id: z.string(), + can_have_usage_events: z.boolean(), +}).transform((v) => { + return remap$(v, { + "remote_resource_id": "remoteResourceId", + "can_have_usage_events": "canHaveUsageEvents", + }); +}); +/** @internal */ +export type CustomConnector$Outbound = { + remote_resource_id: string; + can_have_usage_events: boolean; +}; + +/** @internal */ +export const CustomConnector$outboundSchema: z.ZodType< + CustomConnector$Outbound, + z.ZodTypeDef, + CustomConnector +> = z.object({ + remoteResourceId: z.string(), + canHaveUsageEvents: z.boolean(), +}).transform((v) => { + return remap$(v, { + remoteResourceId: "remote_resource_id", + canHaveUsageEvents: "can_have_usage_events", + }); +}); + +export function customConnectorToJSON( + customConnector: CustomConnector, +): string { + return JSON.stringify(CustomConnector$outboundSchema.parse(customConnector)); +} +export function customConnectorFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CustomConnector$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CustomConnector' from JSON`, + ); +} + +/** @internal */ +export const GcpOrganization$inboundSchema: z.ZodType< + GcpOrganization, + z.ZodTypeDef, + unknown +> = z.object({ + organization_id: z.string(), +}).transform((v) => { + return remap$(v, { + "organization_id": "organizationId", + }); +}); +/** @internal */ +export type GcpOrganization$Outbound = { + organization_id: string; +}; + +/** @internal */ +export const GcpOrganization$outboundSchema: z.ZodType< + GcpOrganization$Outbound, + z.ZodTypeDef, + GcpOrganization +> = z.object({ + organizationId: z.string(), +}).transform((v) => { + return remap$(v, { + organizationId: "organization_id", + }); +}); + +export function gcpOrganizationToJSON( + gcpOrganization: GcpOrganization, +): string { + return JSON.stringify(GcpOrganization$outboundSchema.parse(gcpOrganization)); +} +export function gcpOrganizationFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpOrganization$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpOrganization' from JSON`, + ); +} + +/** @internal */ +export const GcpBucket$inboundSchema: z.ZodType< + GcpBucket, + z.ZodTypeDef, + unknown +> = z.object({ + bucket_id: z.string(), +}).transform((v) => { + return remap$(v, { + "bucket_id": "bucketId", + }); +}); +/** @internal */ +export type GcpBucket$Outbound = { + bucket_id: string; +}; + +/** @internal */ +export const GcpBucket$outboundSchema: z.ZodType< + GcpBucket$Outbound, + z.ZodTypeDef, + GcpBucket +> = z.object({ + bucketId: z.string(), +}).transform((v) => { + return remap$(v, { + bucketId: "bucket_id", + }); +}); + +export function gcpBucketToJSON(gcpBucket: GcpBucket): string { + return JSON.stringify(GcpBucket$outboundSchema.parse(gcpBucket)); +} +export function gcpBucketFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpBucket$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpBucket' from JSON`, + ); +} + +/** @internal */ +export const GcpComputeInstance$inboundSchema: z.ZodType< + GcpComputeInstance, + z.ZodTypeDef, + unknown +> = z.object({ + instance_id: z.string(), + project_id: z.string(), + zone: z.string(), +}).transform((v) => { + return remap$(v, { + "instance_id": "instanceId", + "project_id": "projectId", + }); +}); +/** @internal */ +export type GcpComputeInstance$Outbound = { + instance_id: string; + project_id: string; + zone: string; +}; + +/** @internal */ +export const GcpComputeInstance$outboundSchema: z.ZodType< + GcpComputeInstance$Outbound, + z.ZodTypeDef, + GcpComputeInstance +> = z.object({ + instanceId: z.string(), + projectId: z.string(), + zone: z.string(), +}).transform((v) => { + return remap$(v, { + instanceId: "instance_id", + projectId: "project_id", + }); +}); + +export function gcpComputeInstanceToJSON( + gcpComputeInstance: GcpComputeInstance, +): string { + return JSON.stringify( + GcpComputeInstance$outboundSchema.parse(gcpComputeInstance), + ); +} +export function gcpComputeInstanceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpComputeInstance$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpComputeInstance' from JSON`, + ); +} + +/** @internal */ +export const GcpBigQueryDataset$inboundSchema: z.ZodType< + GcpBigQueryDataset, + z.ZodTypeDef, + unknown +> = z.object({ + project_id: z.string(), + dataset_id: z.string(), +}).transform((v) => { + return remap$(v, { + "project_id": "projectId", + "dataset_id": "datasetId", + }); +}); +/** @internal */ +export type GcpBigQueryDataset$Outbound = { + project_id: string; + dataset_id: string; +}; + +/** @internal */ +export const GcpBigQueryDataset$outboundSchema: z.ZodType< + GcpBigQueryDataset$Outbound, + z.ZodTypeDef, + GcpBigQueryDataset +> = z.object({ + projectId: z.string(), + datasetId: z.string(), +}).transform((v) => { + return remap$(v, { + projectId: "project_id", + datasetId: "dataset_id", + }); +}); + +export function gcpBigQueryDatasetToJSON( + gcpBigQueryDataset: GcpBigQueryDataset, +): string { + return JSON.stringify( + GcpBigQueryDataset$outboundSchema.parse(gcpBigQueryDataset), + ); +} +export function gcpBigQueryDatasetFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpBigQueryDataset$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpBigQueryDataset' from JSON`, + ); +} + +/** @internal */ +export const GcpBigQueryTable$inboundSchema: z.ZodType< + GcpBigQueryTable, + z.ZodTypeDef, + unknown +> = z.object({ + project_id: z.string(), + dataset_id: z.string(), + table_id: z.string(), +}).transform((v) => { + return remap$(v, { + "project_id": "projectId", + "dataset_id": "datasetId", + "table_id": "tableId", + }); +}); +/** @internal */ +export type GcpBigQueryTable$Outbound = { + project_id: string; + dataset_id: string; + table_id: string; +}; + +/** @internal */ +export const GcpBigQueryTable$outboundSchema: z.ZodType< + GcpBigQueryTable$Outbound, + z.ZodTypeDef, + GcpBigQueryTable +> = z.object({ + projectId: z.string(), + datasetId: z.string(), + tableId: z.string(), +}).transform((v) => { + return remap$(v, { + projectId: "project_id", + datasetId: "dataset_id", + tableId: "table_id", + }); +}); + +export function gcpBigQueryTableToJSON( + gcpBigQueryTable: GcpBigQueryTable, +): string { + return JSON.stringify( + GcpBigQueryTable$outboundSchema.parse(gcpBigQueryTable), + ); +} +export function gcpBigQueryTableFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpBigQueryTable$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpBigQueryTable' from JSON`, + ); +} + +/** @internal */ +export const GcpFolder$inboundSchema: z.ZodType< + GcpFolder, + z.ZodTypeDef, + unknown +> = z.object({ + folder_id: z.string(), +}).transform((v) => { + return remap$(v, { + "folder_id": "folderId", + }); +}); +/** @internal */ +export type GcpFolder$Outbound = { + folder_id: string; +}; + +/** @internal */ +export const GcpFolder$outboundSchema: z.ZodType< + GcpFolder$Outbound, + z.ZodTypeDef, + GcpFolder +> = z.object({ + folderId: z.string(), +}).transform((v) => { + return remap$(v, { + folderId: "folder_id", + }); +}); + +export function gcpFolderToJSON(gcpFolder: GcpFolder): string { + return JSON.stringify(GcpFolder$outboundSchema.parse(gcpFolder)); +} +export function gcpFolderFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpFolder$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpFolder' from JSON`, + ); +} + +/** @internal */ +export const GcpGkeCluster$inboundSchema: z.ZodType< + GcpGkeCluster, + z.ZodTypeDef, + unknown +> = z.object({ + cluster_name: z.string(), +}).transform((v) => { + return remap$(v, { + "cluster_name": "clusterName", + }); +}); +/** @internal */ +export type GcpGkeCluster$Outbound = { + cluster_name: string; +}; + +/** @internal */ +export const GcpGkeCluster$outboundSchema: z.ZodType< + GcpGkeCluster$Outbound, + z.ZodTypeDef, + GcpGkeCluster +> = z.object({ + clusterName: z.string(), +}).transform((v) => { + return remap$(v, { + clusterName: "cluster_name", + }); +}); + +export function gcpGkeClusterToJSON(gcpGkeCluster: GcpGkeCluster): string { + return JSON.stringify(GcpGkeCluster$outboundSchema.parse(gcpGkeCluster)); +} +export function gcpGkeClusterFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpGkeCluster$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpGkeCluster' from JSON`, + ); +} + +/** @internal */ +export const GcpProject$inboundSchema: z.ZodType< + GcpProject, + z.ZodTypeDef, + unknown +> = z.object({ + project_id: z.string(), +}).transform((v) => { + return remap$(v, { + "project_id": "projectId", + }); +}); +/** @internal */ +export type GcpProject$Outbound = { + project_id: string; +}; + +/** @internal */ +export const GcpProject$outboundSchema: z.ZodType< + GcpProject$Outbound, + z.ZodTypeDef, + GcpProject +> = z.object({ + projectId: z.string(), +}).transform((v) => { + return remap$(v, { + projectId: "project_id", + }); +}); + +export function gcpProjectToJSON(gcpProject: GcpProject): string { + return JSON.stringify(GcpProject$outboundSchema.parse(gcpProject)); +} +export function gcpProjectFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpProject$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpProject' from JSON`, + ); +} + +/** @internal */ +export const GcpSqlInstance$inboundSchema: z.ZodType< + GcpSqlInstance, + z.ZodTypeDef, + unknown +> = z.object({ + instance_id: z.string(), + project_id: z.string(), +}).transform((v) => { + return remap$(v, { + "instance_id": "instanceId", + "project_id": "projectId", + }); +}); +/** @internal */ +export type GcpSqlInstance$Outbound = { + instance_id: string; + project_id: string; +}; + +/** @internal */ +export const GcpSqlInstance$outboundSchema: z.ZodType< + GcpSqlInstance$Outbound, + z.ZodTypeDef, + GcpSqlInstance +> = z.object({ + instanceId: z.string(), + projectId: z.string(), +}).transform((v) => { + return remap$(v, { + instanceId: "instance_id", + projectId: "project_id", + }); +}); + +export function gcpSqlInstanceToJSON(gcpSqlInstance: GcpSqlInstance): string { + return JSON.stringify(GcpSqlInstance$outboundSchema.parse(gcpSqlInstance)); +} +export function gcpSqlInstanceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpSqlInstance$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpSqlInstance' from JSON`, + ); +} + +/** @internal */ +export const GcpServiceAccount$inboundSchema: z.ZodType< + GcpServiceAccount, + z.ZodTypeDef, + unknown +> = z.object({ + email: z.string(), + service_account_id: z.string(), + project_id: z.string(), +}).transform((v) => { + return remap$(v, { + "service_account_id": "serviceAccountId", + "project_id": "projectId", + }); +}); +/** @internal */ +export type GcpServiceAccount$Outbound = { + email: string; + service_account_id: string; + project_id: string; +}; + +/** @internal */ +export const GcpServiceAccount$outboundSchema: z.ZodType< + GcpServiceAccount$Outbound, + z.ZodTypeDef, + GcpServiceAccount +> = z.object({ + email: z.string(), + serviceAccountId: z.string(), + projectId: z.string(), +}).transform((v) => { + return remap$(v, { + serviceAccountId: "service_account_id", + projectId: "project_id", + }); +}); + +export function gcpServiceAccountToJSON( + gcpServiceAccount: GcpServiceAccount, +): string { + return JSON.stringify( + GcpServiceAccount$outboundSchema.parse(gcpServiceAccount), + ); +} +export function gcpServiceAccountFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GcpServiceAccount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GcpServiceAccount' from JSON`, + ); +} + +/** @internal */ +export const GoogleWorkspaceRole$inboundSchema: z.ZodType< + GoogleWorkspaceRole, + z.ZodTypeDef, + unknown +> = z.object({ + role_id: z.string(), +}).transform((v) => { + return remap$(v, { + "role_id": "roleId", + }); +}); +/** @internal */ +export type GoogleWorkspaceRole$Outbound = { + role_id: string; +}; + +/** @internal */ +export const GoogleWorkspaceRole$outboundSchema: z.ZodType< + GoogleWorkspaceRole$Outbound, + z.ZodTypeDef, + GoogleWorkspaceRole +> = z.object({ + roleId: z.string(), +}).transform((v) => { + return remap$(v, { + roleId: "role_id", + }); +}); + +export function googleWorkspaceRoleToJSON( + googleWorkspaceRole: GoogleWorkspaceRole, +): string { + return JSON.stringify( + GoogleWorkspaceRole$outboundSchema.parse(googleWorkspaceRole), + ); +} +export function googleWorkspaceRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GoogleWorkspaceRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GoogleWorkspaceRole' from JSON`, + ); +} + +/** @internal */ +export const GithubRepo$inboundSchema: z.ZodType< + GithubRepo, + z.ZodTypeDef, + unknown +> = z.object({ + repo_id: z.string().optional(), + repo_name: z.string(), +}).transform((v) => { + return remap$(v, { + "repo_id": "repoId", + "repo_name": "repoName", + }); +}); +/** @internal */ +export type GithubRepo$Outbound = { + repo_id?: string | undefined; + repo_name: string; +}; + +/** @internal */ +export const GithubRepo$outboundSchema: z.ZodType< + GithubRepo$Outbound, + z.ZodTypeDef, + GithubRepo +> = z.object({ + repoId: z.string().optional(), + repoName: z.string(), +}).transform((v) => { + return remap$(v, { + repoId: "repo_id", + repoName: "repo_name", + }); +}); + +export function githubRepoToJSON(githubRepo: GithubRepo): string { + return JSON.stringify(GithubRepo$outboundSchema.parse(githubRepo)); +} +export function githubRepoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubRepo$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubRepo' from JSON`, + ); +} + +/** @internal */ +export const GithubOrgRole$inboundSchema: z.ZodType< + GithubOrgRole, + z.ZodTypeDef, + unknown +> = z.object({ + role_id: z.string(), +}).transform((v) => { + return remap$(v, { + "role_id": "roleId", + }); +}); +/** @internal */ +export type GithubOrgRole$Outbound = { + role_id: string; +}; + +/** @internal */ +export const GithubOrgRole$outboundSchema: z.ZodType< + GithubOrgRole$Outbound, + z.ZodTypeDef, + GithubOrgRole +> = z.object({ + roleId: z.string(), +}).transform((v) => { + return remap$(v, { + roleId: "role_id", + }); +}); + +export function githubOrgRoleToJSON(githubOrgRole: GithubOrgRole): string { + return JSON.stringify(GithubOrgRole$outboundSchema.parse(githubOrgRole)); +} +export function githubOrgRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubOrgRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubOrgRole' from JSON`, + ); +} + +/** @internal */ +export const GithubOrg$inboundSchema: z.ZodType< + GithubOrg, + z.ZodTypeDef, + unknown +> = z.object({ + org_name: z.string(), +}).transform((v) => { + return remap$(v, { + "org_name": "orgName", + }); +}); +/** @internal */ +export type GithubOrg$Outbound = { + org_name: string; +}; + +/** @internal */ +export const GithubOrg$outboundSchema: z.ZodType< + GithubOrg$Outbound, + z.ZodTypeDef, + GithubOrg +> = z.object({ + orgName: z.string(), +}).transform((v) => { + return remap$(v, { + orgName: "org_name", + }); +}); + +export function githubOrgToJSON(githubOrg: GithubOrg): string { + return JSON.stringify(GithubOrg$outboundSchema.parse(githubOrg)); +} +export function githubOrgFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GithubOrg$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GithubOrg' from JSON`, + ); +} + +/** @internal */ +export const GitlabProject$inboundSchema: z.ZodType< + GitlabProject, + z.ZodTypeDef, + unknown +> = z.object({ + project_id: z.string(), +}).transform((v) => { + return remap$(v, { + "project_id": "projectId", + }); +}); +/** @internal */ +export type GitlabProject$Outbound = { + project_id: string; +}; + +/** @internal */ +export const GitlabProject$outboundSchema: z.ZodType< + GitlabProject$Outbound, + z.ZodTypeDef, + GitlabProject +> = z.object({ + projectId: z.string(), +}).transform((v) => { + return remap$(v, { + projectId: "project_id", + }); +}); + +export function gitlabProjectToJSON(gitlabProject: GitlabProject): string { + return JSON.stringify(GitlabProject$outboundSchema.parse(gitlabProject)); +} +export function gitlabProjectFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GitlabProject$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GitlabProject' from JSON`, + ); +} + +/** @internal */ +export const OktaApp$inboundSchema: z.ZodType = + z.object({ + app_id: z.string(), + }).transform((v) => { + return remap$(v, { + "app_id": "appId", + }); + }); +/** @internal */ +export type OktaApp$Outbound = { + app_id: string; +}; + +/** @internal */ +export const OktaApp$outboundSchema: z.ZodType< + OktaApp$Outbound, + z.ZodTypeDef, + OktaApp +> = z.object({ + appId: z.string(), +}).transform((v) => { + return remap$(v, { + appId: "app_id", + }); +}); + +export function oktaAppToJSON(oktaApp: OktaApp): string { + return JSON.stringify(OktaApp$outboundSchema.parse(oktaApp)); +} +export function oktaAppFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OktaApp$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OktaApp' from JSON`, + ); } -export function gcpBigQueryDatasetToJSON( - gcpBigQueryDataset: GcpBigQueryDataset, +/** @internal */ +export const OktaStandardRole$inboundSchema: z.ZodType< + OktaStandardRole, + z.ZodTypeDef, + unknown +> = z.object({ + role_type: z.string(), +}).transform((v) => { + return remap$(v, { + "role_type": "roleType", + }); +}); +/** @internal */ +export type OktaStandardRole$Outbound = { + role_type: string; +}; + +/** @internal */ +export const OktaStandardRole$outboundSchema: z.ZodType< + OktaStandardRole$Outbound, + z.ZodTypeDef, + OktaStandardRole +> = z.object({ + roleType: z.string(), +}).transform((v) => { + return remap$(v, { + roleType: "role_type", + }); +}); + +export function oktaStandardRoleToJSON( + oktaStandardRole: OktaStandardRole, ): string { return JSON.stringify( - GcpBigQueryDataset$outboundSchema.parse(gcpBigQueryDataset), + OktaStandardRole$outboundSchema.parse(oktaStandardRole), ); } - -export function gcpBigQueryDatasetFromJSON( +export function oktaStandardRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpBigQueryDataset$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpBigQueryDataset' from JSON`, + (x) => OktaStandardRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OktaStandardRole' from JSON`, ); } /** @internal */ -export const GcpBigQueryTable$inboundSchema: z.ZodType< - GcpBigQueryTable, +export const OktaCustomRole$inboundSchema: z.ZodType< + OktaCustomRole, z.ZodTypeDef, unknown > = z.object({ - project_id: z.string(), - dataset_id: z.string(), - table_id: z.string(), + role_id: z.string(), }).transform((v) => { return remap$(v, { - "project_id": "projectId", - "dataset_id": "datasetId", - "table_id": "tableId", + "role_id": "roleId", }); }); - /** @internal */ -export type GcpBigQueryTable$Outbound = { - project_id: string; - dataset_id: string; - table_id: string; +export type OktaCustomRole$Outbound = { + role_id: string; }; /** @internal */ -export const GcpBigQueryTable$outboundSchema: z.ZodType< - GcpBigQueryTable$Outbound, +export const OktaCustomRole$outboundSchema: z.ZodType< + OktaCustomRole$Outbound, z.ZodTypeDef, - GcpBigQueryTable + OktaCustomRole > = z.object({ - projectId: z.string(), - datasetId: z.string(), - tableId: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - projectId: "project_id", - datasetId: "dataset_id", - tableId: "table_id", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpBigQueryTable$ { - /** @deprecated use `GcpBigQueryTable$inboundSchema` instead. */ - export const inboundSchema = GcpBigQueryTable$inboundSchema; - /** @deprecated use `GcpBigQueryTable$outboundSchema` instead. */ - export const outboundSchema = GcpBigQueryTable$outboundSchema; - /** @deprecated use `GcpBigQueryTable$Outbound` instead. */ - export type Outbound = GcpBigQueryTable$Outbound; +export function oktaCustomRoleToJSON(oktaCustomRole: OktaCustomRole): string { + return JSON.stringify(OktaCustomRole$outboundSchema.parse(oktaCustomRole)); +} +export function oktaCustomRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => OktaCustomRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OktaCustomRole' from JSON`, + ); } -export function gcpBigQueryTableToJSON( - gcpBigQueryTable: GcpBigQueryTable, +/** @internal */ +export const SnowflakeDatabase$inboundSchema: z.ZodType< + SnowflakeDatabase, + z.ZodTypeDef, + unknown +> = z.object({ + database_name: z.string(), +}).transform((v) => { + return remap$(v, { + "database_name": "databaseName", + }); +}); +/** @internal */ +export type SnowflakeDatabase$Outbound = { + database_name: string; +}; + +/** @internal */ +export const SnowflakeDatabase$outboundSchema: z.ZodType< + SnowflakeDatabase$Outbound, + z.ZodTypeDef, + SnowflakeDatabase +> = z.object({ + databaseName: z.string(), +}).transform((v) => { + return remap$(v, { + databaseName: "database_name", + }); +}); + +export function snowflakeDatabaseToJSON( + snowflakeDatabase: SnowflakeDatabase, ): string { return JSON.stringify( - GcpBigQueryTable$outboundSchema.parse(gcpBigQueryTable), + SnowflakeDatabase$outboundSchema.parse(snowflakeDatabase), ); } - -export function gcpBigQueryTableFromJSON( +export function snowflakeDatabaseFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpBigQueryTable$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpBigQueryTable' from JSON`, + (x) => SnowflakeDatabase$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SnowflakeDatabase' from JSON`, ); } /** @internal */ -export const GcpFolder$inboundSchema: z.ZodType< - GcpFolder, +export const SnowflakeSchema$inboundSchema: z.ZodType< + SnowflakeSchema, z.ZodTypeDef, unknown > = z.object({ - folder_id: z.string(), + database_name: z.string(), + schema_name: z.string(), }).transform((v) => { return remap$(v, { - "folder_id": "folderId", + "database_name": "databaseName", + "schema_name": "schemaName", }); }); - /** @internal */ -export type GcpFolder$Outbound = { - folder_id: string; +export type SnowflakeSchema$Outbound = { + database_name: string; + schema_name: string; }; /** @internal */ -export const GcpFolder$outboundSchema: z.ZodType< - GcpFolder$Outbound, +export const SnowflakeSchema$outboundSchema: z.ZodType< + SnowflakeSchema$Outbound, z.ZodTypeDef, - GcpFolder + SnowflakeSchema > = z.object({ - folderId: z.string(), + databaseName: z.string(), + schemaName: z.string(), }).transform((v) => { return remap$(v, { - folderId: "folder_id", + databaseName: "database_name", + schemaName: "schema_name", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpFolder$ { - /** @deprecated use `GcpFolder$inboundSchema` instead. */ - export const inboundSchema = GcpFolder$inboundSchema; - /** @deprecated use `GcpFolder$outboundSchema` instead. */ - export const outboundSchema = GcpFolder$outboundSchema; - /** @deprecated use `GcpFolder$Outbound` instead. */ - export type Outbound = GcpFolder$Outbound; +export function snowflakeSchemaToJSON( + snowflakeSchema: SnowflakeSchema, +): string { + return JSON.stringify(SnowflakeSchema$outboundSchema.parse(snowflakeSchema)); } - -export function gcpFolderToJSON(gcpFolder: GcpFolder): string { - return JSON.stringify(GcpFolder$outboundSchema.parse(gcpFolder)); +export function snowflakeSchemaFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SnowflakeSchema$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SnowflakeSchema' from JSON`, + ); } -export function gcpFolderFromJSON( +/** @internal */ +export const SnowflakeTable$inboundSchema: z.ZodType< + SnowflakeTable, + z.ZodTypeDef, + unknown +> = z.object({ + database_name: z.string(), + schema_name: z.string(), + table_name: z.string(), +}).transform((v) => { + return remap$(v, { + "database_name": "databaseName", + "schema_name": "schemaName", + "table_name": "tableName", + }); +}); +/** @internal */ +export type SnowflakeTable$Outbound = { + database_name: string; + schema_name: string; + table_name: string; +}; + +/** @internal */ +export const SnowflakeTable$outboundSchema: z.ZodType< + SnowflakeTable$Outbound, + z.ZodTypeDef, + SnowflakeTable +> = z.object({ + databaseName: z.string(), + schemaName: z.string(), + tableName: z.string(), +}).transform((v) => { + return remap$(v, { + databaseName: "database_name", + schemaName: "schema_name", + tableName: "table_name", + }); +}); + +export function snowflakeTableToJSON(snowflakeTable: SnowflakeTable): string { + return JSON.stringify(SnowflakeTable$outboundSchema.parse(snowflakeTable)); +} +export function snowflakeTableFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpFolder$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpFolder' from JSON`, + (x) => SnowflakeTable$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SnowflakeTable' from JSON`, ); } /** @internal */ -export const GcpGkeCluster$inboundSchema: z.ZodType< - GcpGkeCluster, +export const IlevelAdvancedRole$inboundSchema: z.ZodType< + IlevelAdvancedRole, z.ZodTypeDef, unknown > = z.object({ - cluster_name: z.string(), + role_name: z.string(), }).transform((v) => { return remap$(v, { - "cluster_name": "clusterName", + "role_name": "roleName", }); }); - /** @internal */ -export type GcpGkeCluster$Outbound = { - cluster_name: string; +export type IlevelAdvancedRole$Outbound = { + role_name: string; }; /** @internal */ -export const GcpGkeCluster$outboundSchema: z.ZodType< - GcpGkeCluster$Outbound, +export const IlevelAdvancedRole$outboundSchema: z.ZodType< + IlevelAdvancedRole$Outbound, z.ZodTypeDef, - GcpGkeCluster + IlevelAdvancedRole > = z.object({ - clusterName: z.string(), + roleName: z.string(), }).transform((v) => { return remap$(v, { - clusterName: "cluster_name", + roleName: "role_name", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpGkeCluster$ { - /** @deprecated use `GcpGkeCluster$inboundSchema` instead. */ - export const inboundSchema = GcpGkeCluster$inboundSchema; - /** @deprecated use `GcpGkeCluster$outboundSchema` instead. */ - export const outboundSchema = GcpGkeCluster$outboundSchema; - /** @deprecated use `GcpGkeCluster$Outbound` instead. */ - export type Outbound = GcpGkeCluster$Outbound; +export function ilevelAdvancedRoleToJSON( + ilevelAdvancedRole: IlevelAdvancedRole, +): string { + return JSON.stringify( + IlevelAdvancedRole$outboundSchema.parse(ilevelAdvancedRole), + ); +} +export function ilevelAdvancedRoleFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => IlevelAdvancedRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'IlevelAdvancedRole' from JSON`, + ); } -export function gcpGkeClusterToJSON(gcpGkeCluster: GcpGkeCluster): string { - return JSON.stringify(GcpGkeCluster$outboundSchema.parse(gcpGkeCluster)); +/** @internal */ +export const TailscaleSsh$inboundSchema: z.ZodType< + TailscaleSsh, + z.ZodTypeDef, + unknown +> = z.object({ + tag_name: z.string(), +}).transform((v) => { + return remap$(v, { + "tag_name": "tagName", + }); +}); +/** @internal */ +export type TailscaleSsh$Outbound = { + tag_name: string; +}; + +/** @internal */ +export const TailscaleSsh$outboundSchema: z.ZodType< + TailscaleSsh$Outbound, + z.ZodTypeDef, + TailscaleSsh +> = z.object({ + tagName: z.string(), +}).transform((v) => { + return remap$(v, { + tagName: "tag_name", + }); +}); + +export function tailscaleSshToJSON(tailscaleSsh: TailscaleSsh): string { + return JSON.stringify(TailscaleSsh$outboundSchema.parse(tailscaleSsh)); +} +export function tailscaleSshFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => TailscaleSsh$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TailscaleSsh' from JSON`, + ); } -export function gcpGkeClusterFromJSON( +/** @internal */ +export const PagerdutyRole$inboundSchema: z.ZodType< + PagerdutyRole, + z.ZodTypeDef, + unknown +> = z.object({ + role_name: z.string(), +}).transform((v) => { + return remap$(v, { + "role_name": "roleName", + }); +}); +/** @internal */ +export type PagerdutyRole$Outbound = { + role_name: string; +}; + +/** @internal */ +export const PagerdutyRole$outboundSchema: z.ZodType< + PagerdutyRole$Outbound, + z.ZodTypeDef, + PagerdutyRole +> = z.object({ + roleName: z.string(), +}).transform((v) => { + return remap$(v, { + roleName: "role_name", + }); +}); + +export function pagerdutyRoleToJSON(pagerdutyRole: PagerdutyRole): string { + return JSON.stringify(PagerdutyRole$outboundSchema.parse(pagerdutyRole)); +} +export function pagerdutyRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpGkeCluster$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpGkeCluster' from JSON`, + (x) => PagerdutyRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'PagerdutyRole' from JSON`, ); } /** @internal */ -export const GcpProject$inboundSchema: z.ZodType< - GcpProject, +export const WorkdayRole$inboundSchema: z.ZodType< + WorkdayRole, z.ZodTypeDef, unknown > = z.object({ - project_id: z.string(), + role_id: z.string(), }).transform((v) => { return remap$(v, { - "project_id": "projectId", + "role_id": "roleId", }); }); - /** @internal */ -export type GcpProject$Outbound = { - project_id: string; +export type WorkdayRole$Outbound = { + role_id: string; }; /** @internal */ -export const GcpProject$outboundSchema: z.ZodType< - GcpProject$Outbound, +export const WorkdayRole$outboundSchema: z.ZodType< + WorkdayRole$Outbound, z.ZodTypeDef, - GcpProject + WorkdayRole > = z.object({ - projectId: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - projectId: "project_id", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpProject$ { - /** @deprecated use `GcpProject$inboundSchema` instead. */ - export const inboundSchema = GcpProject$inboundSchema; - /** @deprecated use `GcpProject$outboundSchema` instead. */ - export const outboundSchema = GcpProject$outboundSchema; - /** @deprecated use `GcpProject$Outbound` instead. */ - export type Outbound = GcpProject$Outbound; -} - -export function gcpProjectToJSON(gcpProject: GcpProject): string { - return JSON.stringify(GcpProject$outboundSchema.parse(gcpProject)); +export function workdayRoleToJSON(workdayRole: WorkdayRole): string { + return JSON.stringify(WorkdayRole$outboundSchema.parse(workdayRole)); } - -export function gcpProjectFromJSON( +export function workdayRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpProject$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpProject' from JSON`, + (x) => WorkdayRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'WorkdayRole' from JSON`, ); } /** @internal */ -export const GcpSqlInstance$inboundSchema: z.ZodType< - GcpSqlInstance, +export const SalesforcePermissionSet$inboundSchema: z.ZodType< + SalesforcePermissionSet, z.ZodTypeDef, unknown > = z.object({ - instance_id: z.string(), - project_id: z.string(), + permission_set_id: z.string(), }).transform((v) => { return remap$(v, { - "instance_id": "instanceId", - "project_id": "projectId", + "permission_set_id": "permissionSetId", }); }); - /** @internal */ -export type GcpSqlInstance$Outbound = { - instance_id: string; - project_id: string; +export type SalesforcePermissionSet$Outbound = { + permission_set_id: string; }; /** @internal */ -export const GcpSqlInstance$outboundSchema: z.ZodType< - GcpSqlInstance$Outbound, +export const SalesforcePermissionSet$outboundSchema: z.ZodType< + SalesforcePermissionSet$Outbound, z.ZodTypeDef, - GcpSqlInstance + SalesforcePermissionSet > = z.object({ - instanceId: z.string(), - projectId: z.string(), + permissionSetId: z.string(), }).transform((v) => { return remap$(v, { - instanceId: "instance_id", - projectId: "project_id", + permissionSetId: "permission_set_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpSqlInstance$ { - /** @deprecated use `GcpSqlInstance$inboundSchema` instead. */ - export const inboundSchema = GcpSqlInstance$inboundSchema; - /** @deprecated use `GcpSqlInstance$outboundSchema` instead. */ - export const outboundSchema = GcpSqlInstance$outboundSchema; - /** @deprecated use `GcpSqlInstance$Outbound` instead. */ - export type Outbound = GcpSqlInstance$Outbound; -} - -export function gcpSqlInstanceToJSON(gcpSqlInstance: GcpSqlInstance): string { - return JSON.stringify(GcpSqlInstance$outboundSchema.parse(gcpSqlInstance)); +export function salesforcePermissionSetToJSON( + salesforcePermissionSet: SalesforcePermissionSet, +): string { + return JSON.stringify( + SalesforcePermissionSet$outboundSchema.parse(salesforcePermissionSet), + ); } - -export function gcpSqlInstanceFromJSON( +export function salesforcePermissionSetFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpSqlInstance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpSqlInstance' from JSON`, + (x) => SalesforcePermissionSet$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SalesforcePermissionSet' from JSON`, ); } /** @internal */ -export const GcpServiceAccount$inboundSchema: z.ZodType< - GcpServiceAccount, +export const SalesforceProfile$inboundSchema: z.ZodType< + SalesforceProfile, z.ZodTypeDef, unknown > = z.object({ - email: z.string(), - service_account_id: z.string(), - project_id: z.string(), + profile_id: z.string(), + user_license_id: z.string(), }).transform((v) => { return remap$(v, { - "service_account_id": "serviceAccountId", - "project_id": "projectId", + "profile_id": "profileId", + "user_license_id": "userLicenseId", }); }); - /** @internal */ -export type GcpServiceAccount$Outbound = { - email: string; - service_account_id: string; - project_id: string; +export type SalesforceProfile$Outbound = { + profile_id: string; + user_license_id: string; }; /** @internal */ -export const GcpServiceAccount$outboundSchema: z.ZodType< - GcpServiceAccount$Outbound, +export const SalesforceProfile$outboundSchema: z.ZodType< + SalesforceProfile$Outbound, z.ZodTypeDef, - GcpServiceAccount + SalesforceProfile > = z.object({ - email: z.string(), - serviceAccountId: z.string(), - projectId: z.string(), + profileId: z.string(), + userLicenseId: z.string(), }).transform((v) => { return remap$(v, { - serviceAccountId: "service_account_id", - projectId: "project_id", + profileId: "profile_id", + userLicenseId: "user_license_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GcpServiceAccount$ { - /** @deprecated use `GcpServiceAccount$inboundSchema` instead. */ - export const inboundSchema = GcpServiceAccount$inboundSchema; - /** @deprecated use `GcpServiceAccount$outboundSchema` instead. */ - export const outboundSchema = GcpServiceAccount$outboundSchema; - /** @deprecated use `GcpServiceAccount$Outbound` instead. */ - export type Outbound = GcpServiceAccount$Outbound; -} - -export function gcpServiceAccountToJSON( - gcpServiceAccount: GcpServiceAccount, +export function salesforceProfileToJSON( + salesforceProfile: SalesforceProfile, ): string { return JSON.stringify( - GcpServiceAccount$outboundSchema.parse(gcpServiceAccount), + SalesforceProfile$outboundSchema.parse(salesforceProfile), ); } - -export function gcpServiceAccountFromJSON( +export function salesforceProfileFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GcpServiceAccount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GcpServiceAccount' from JSON`, + (x) => SalesforceProfile$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SalesforceProfile' from JSON`, ); } /** @internal */ -export const GoogleWorkspaceRole$inboundSchema: z.ZodType< - GoogleWorkspaceRole, +export const SalesforceRole$inboundSchema: z.ZodType< + SalesforceRole, z.ZodTypeDef, unknown > = z.object({ @@ -1671,17 +3401,16 @@ export const GoogleWorkspaceRole$inboundSchema: z.ZodType< "role_id": "roleId", }); }); - /** @internal */ -export type GoogleWorkspaceRole$Outbound = { +export type SalesforceRole$Outbound = { role_id: string; }; /** @internal */ -export const GoogleWorkspaceRole$outboundSchema: z.ZodType< - GoogleWorkspaceRole$Outbound, +export const SalesforceRole$outboundSchema: z.ZodType< + SalesforceRole$Outbound, z.ZodTypeDef, - GoogleWorkspaceRole + SalesforceRole > = z.object({ roleId: z.string(), }).transform((v) => { @@ -1690,633 +3419,481 @@ export const GoogleWorkspaceRole$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GoogleWorkspaceRole$ { - /** @deprecated use `GoogleWorkspaceRole$inboundSchema` instead. */ - export const inboundSchema = GoogleWorkspaceRole$inboundSchema; - /** @deprecated use `GoogleWorkspaceRole$outboundSchema` instead. */ - export const outboundSchema = GoogleWorkspaceRole$outboundSchema; - /** @deprecated use `GoogleWorkspaceRole$Outbound` instead. */ - export type Outbound = GoogleWorkspaceRole$Outbound; -} - -export function googleWorkspaceRoleToJSON( - googleWorkspaceRole: GoogleWorkspaceRole, -): string { - return JSON.stringify( - GoogleWorkspaceRole$outboundSchema.parse(googleWorkspaceRole), - ); +export function salesforceRoleToJSON(salesforceRole: SalesforceRole): string { + return JSON.stringify(SalesforceRole$outboundSchema.parse(salesforceRole)); } - -export function googleWorkspaceRoleFromJSON( +export function salesforceRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GoogleWorkspaceRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GoogleWorkspaceRole' from JSON`, + (x) => SalesforceRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SalesforceRole' from JSON`, ); } /** @internal */ -export const GithubRepo$inboundSchema: z.ZodType< - GithubRepo, +export const TeleportRole$inboundSchema: z.ZodType< + TeleportRole, z.ZodTypeDef, unknown > = z.object({ - repo_id: z.string().optional(), - repo_name: z.string(), + role_name: z.string(), }).transform((v) => { return remap$(v, { - "repo_id": "repoId", - "repo_name": "repoName", + "role_name": "roleName", }); }); - /** @internal */ -export type GithubRepo$Outbound = { - repo_id?: string | undefined; - repo_name: string; +export type TeleportRole$Outbound = { + role_name: string; }; /** @internal */ -export const GithubRepo$outboundSchema: z.ZodType< - GithubRepo$Outbound, +export const TeleportRole$outboundSchema: z.ZodType< + TeleportRole$Outbound, z.ZodTypeDef, - GithubRepo + TeleportRole > = z.object({ - repoId: z.string().optional(), - repoName: z.string(), + roleName: z.string(), }).transform((v) => { return remap$(v, { - repoId: "repo_id", - repoName: "repo_name", + roleName: "role_name", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GithubRepo$ { - /** @deprecated use `GithubRepo$inboundSchema` instead. */ - export const inboundSchema = GithubRepo$inboundSchema; - /** @deprecated use `GithubRepo$outboundSchema` instead. */ - export const outboundSchema = GithubRepo$outboundSchema; - /** @deprecated use `GithubRepo$Outbound` instead. */ - export type Outbound = GithubRepo$Outbound; -} - -export function githubRepoToJSON(githubRepo: GithubRepo): string { - return JSON.stringify(GithubRepo$outboundSchema.parse(githubRepo)); +export function teleportRoleToJSON(teleportRole: TeleportRole): string { + return JSON.stringify(TeleportRole$outboundSchema.parse(teleportRole)); } - -export function githubRepoFromJSON( +export function teleportRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GithubRepo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GithubRepo' from JSON`, + (x) => TeleportRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'TeleportRole' from JSON`, ); } /** @internal */ -export const GitlabProject$inboundSchema: z.ZodType< - GitlabProject, +export const DatastaxAstraRole$inboundSchema: z.ZodType< + DatastaxAstraRole, z.ZodTypeDef, unknown > = z.object({ - project_id: z.string(), + role_id: z.string(), }).transform((v) => { return remap$(v, { - "project_id": "projectId", + "role_id": "roleId", }); }); - /** @internal */ -export type GitlabProject$Outbound = { - project_id: string; +export type DatastaxAstraRole$Outbound = { + role_id: string; }; /** @internal */ -export const GitlabProject$outboundSchema: z.ZodType< - GitlabProject$Outbound, +export const DatastaxAstraRole$outboundSchema: z.ZodType< + DatastaxAstraRole$Outbound, z.ZodTypeDef, - GitlabProject + DatastaxAstraRole > = z.object({ - projectId: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - projectId: "project_id", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GitlabProject$ { - /** @deprecated use `GitlabProject$inboundSchema` instead. */ - export const inboundSchema = GitlabProject$inboundSchema; - /** @deprecated use `GitlabProject$outboundSchema` instead. */ - export const outboundSchema = GitlabProject$outboundSchema; - /** @deprecated use `GitlabProject$Outbound` instead. */ - export type Outbound = GitlabProject$Outbound; -} - -export function gitlabProjectToJSON(gitlabProject: GitlabProject): string { - return JSON.stringify(GitlabProject$outboundSchema.parse(gitlabProject)); +export function datastaxAstraRoleToJSON( + datastaxAstraRole: DatastaxAstraRole, +): string { + return JSON.stringify( + DatastaxAstraRole$outboundSchema.parse(datastaxAstraRole), + ); } - -export function gitlabProjectFromJSON( +export function datastaxAstraRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => GitlabProject$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GitlabProject' from JSON`, + (x) => DatastaxAstraRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DatastaxAstraRole' from JSON`, ); } /** @internal */ -export const OktaApp$inboundSchema: z.ZodType = - z.object({ - app_id: z.string(), - }).transform((v) => { - return remap$(v, { - "app_id": "appId", - }); +export const CoupaRole$inboundSchema: z.ZodType< + CoupaRole, + z.ZodTypeDef, + unknown +> = z.object({ + role_id: z.string(), +}).transform((v) => { + return remap$(v, { + "role_id": "roleId", }); - +}); /** @internal */ -export type OktaApp$Outbound = { - app_id: string; +export type CoupaRole$Outbound = { + role_id: string; }; /** @internal */ -export const OktaApp$outboundSchema: z.ZodType< - OktaApp$Outbound, +export const CoupaRole$outboundSchema: z.ZodType< + CoupaRole$Outbound, z.ZodTypeDef, - OktaApp + CoupaRole > = z.object({ - appId: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - appId: "app_id", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OktaApp$ { - /** @deprecated use `OktaApp$inboundSchema` instead. */ - export const inboundSchema = OktaApp$inboundSchema; - /** @deprecated use `OktaApp$outboundSchema` instead. */ - export const outboundSchema = OktaApp$outboundSchema; - /** @deprecated use `OktaApp$Outbound` instead. */ - export type Outbound = OktaApp$Outbound; -} - -export function oktaAppToJSON(oktaApp: OktaApp): string { - return JSON.stringify(OktaApp$outboundSchema.parse(oktaApp)); +export function coupaRoleToJSON(coupaRole: CoupaRole): string { + return JSON.stringify(CoupaRole$outboundSchema.parse(coupaRole)); } - -export function oktaAppFromJSON( +export function coupaRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OktaApp$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OktaApp' from JSON`, + (x) => CoupaRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CoupaRole' from JSON`, ); } /** @internal */ -export const OktaStandardRole$inboundSchema: z.ZodType< - OktaStandardRole, +export const CursorOrganization$inboundSchema: z.ZodType< + CursorOrganization, z.ZodTypeDef, unknown > = z.object({ - role_type: z.string(), + org_id: z.string(), }).transform((v) => { return remap$(v, { - "role_type": "roleType", + "org_id": "orgId", }); }); - /** @internal */ -export type OktaStandardRole$Outbound = { - role_type: string; +export type CursorOrganization$Outbound = { + org_id: string; }; /** @internal */ -export const OktaStandardRole$outboundSchema: z.ZodType< - OktaStandardRole$Outbound, +export const CursorOrganization$outboundSchema: z.ZodType< + CursorOrganization$Outbound, z.ZodTypeDef, - OktaStandardRole + CursorOrganization > = z.object({ - roleType: z.string(), + orgId: z.string(), }).transform((v) => { return remap$(v, { - roleType: "role_type", + orgId: "org_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OktaStandardRole$ { - /** @deprecated use `OktaStandardRole$inboundSchema` instead. */ - export const inboundSchema = OktaStandardRole$inboundSchema; - /** @deprecated use `OktaStandardRole$outboundSchema` instead. */ - export const outboundSchema = OktaStandardRole$outboundSchema; - /** @deprecated use `OktaStandardRole$Outbound` instead. */ - export type Outbound = OktaStandardRole$Outbound; -} - -export function oktaStandardRoleToJSON( - oktaStandardRole: OktaStandardRole, +export function cursorOrganizationToJSON( + cursorOrganization: CursorOrganization, ): string { return JSON.stringify( - OktaStandardRole$outboundSchema.parse(oktaStandardRole), + CursorOrganization$outboundSchema.parse(cursorOrganization), ); } - -export function oktaStandardRoleFromJSON( +export function cursorOrganizationFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OktaStandardRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OktaStandardRole' from JSON`, + (x) => CursorOrganization$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CursorOrganization' from JSON`, ); } /** @internal */ -export const OktaCustomRole$inboundSchema: z.ZodType< - OktaCustomRole, +export const OpenaiPlatformProject$inboundSchema: z.ZodType< + OpenaiPlatformProject, z.ZodTypeDef, unknown > = z.object({ - role_id: z.string(), + project_id: z.string(), }).transform((v) => { return remap$(v, { - "role_id": "roleId", + "project_id": "projectId", }); }); - /** @internal */ -export type OktaCustomRole$Outbound = { - role_id: string; +export type OpenaiPlatformProject$Outbound = { + project_id: string; }; /** @internal */ -export const OktaCustomRole$outboundSchema: z.ZodType< - OktaCustomRole$Outbound, +export const OpenaiPlatformProject$outboundSchema: z.ZodType< + OpenaiPlatformProject$Outbound, z.ZodTypeDef, - OktaCustomRole + OpenaiPlatformProject > = z.object({ - roleId: z.string(), + projectId: z.string(), }).transform((v) => { return remap$(v, { - roleId: "role_id", + projectId: "project_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OktaCustomRole$ { - /** @deprecated use `OktaCustomRole$inboundSchema` instead. */ - export const inboundSchema = OktaCustomRole$inboundSchema; - /** @deprecated use `OktaCustomRole$outboundSchema` instead. */ - export const outboundSchema = OktaCustomRole$outboundSchema; - /** @deprecated use `OktaCustomRole$Outbound` instead. */ - export type Outbound = OktaCustomRole$Outbound; -} - -export function oktaCustomRoleToJSON(oktaCustomRole: OktaCustomRole): string { - return JSON.stringify(OktaCustomRole$outboundSchema.parse(oktaCustomRole)); +export function openaiPlatformProjectToJSON( + openaiPlatformProject: OpenaiPlatformProject, +): string { + return JSON.stringify( + OpenaiPlatformProject$outboundSchema.parse(openaiPlatformProject), + ); } - -export function oktaCustomRoleFromJSON( +export function openaiPlatformProjectFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => OktaCustomRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OktaCustomRole' from JSON`, + (x) => OpenaiPlatformProject$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OpenaiPlatformProject' from JSON`, ); } /** @internal */ -export const PagerdutyRole$inboundSchema: z.ZodType< - PagerdutyRole, +export const OpenaiPlatformServiceAccount$inboundSchema: z.ZodType< + OpenaiPlatformServiceAccount, z.ZodTypeDef, unknown > = z.object({ - role_name: z.string(), + project_id: z.string(), + service_account_id: z.string(), }).transform((v) => { return remap$(v, { - "role_name": "roleName", + "project_id": "projectId", + "service_account_id": "serviceAccountId", }); }); - /** @internal */ -export type PagerdutyRole$Outbound = { - role_name: string; +export type OpenaiPlatformServiceAccount$Outbound = { + project_id: string; + service_account_id: string; }; /** @internal */ -export const PagerdutyRole$outboundSchema: z.ZodType< - PagerdutyRole$Outbound, +export const OpenaiPlatformServiceAccount$outboundSchema: z.ZodType< + OpenaiPlatformServiceAccount$Outbound, z.ZodTypeDef, - PagerdutyRole + OpenaiPlatformServiceAccount > = z.object({ - roleName: z.string(), + projectId: z.string(), + serviceAccountId: z.string(), }).transform((v) => { return remap$(v, { - roleName: "role_name", + projectId: "project_id", + serviceAccountId: "service_account_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PagerdutyRole$ { - /** @deprecated use `PagerdutyRole$inboundSchema` instead. */ - export const inboundSchema = PagerdutyRole$inboundSchema; - /** @deprecated use `PagerdutyRole$outboundSchema` instead. */ - export const outboundSchema = PagerdutyRole$outboundSchema; - /** @deprecated use `PagerdutyRole$Outbound` instead. */ - export type Outbound = PagerdutyRole$Outbound; -} - -export function pagerdutyRoleToJSON(pagerdutyRole: PagerdutyRole): string { - return JSON.stringify(PagerdutyRole$outboundSchema.parse(pagerdutyRole)); +export function openaiPlatformServiceAccountToJSON( + openaiPlatformServiceAccount: OpenaiPlatformServiceAccount, +): string { + return JSON.stringify( + OpenaiPlatformServiceAccount$outboundSchema.parse( + openaiPlatformServiceAccount, + ), + ); } - -export function pagerdutyRoleFromJSON( +export function openaiPlatformServiceAccountFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => PagerdutyRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PagerdutyRole' from JSON`, + (x) => OpenaiPlatformServiceAccount$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OpenaiPlatformServiceAccount' from JSON`, ); } /** @internal */ -export const SalesforcePermissionSet$inboundSchema: z.ZodType< - SalesforcePermissionSet, +export const AnthropicWorkspace$inboundSchema: z.ZodType< + AnthropicWorkspace, z.ZodTypeDef, unknown > = z.object({ - permission_set_id: z.string(), + workspace_id: z.string(), }).transform((v) => { return remap$(v, { - "permission_set_id": "permissionSetId", + "workspace_id": "workspaceId", }); }); - /** @internal */ -export type SalesforcePermissionSet$Outbound = { - permission_set_id: string; +export type AnthropicWorkspace$Outbound = { + workspace_id: string; }; /** @internal */ -export const SalesforcePermissionSet$outboundSchema: z.ZodType< - SalesforcePermissionSet$Outbound, +export const AnthropicWorkspace$outboundSchema: z.ZodType< + AnthropicWorkspace$Outbound, z.ZodTypeDef, - SalesforcePermissionSet + AnthropicWorkspace > = z.object({ - permissionSetId: z.string(), + workspaceId: z.string(), }).transform((v) => { return remap$(v, { - permissionSetId: "permission_set_id", + workspaceId: "workspace_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SalesforcePermissionSet$ { - /** @deprecated use `SalesforcePermissionSet$inboundSchema` instead. */ - export const inboundSchema = SalesforcePermissionSet$inboundSchema; - /** @deprecated use `SalesforcePermissionSet$outboundSchema` instead. */ - export const outboundSchema = SalesforcePermissionSet$outboundSchema; - /** @deprecated use `SalesforcePermissionSet$Outbound` instead. */ - export type Outbound = SalesforcePermissionSet$Outbound; -} - -export function salesforcePermissionSetToJSON( - salesforcePermissionSet: SalesforcePermissionSet, +export function anthropicWorkspaceToJSON( + anthropicWorkspace: AnthropicWorkspace, ): string { return JSON.stringify( - SalesforcePermissionSet$outboundSchema.parse(salesforcePermissionSet), + AnthropicWorkspace$outboundSchema.parse(anthropicWorkspace), ); } - -export function salesforcePermissionSetFromJSON( +export function anthropicWorkspaceFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => SalesforcePermissionSet$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SalesforcePermissionSet' from JSON`, + (x) => AnthropicWorkspace$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AnthropicWorkspace' from JSON`, ); } /** @internal */ -export const SalesforceProfile$inboundSchema: z.ZodType< - SalesforceProfile, +export const OracleFusionRole$inboundSchema: z.ZodType< + OracleFusionRole, z.ZodTypeDef, unknown > = z.object({ - profile_id: z.string(), - user_license_id: z.string(), + role_id: z.string(), }).transform((v) => { return remap$(v, { - "profile_id": "profileId", - "user_license_id": "userLicenseId", + "role_id": "roleId", }); }); - /** @internal */ -export type SalesforceProfile$Outbound = { - profile_id: string; - user_license_id: string; +export type OracleFusionRole$Outbound = { + role_id: string; }; /** @internal */ -export const SalesforceProfile$outboundSchema: z.ZodType< - SalesforceProfile$Outbound, +export const OracleFusionRole$outboundSchema: z.ZodType< + OracleFusionRole$Outbound, z.ZodTypeDef, - SalesforceProfile + OracleFusionRole > = z.object({ - profileId: z.string(), - userLicenseId: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - profileId: "profile_id", - userLicenseId: "user_license_id", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SalesforceProfile$ { - /** @deprecated use `SalesforceProfile$inboundSchema` instead. */ - export const inboundSchema = SalesforceProfile$inboundSchema; - /** @deprecated use `SalesforceProfile$outboundSchema` instead. */ - export const outboundSchema = SalesforceProfile$outboundSchema; - /** @deprecated use `SalesforceProfile$Outbound` instead. */ - export type Outbound = SalesforceProfile$Outbound; -} - -export function salesforceProfileToJSON( - salesforceProfile: SalesforceProfile, +export function oracleFusionRoleToJSON( + oracleFusionRole: OracleFusionRole, ): string { return JSON.stringify( - SalesforceProfile$outboundSchema.parse(salesforceProfile), + OracleFusionRole$outboundSchema.parse(oracleFusionRole), ); } - -export function salesforceProfileFromJSON( +export function oracleFusionRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => SalesforceProfile$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SalesforceProfile' from JSON`, + (x) => OracleFusionRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'OracleFusionRole' from JSON`, ); } /** @internal */ -export const SalesforceRole$inboundSchema: z.ZodType< - SalesforceRole, +export const DevinOrganization$inboundSchema: z.ZodType< + DevinOrganization, z.ZodTypeDef, unknown > = z.object({ - role_id: z.string(), + org_id: z.string(), }).transform((v) => { return remap$(v, { - "role_id": "roleId", + "org_id": "orgId", }); }); - /** @internal */ -export type SalesforceRole$Outbound = { - role_id: string; +export type DevinOrganization$Outbound = { + org_id: string; }; /** @internal */ -export const SalesforceRole$outboundSchema: z.ZodType< - SalesforceRole$Outbound, +export const DevinOrganization$outboundSchema: z.ZodType< + DevinOrganization$Outbound, z.ZodTypeDef, - SalesforceRole + DevinOrganization > = z.object({ - roleId: z.string(), + orgId: z.string(), }).transform((v) => { return remap$(v, { - roleId: "role_id", + orgId: "org_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SalesforceRole$ { - /** @deprecated use `SalesforceRole$inboundSchema` instead. */ - export const inboundSchema = SalesforceRole$inboundSchema; - /** @deprecated use `SalesforceRole$outboundSchema` instead. */ - export const outboundSchema = SalesforceRole$outboundSchema; - /** @deprecated use `SalesforceRole$Outbound` instead. */ - export type Outbound = SalesforceRole$Outbound; -} - -export function salesforceRoleToJSON(salesforceRole: SalesforceRole): string { - return JSON.stringify(SalesforceRole$outboundSchema.parse(salesforceRole)); +export function devinOrganizationToJSON( + devinOrganization: DevinOrganization, +): string { + return JSON.stringify( + DevinOrganization$outboundSchema.parse(devinOrganization), + ); } - -export function salesforceRoleFromJSON( +export function devinOrganizationFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => SalesforceRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SalesforceRole' from JSON`, + (x) => DevinOrganization$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DevinOrganization' from JSON`, ); } /** @internal */ -export const TeleportRole$inboundSchema: z.ZodType< - TeleportRole, +export const DevinRole$inboundSchema: z.ZodType< + DevinRole, z.ZodTypeDef, unknown > = z.object({ - role_name: z.string(), + role_id: z.string(), }).transform((v) => { return remap$(v, { - "role_name": "roleName", + "role_id": "roleId", }); }); - /** @internal */ -export type TeleportRole$Outbound = { - role_name: string; +export type DevinRole$Outbound = { + role_id: string; }; /** @internal */ -export const TeleportRole$outboundSchema: z.ZodType< - TeleportRole$Outbound, +export const DevinRole$outboundSchema: z.ZodType< + DevinRole$Outbound, z.ZodTypeDef, - TeleportRole + DevinRole > = z.object({ - roleName: z.string(), + roleId: z.string(), }).transform((v) => { return remap$(v, { - roleName: "role_name", + roleId: "role_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleportRole$ { - /** @deprecated use `TeleportRole$inboundSchema` instead. */ - export const inboundSchema = TeleportRole$inboundSchema; - /** @deprecated use `TeleportRole$outboundSchema` instead. */ - export const outboundSchema = TeleportRole$outboundSchema; - /** @deprecated use `TeleportRole$Outbound` instead. */ - export type Outbound = TeleportRole$Outbound; -} - -export function teleportRoleToJSON(teleportRole: TeleportRole): string { - return JSON.stringify(TeleportRole$outboundSchema.parse(teleportRole)); +export function devinRoleToJSON(devinRole: DevinRole): string { + return JSON.stringify(DevinRole$outboundSchema.parse(devinRole)); } - -export function teleportRoleFromJSON( +export function devinRoleFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => TeleportRole$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleportRole' from JSON`, + (x) => DevinRole$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DevinRole' from JSON`, ); } @@ -2326,12 +3903,41 @@ export const ResourceRemoteInfo$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + databricks_account_service_principal: z.lazy(() => + DatabricksAccountServicePrincipal$inboundSchema + ).optional(), + azure_subscription: z.lazy(() => AzureSubscription$inboundSchema).optional(), + azure_resource_group: z.lazy(() => AzureResourceGroup$inboundSchema) + .optional(), + azure_management_group: z.lazy(() => AzureManagementGroup$inboundSchema) + .optional(), + azure_virtual_machine: z.lazy(() => AzureVirtualMachine$inboundSchema) + .optional(), + azure_storage_account: z.lazy(() => AzureStorageAccount$inboundSchema) + .optional(), + azure_storage_container: z.lazy(() => AzureStorageContainer$inboundSchema) + .optional(), + azure_sql_server: z.lazy(() => AzureSqlServer$inboundSchema).optional(), + azure_sql_database: z.lazy(() => AzureSqlDatabase$inboundSchema).optional(), + azure_sql_managed_instance: z.lazy(() => + AzureSqlManagedInstance$inboundSchema + ).optional(), + azure_sql_managed_database: z.lazy(() => + AzureSqlManagedDatabase$inboundSchema + ).optional(), + azure_user_assigned_managed_identity: z.lazy(() => + AzureUserAssignedManagedIdentity$inboundSchema + ).optional(), + azure_enterprise_app: z.lazy(() => AzureEnterpriseApp$inboundSchema) + .optional(), + azure_entra_id_role: z.lazy(() => AzureEntraIdRole$inboundSchema).optional(), aws_organizational_unit: z.lazy(() => AwsOrganizationalUnit$inboundSchema) .optional(), aws_account: z.lazy(() => AwsAccount$inboundSchema).optional(), aws_permission_set: z.lazy(() => AwsPermissionSet$inboundSchema).optional(), aws_iam_role: z.lazy(() => AwsIamRole$inboundSchema).optional(), aws_ec2_instance: z.lazy(() => AwsEc2Instance$inboundSchema).optional(), + aws_rds_cluster: z.lazy(() => AwsRdsCluster$inboundSchema).optional(), aws_rds_instance: z.lazy(() => AwsRdsInstance$inboundSchema).optional(), aws_eks_cluster: z.lazy(() => AwsEksCluster$inboundSchema).optional(), custom_connector: z.lazy(() => CustomConnector$inboundSchema).optional(), @@ -2350,23 +3956,61 @@ export const ResourceRemoteInfo$inboundSchema: z.ZodType< google_workspace_role: z.lazy(() => GoogleWorkspaceRole$inboundSchema) .optional(), github_repo: z.lazy(() => GithubRepo$inboundSchema).optional(), + github_org_role: z.lazy(() => GithubOrgRole$inboundSchema).optional(), + github_org: z.lazy(() => GithubOrg$inboundSchema).optional(), gitlab_project: z.lazy(() => GitlabProject$inboundSchema).optional(), okta_app: z.lazy(() => OktaApp$inboundSchema).optional(), okta_standard_role: z.lazy(() => OktaStandardRole$inboundSchema).optional(), okta_custom_role: z.lazy(() => OktaCustomRole$inboundSchema).optional(), + snowflake_database: z.lazy(() => SnowflakeDatabase$inboundSchema).optional(), + snowflake_schema: z.lazy(() => SnowflakeSchema$inboundSchema).optional(), + snowflake_table: z.lazy(() => SnowflakeTable$inboundSchema).optional(), + ilevel_advanced_role: z.lazy(() => IlevelAdvancedRole$inboundSchema) + .optional(), + tailscale_ssh: z.lazy(() => TailscaleSsh$inboundSchema).optional(), pagerduty_role: z.lazy(() => PagerdutyRole$inboundSchema).optional(), + workday_role: z.lazy(() => WorkdayRole$inboundSchema).optional(), salesforce_permission_set: z.lazy(() => SalesforcePermissionSet$inboundSchema) .optional(), salesforce_profile: z.lazy(() => SalesforceProfile$inboundSchema).optional(), salesforce_role: z.lazy(() => SalesforceRole$inboundSchema).optional(), teleport_role: z.lazy(() => TeleportRole$inboundSchema).optional(), + datastax_astra_role: z.lazy(() => DatastaxAstraRole$inboundSchema).optional(), + coupa_role: z.lazy(() => CoupaRole$inboundSchema).optional(), + cursor_organization: z.lazy(() => CursorOrganization$inboundSchema) + .optional(), + openai_platform_project: z.lazy(() => OpenaiPlatformProject$inboundSchema) + .optional(), + openai_platform_service_account: z.lazy(() => + OpenaiPlatformServiceAccount$inboundSchema + ).optional(), + anthropic_workspace: z.lazy(() => AnthropicWorkspace$inboundSchema) + .optional(), + oracle_fusion_role: z.lazy(() => OracleFusionRole$inboundSchema).optional(), + devin_organization: z.lazy(() => DevinOrganization$inboundSchema).optional(), + devin_role: z.lazy(() => DevinRole$inboundSchema).optional(), }).transform((v) => { return remap$(v, { + "databricks_account_service_principal": "databricksAccountServicePrincipal", + "azure_subscription": "azureSubscription", + "azure_resource_group": "azureResourceGroup", + "azure_management_group": "azureManagementGroup", + "azure_virtual_machine": "azureVirtualMachine", + "azure_storage_account": "azureStorageAccount", + "azure_storage_container": "azureStorageContainer", + "azure_sql_server": "azureSqlServer", + "azure_sql_database": "azureSqlDatabase", + "azure_sql_managed_instance": "azureSqlManagedInstance", + "azure_sql_managed_database": "azureSqlManagedDatabase", + "azure_user_assigned_managed_identity": "azureUserAssignedManagedIdentity", + "azure_enterprise_app": "azureEnterpriseApp", + "azure_entra_id_role": "azureEntraIdRole", "aws_organizational_unit": "awsOrganizationalUnit", "aws_account": "awsAccount", "aws_permission_set": "awsPermissionSet", "aws_iam_role": "awsIamRole", "aws_ec2_instance": "awsEc2Instance", + "aws_rds_cluster": "awsRdsCluster", "aws_rds_instance": "awsRdsInstance", "aws_eks_cluster": "awsEksCluster", "custom_connector": "customConnector", @@ -2382,25 +4026,60 @@ export const ResourceRemoteInfo$inboundSchema: z.ZodType< "gcp_service_account": "gcpServiceAccount", "google_workspace_role": "googleWorkspaceRole", "github_repo": "githubRepo", + "github_org_role": "githubOrgRole", + "github_org": "githubOrg", "gitlab_project": "gitlabProject", "okta_app": "oktaApp", "okta_standard_role": "oktaStandardRole", "okta_custom_role": "oktaCustomRole", + "snowflake_database": "snowflakeDatabase", + "snowflake_schema": "snowflakeSchema", + "snowflake_table": "snowflakeTable", + "ilevel_advanced_role": "ilevelAdvancedRole", + "tailscale_ssh": "tailscaleSsh", "pagerduty_role": "pagerdutyRole", + "workday_role": "workdayRole", "salesforce_permission_set": "salesforcePermissionSet", "salesforce_profile": "salesforceProfile", "salesforce_role": "salesforceRole", "teleport_role": "teleportRole", + "datastax_astra_role": "datastaxAstraRole", + "coupa_role": "coupaRole", + "cursor_organization": "cursorOrganization", + "openai_platform_project": "openaiPlatformProject", + "openai_platform_service_account": "openaiPlatformServiceAccount", + "anthropic_workspace": "anthropicWorkspace", + "oracle_fusion_role": "oracleFusionRole", + "devin_organization": "devinOrganization", + "devin_role": "devinRole", }); }); - /** @internal */ export type ResourceRemoteInfo$Outbound = { + databricks_account_service_principal?: + | DatabricksAccountServicePrincipal$Outbound + | undefined; + azure_subscription?: AzureSubscription$Outbound | undefined; + azure_resource_group?: AzureResourceGroup$Outbound | undefined; + azure_management_group?: AzureManagementGroup$Outbound | undefined; + azure_virtual_machine?: AzureVirtualMachine$Outbound | undefined; + azure_storage_account?: AzureStorageAccount$Outbound | undefined; + azure_storage_container?: AzureStorageContainer$Outbound | undefined; + azure_sql_server?: AzureSqlServer$Outbound | undefined; + azure_sql_database?: AzureSqlDatabase$Outbound | undefined; + azure_sql_managed_instance?: AzureSqlManagedInstance$Outbound | undefined; + azure_sql_managed_database?: AzureSqlManagedDatabase$Outbound | undefined; + azure_user_assigned_managed_identity?: + | AzureUserAssignedManagedIdentity$Outbound + | undefined; + azure_enterprise_app?: AzureEnterpriseApp$Outbound | undefined; + azure_entra_id_role?: AzureEntraIdRole$Outbound | undefined; aws_organizational_unit?: AwsOrganizationalUnit$Outbound | undefined; aws_account?: AwsAccount$Outbound | undefined; aws_permission_set?: AwsPermissionSet$Outbound | undefined; aws_iam_role?: AwsIamRole$Outbound | undefined; aws_ec2_instance?: AwsEc2Instance$Outbound | undefined; + aws_rds_cluster?: AwsRdsCluster$Outbound | undefined; aws_rds_instance?: AwsRdsInstance$Outbound | undefined; aws_eks_cluster?: AwsEksCluster$Outbound | undefined; custom_connector?: CustomConnector$Outbound | undefined; @@ -2416,15 +4095,34 @@ export type ResourceRemoteInfo$Outbound = { gcp_service_account?: GcpServiceAccount$Outbound | undefined; google_workspace_role?: GoogleWorkspaceRole$Outbound | undefined; github_repo?: GithubRepo$Outbound | undefined; + github_org_role?: GithubOrgRole$Outbound | undefined; + github_org?: GithubOrg$Outbound | undefined; gitlab_project?: GitlabProject$Outbound | undefined; okta_app?: OktaApp$Outbound | undefined; okta_standard_role?: OktaStandardRole$Outbound | undefined; okta_custom_role?: OktaCustomRole$Outbound | undefined; + snowflake_database?: SnowflakeDatabase$Outbound | undefined; + snowflake_schema?: SnowflakeSchema$Outbound | undefined; + snowflake_table?: SnowflakeTable$Outbound | undefined; + ilevel_advanced_role?: IlevelAdvancedRole$Outbound | undefined; + tailscale_ssh?: TailscaleSsh$Outbound | undefined; pagerduty_role?: PagerdutyRole$Outbound | undefined; + workday_role?: WorkdayRole$Outbound | undefined; salesforce_permission_set?: SalesforcePermissionSet$Outbound | undefined; salesforce_profile?: SalesforceProfile$Outbound | undefined; salesforce_role?: SalesforceRole$Outbound | undefined; teleport_role?: TeleportRole$Outbound | undefined; + datastax_astra_role?: DatastaxAstraRole$Outbound | undefined; + coupa_role?: CoupaRole$Outbound | undefined; + cursor_organization?: CursorOrganization$Outbound | undefined; + openai_platform_project?: OpenaiPlatformProject$Outbound | undefined; + openai_platform_service_account?: + | OpenaiPlatformServiceAccount$Outbound + | undefined; + anthropic_workspace?: AnthropicWorkspace$Outbound | undefined; + oracle_fusion_role?: OracleFusionRole$Outbound | undefined; + devin_organization?: DevinOrganization$Outbound | undefined; + devin_role?: DevinRole$Outbound | undefined; }; /** @internal */ @@ -2433,12 +4131,39 @@ export const ResourceRemoteInfo$outboundSchema: z.ZodType< z.ZodTypeDef, ResourceRemoteInfo > = z.object({ + databricksAccountServicePrincipal: z.lazy(() => + DatabricksAccountServicePrincipal$outboundSchema + ).optional(), + azureSubscription: z.lazy(() => AzureSubscription$outboundSchema).optional(), + azureResourceGroup: z.lazy(() => AzureResourceGroup$outboundSchema) + .optional(), + azureManagementGroup: z.lazy(() => AzureManagementGroup$outboundSchema) + .optional(), + azureVirtualMachine: z.lazy(() => AzureVirtualMachine$outboundSchema) + .optional(), + azureStorageAccount: z.lazy(() => AzureStorageAccount$outboundSchema) + .optional(), + azureStorageContainer: z.lazy(() => AzureStorageContainer$outboundSchema) + .optional(), + azureSqlServer: z.lazy(() => AzureSqlServer$outboundSchema).optional(), + azureSqlDatabase: z.lazy(() => AzureSqlDatabase$outboundSchema).optional(), + azureSqlManagedInstance: z.lazy(() => AzureSqlManagedInstance$outboundSchema) + .optional(), + azureSqlManagedDatabase: z.lazy(() => AzureSqlManagedDatabase$outboundSchema) + .optional(), + azureUserAssignedManagedIdentity: z.lazy(() => + AzureUserAssignedManagedIdentity$outboundSchema + ).optional(), + azureEnterpriseApp: z.lazy(() => AzureEnterpriseApp$outboundSchema) + .optional(), + azureEntraIdRole: z.lazy(() => AzureEntraIdRole$outboundSchema).optional(), awsOrganizationalUnit: z.lazy(() => AwsOrganizationalUnit$outboundSchema) .optional(), awsAccount: z.lazy(() => AwsAccount$outboundSchema).optional(), awsPermissionSet: z.lazy(() => AwsPermissionSet$outboundSchema).optional(), awsIamRole: z.lazy(() => AwsIamRole$outboundSchema).optional(), awsEc2Instance: z.lazy(() => AwsEc2Instance$outboundSchema).optional(), + awsRdsCluster: z.lazy(() => AwsRdsCluster$outboundSchema).optional(), awsRdsInstance: z.lazy(() => AwsRdsInstance$outboundSchema).optional(), awsEksCluster: z.lazy(() => AwsEksCluster$outboundSchema).optional(), customConnector: z.lazy(() => CustomConnector$outboundSchema).optional(), @@ -2457,23 +4182,61 @@ export const ResourceRemoteInfo$outboundSchema: z.ZodType< googleWorkspaceRole: z.lazy(() => GoogleWorkspaceRole$outboundSchema) .optional(), githubRepo: z.lazy(() => GithubRepo$outboundSchema).optional(), + githubOrgRole: z.lazy(() => GithubOrgRole$outboundSchema).optional(), + githubOrg: z.lazy(() => GithubOrg$outboundSchema).optional(), gitlabProject: z.lazy(() => GitlabProject$outboundSchema).optional(), oktaApp: z.lazy(() => OktaApp$outboundSchema).optional(), oktaStandardRole: z.lazy(() => OktaStandardRole$outboundSchema).optional(), oktaCustomRole: z.lazy(() => OktaCustomRole$outboundSchema).optional(), + snowflakeDatabase: z.lazy(() => SnowflakeDatabase$outboundSchema).optional(), + snowflakeSchema: z.lazy(() => SnowflakeSchema$outboundSchema).optional(), + snowflakeTable: z.lazy(() => SnowflakeTable$outboundSchema).optional(), + ilevelAdvancedRole: z.lazy(() => IlevelAdvancedRole$outboundSchema) + .optional(), + tailscaleSsh: z.lazy(() => TailscaleSsh$outboundSchema).optional(), pagerdutyRole: z.lazy(() => PagerdutyRole$outboundSchema).optional(), + workdayRole: z.lazy(() => WorkdayRole$outboundSchema).optional(), salesforcePermissionSet: z.lazy(() => SalesforcePermissionSet$outboundSchema) .optional(), salesforceProfile: z.lazy(() => SalesforceProfile$outboundSchema).optional(), salesforceRole: z.lazy(() => SalesforceRole$outboundSchema).optional(), teleportRole: z.lazy(() => TeleportRole$outboundSchema).optional(), + datastaxAstraRole: z.lazy(() => DatastaxAstraRole$outboundSchema).optional(), + coupaRole: z.lazy(() => CoupaRole$outboundSchema).optional(), + cursorOrganization: z.lazy(() => CursorOrganization$outboundSchema) + .optional(), + openaiPlatformProject: z.lazy(() => OpenaiPlatformProject$outboundSchema) + .optional(), + openaiPlatformServiceAccount: z.lazy(() => + OpenaiPlatformServiceAccount$outboundSchema + ).optional(), + anthropicWorkspace: z.lazy(() => AnthropicWorkspace$outboundSchema) + .optional(), + oracleFusionRole: z.lazy(() => OracleFusionRole$outboundSchema).optional(), + devinOrganization: z.lazy(() => DevinOrganization$outboundSchema).optional(), + devinRole: z.lazy(() => DevinRole$outboundSchema).optional(), }).transform((v) => { return remap$(v, { + databricksAccountServicePrincipal: "databricks_account_service_principal", + azureSubscription: "azure_subscription", + azureResourceGroup: "azure_resource_group", + azureManagementGroup: "azure_management_group", + azureVirtualMachine: "azure_virtual_machine", + azureStorageAccount: "azure_storage_account", + azureStorageContainer: "azure_storage_container", + azureSqlServer: "azure_sql_server", + azureSqlDatabase: "azure_sql_database", + azureSqlManagedInstance: "azure_sql_managed_instance", + azureSqlManagedDatabase: "azure_sql_managed_database", + azureUserAssignedManagedIdentity: "azure_user_assigned_managed_identity", + azureEnterpriseApp: "azure_enterprise_app", + azureEntraIdRole: "azure_entra_id_role", awsOrganizationalUnit: "aws_organizational_unit", awsAccount: "aws_account", awsPermissionSet: "aws_permission_set", awsIamRole: "aws_iam_role", awsEc2Instance: "aws_ec2_instance", + awsRdsCluster: "aws_rds_cluster", awsRdsInstance: "aws_rds_instance", awsEksCluster: "aws_eks_cluster", customConnector: "custom_connector", @@ -2489,31 +4252,35 @@ export const ResourceRemoteInfo$outboundSchema: z.ZodType< gcpServiceAccount: "gcp_service_account", googleWorkspaceRole: "google_workspace_role", githubRepo: "github_repo", + githubOrgRole: "github_org_role", + githubOrg: "github_org", gitlabProject: "gitlab_project", oktaApp: "okta_app", oktaStandardRole: "okta_standard_role", oktaCustomRole: "okta_custom_role", + snowflakeDatabase: "snowflake_database", + snowflakeSchema: "snowflake_schema", + snowflakeTable: "snowflake_table", + ilevelAdvancedRole: "ilevel_advanced_role", + tailscaleSsh: "tailscale_ssh", pagerdutyRole: "pagerduty_role", + workdayRole: "workday_role", salesforcePermissionSet: "salesforce_permission_set", salesforceProfile: "salesforce_profile", salesforceRole: "salesforce_role", teleportRole: "teleport_role", + datastaxAstraRole: "datastax_astra_role", + coupaRole: "coupa_role", + cursorOrganization: "cursor_organization", + openaiPlatformProject: "openai_platform_project", + openaiPlatformServiceAccount: "openai_platform_service_account", + anthropicWorkspace: "anthropic_workspace", + oracleFusionRole: "oracle_fusion_role", + devinOrganization: "devin_organization", + devinRole: "devin_role", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceRemoteInfo$ { - /** @deprecated use `ResourceRemoteInfo$inboundSchema` instead. */ - export const inboundSchema = ResourceRemoteInfo$inboundSchema; - /** @deprecated use `ResourceRemoteInfo$outboundSchema` instead. */ - export const outboundSchema = ResourceRemoteInfo$outboundSchema; - /** @deprecated use `ResourceRemoteInfo$Outbound` instead. */ - export type Outbound = ResourceRemoteInfo$Outbound; -} - export function resourceRemoteInfoToJSON( resourceRemoteInfo: ResourceRemoteInfo, ): string { @@ -2521,7 +4288,6 @@ export function resourceRemoteInfoToJSON( ResourceRemoteInfo$outboundSchema.parse(resourceRemoteInfo), ); } - export function resourceRemoteInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourcetypeenum.ts b/src/models/components/resourcetypeenum.ts index 94cb1af..165e883 100644 --- a/src/models/components/resourcetypeenum.ts +++ b/src/models/components/resourcetypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -69,6 +69,20 @@ export const ResourceTypeEnum = { MariadbInstance: "MARIADB_INSTANCE", PostgresInstance: "POSTGRES_INSTANCE", TeleportRole: "TELEPORT_ROLE", + IlevelAdvancedRole: "ILEVEL_ADVANCED_ROLE", + DatastaxAstraRole: "DATASTAX_ASTRA_ROLE", + CoupaRole: "COUPA_ROLE", + CursorOrganization: "CURSOR_ORGANIZATION", + OpenaiPlatformProject: "OPENAI_PLATFORM_PROJECT", + OpenaiPlatformServiceAccount: "OPENAI_PLATFORM_SERVICE_ACCOUNT", + AnthropicWorkspace: "ANTHROPIC_WORKSPACE", + GitHubOrg: "GIT_HUB_ORG", + OracleFusionRole: "ORACLE_FUSION_ROLE", + DevinOrganization: "DEVIN_ORGANIZATION", + DevinRole: "DEVIN_ROLE", + VaultSecret: "VAULT_SECRET", + VaultPolicy: "VAULT_POLICY", + VaultOidcRole: "VAULT_OIDC_ROLE", } as const; /** * The type of the resource. @@ -79,19 +93,7 @@ export type ResourceTypeEnum = ClosedEnum; export const ResourceTypeEnum$inboundSchema: z.ZodNativeEnum< typeof ResourceTypeEnum > = z.nativeEnum(ResourceTypeEnum); - /** @internal */ export const ResourceTypeEnum$outboundSchema: z.ZodNativeEnum< typeof ResourceTypeEnum > = ResourceTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceTypeEnum$ { - /** @deprecated use `ResourceTypeEnum$inboundSchema` instead. */ - export const inboundSchema = ResourceTypeEnum$inboundSchema; - /** @deprecated use `ResourceTypeEnum$outboundSchema` instead. */ - export const outboundSchema = ResourceTypeEnum$outboundSchema; -} diff --git a/src/models/components/resourceuser.ts b/src/models/components/resourceuser.ts index 16f6189..c831b06 100644 --- a/src/models/components/resourceuser.ts +++ b/src/models/components/resourceuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -79,7 +79,6 @@ export const ResourceUser$inboundSchema: z.ZodType< "expiration_date": "expirationDate", }); }); - /** @internal */ export type ResourceUser$Outbound = { resource_id: string; @@ -113,23 +112,9 @@ export const ResourceUser$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceUser$ { - /** @deprecated use `ResourceUser$inboundSchema` instead. */ - export const inboundSchema = ResourceUser$inboundSchema; - /** @deprecated use `ResourceUser$outboundSchema` instead. */ - export const outboundSchema = ResourceUser$outboundSchema; - /** @deprecated use `ResourceUser$Outbound` instead. */ - export type Outbound = ResourceUser$Outbound; -} - export function resourceUserToJSON(resourceUser: ResourceUser): string { return JSON.stringify(ResourceUser$outboundSchema.parse(resourceUser)); } - export function resourceUserFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceuseraccessstatus.ts b/src/models/components/resourceuseraccessstatus.ts index c6f1219..6bc24e3 100644 --- a/src/models/components/resourceuseraccessstatus.ts +++ b/src/models/components/resourceuseraccessstatus.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -81,7 +81,6 @@ export const ResourceUserAccessStatus$inboundSchema: z.ZodType< "expiration_date": "expirationDate", }); }); - /** @internal */ export type ResourceUserAccessStatus$Outbound = { resource_id: string; @@ -112,19 +111,6 @@ export const ResourceUserAccessStatus$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceUserAccessStatus$ { - /** @deprecated use `ResourceUserAccessStatus$inboundSchema` instead. */ - export const inboundSchema = ResourceUserAccessStatus$inboundSchema; - /** @deprecated use `ResourceUserAccessStatus$outboundSchema` instead. */ - export const outboundSchema = ResourceUserAccessStatus$outboundSchema; - /** @deprecated use `ResourceUserAccessStatus$Outbound` instead. */ - export type Outbound = ResourceUserAccessStatus$Outbound; -} - export function resourceUserAccessStatusToJSON( resourceUserAccessStatus: ResourceUserAccessStatus, ): string { @@ -132,7 +118,6 @@ export function resourceUserAccessStatusToJSON( ResourceUserAccessStatus$outboundSchema.parse(resourceUserAccessStatus), ); } - export function resourceUserAccessStatusFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/resourceuseraccessstatusenum.ts b/src/models/components/resourceuseraccessstatusenum.ts index 8f04223..ccb119c 100644 --- a/src/models/components/resourceuseraccessstatusenum.ts +++ b/src/models/components/resourceuseraccessstatusenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -24,19 +24,7 @@ export type ResourceUserAccessStatusEnum = ClosedEnum< export const ResourceUserAccessStatusEnum$inboundSchema: z.ZodNativeEnum< typeof ResourceUserAccessStatusEnum > = z.nativeEnum(ResourceUserAccessStatusEnum); - /** @internal */ export const ResourceUserAccessStatusEnum$outboundSchema: z.ZodNativeEnum< typeof ResourceUserAccessStatusEnum > = ResourceUserAccessStatusEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceUserAccessStatusEnum$ { - /** @deprecated use `ResourceUserAccessStatusEnum$inboundSchema` instead. */ - export const inboundSchema = ResourceUserAccessStatusEnum$inboundSchema; - /** @deprecated use `ResourceUserAccessStatusEnum$outboundSchema` instead. */ - export const outboundSchema = ResourceUserAccessStatusEnum$outboundSchema; -} diff --git a/src/models/components/resourcewithaccesslevel.ts b/src/models/components/resourcewithaccesslevel.ts index 86ffc52..64635dd 100644 --- a/src/models/components/resourcewithaccesslevel.ts +++ b/src/models/components/resourcewithaccesslevel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -36,7 +36,6 @@ export const ResourceWithAccessLevel$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type ResourceWithAccessLevel$Outbound = { resource_id: string; @@ -58,19 +57,6 @@ export const ResourceWithAccessLevel$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceWithAccessLevel$ { - /** @deprecated use `ResourceWithAccessLevel$inboundSchema` instead. */ - export const inboundSchema = ResourceWithAccessLevel$inboundSchema; - /** @deprecated use `ResourceWithAccessLevel$outboundSchema` instead. */ - export const outboundSchema = ResourceWithAccessLevel$outboundSchema; - /** @deprecated use `ResourceWithAccessLevel$Outbound` instead. */ - export type Outbound = ResourceWithAccessLevel$Outbound; -} - export function resourceWithAccessLevelToJSON( resourceWithAccessLevel: ResourceWithAccessLevel, ): string { @@ -78,7 +64,6 @@ export function resourceWithAccessLevelToJSON( ResourceWithAccessLevel$outboundSchema.parse(resourceWithAccessLevel), ); } - export function resourceWithAccessLevelFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/revieweridlist.ts b/src/models/components/revieweridlist.ts index 3750f3a..cec952b 100644 --- a/src/models/components/revieweridlist.ts +++ b/src/models/components/revieweridlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const ReviewerIDList$inboundSchema: z.ZodType< "reviewer_ids": "reviewerIds", }); }); - /** @internal */ export type ReviewerIDList$Outbound = { reviewer_ids: Array; @@ -46,23 +45,9 @@ export const ReviewerIDList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReviewerIDList$ { - /** @deprecated use `ReviewerIDList$inboundSchema` instead. */ - export const inboundSchema = ReviewerIDList$inboundSchema; - /** @deprecated use `ReviewerIDList$outboundSchema` instead. */ - export const outboundSchema = ReviewerIDList$outboundSchema; - /** @deprecated use `ReviewerIDList$Outbound` instead. */ - export type Outbound = ReviewerIDList$Outbound; -} - export function reviewerIDListToJSON(reviewerIDList: ReviewerIDList): string { return JSON.stringify(ReviewerIDList$outboundSchema.parse(reviewerIDList)); } - export function reviewerIDListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/reviewerstage.ts b/src/models/components/reviewerstage.ts index bb2b763..4dc8c0b 100644 --- a/src/models/components/reviewerstage.ts +++ b/src/models/components/reviewerstage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -43,22 +43,10 @@ export type ReviewerStage = { /** @internal */ export const Operator$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Operator); - /** @internal */ export const Operator$outboundSchema: z.ZodNativeEnum = Operator$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Operator$ { - /** @deprecated use `Operator$inboundSchema` instead. */ - export const inboundSchema = Operator$inboundSchema; - /** @deprecated use `Operator$outboundSchema` instead. */ - export const outboundSchema = Operator$outboundSchema; -} - /** @internal */ export const ReviewerStage$inboundSchema: z.ZodType< ReviewerStage, @@ -76,7 +64,6 @@ export const ReviewerStage$inboundSchema: z.ZodType< "owner_ids": "ownerIds", }); }); - /** @internal */ export type ReviewerStage$Outbound = { require_manager_approval: boolean; @@ -103,23 +90,9 @@ export const ReviewerStage$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReviewerStage$ { - /** @deprecated use `ReviewerStage$inboundSchema` instead. */ - export const inboundSchema = ReviewerStage$inboundSchema; - /** @deprecated use `ReviewerStage$outboundSchema` instead. */ - export const outboundSchema = ReviewerStage$outboundSchema; - /** @deprecated use `ReviewerStage$Outbound` instead. */ - export type Outbound = ReviewerStage$Outbound; -} - export function reviewerStageToJSON(reviewerStage: ReviewerStage): string { return JSON.stringify(ReviewerStage$outboundSchema.parse(reviewerStage)); } - export function reviewerStageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/reviewerstagelist.ts b/src/models/components/reviewerstagelist.ts index 0b60d2e..ee50c4d 100644 --- a/src/models/components/reviewerstagelist.ts +++ b/src/models/components/reviewerstagelist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const ReviewerStageList$inboundSchema: z.ZodType< > = z.object({ stages: z.array(ReviewerStage$inboundSchema), }); - /** @internal */ export type ReviewerStageList$Outbound = { stages: Array; @@ -43,19 +42,6 @@ export const ReviewerStageList$outboundSchema: z.ZodType< stages: z.array(ReviewerStage$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReviewerStageList$ { - /** @deprecated use `ReviewerStageList$inboundSchema` instead. */ - export const inboundSchema = ReviewerStageList$inboundSchema; - /** @deprecated use `ReviewerStageList$outboundSchema` instead. */ - export const outboundSchema = ReviewerStageList$outboundSchema; - /** @deprecated use `ReviewerStageList$Outbound` instead. */ - export type Outbound = ReviewerStageList$Outbound; -} - export function reviewerStageListToJSON( reviewerStageList: ReviewerStageList, ): string { @@ -63,7 +49,6 @@ export function reviewerStageListToJSON( ReviewerStageList$outboundSchema.parse(reviewerStageList), ); } - export function reviewerStageListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/reviewstageoperator.ts b/src/models/components/reviewstageoperator.ts index 13df8d7..859db2e 100644 --- a/src/models/components/reviewstageoperator.ts +++ b/src/models/components/reviewstageoperator.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -21,19 +21,7 @@ export type ReviewStageOperator = ClosedEnum; export const ReviewStageOperator$inboundSchema: z.ZodNativeEnum< typeof ReviewStageOperator > = z.nativeEnum(ReviewStageOperator); - /** @internal */ export const ReviewStageOperator$outboundSchema: z.ZodNativeEnum< typeof ReviewStageOperator > = ReviewStageOperator$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReviewStageOperator$ { - /** @deprecated use `ReviewStageOperator$inboundSchema` instead. */ - export const inboundSchema = ReviewStageOperator$inboundSchema; - /** @deprecated use `ReviewStageOperator$outboundSchema` instead. */ - export const outboundSchema = ReviewStageOperator$outboundSchema; -} diff --git a/src/models/components/risksensitivityenum.ts b/src/models/components/risksensitivityenum.ts index 29b3f5c..7784708 100644 --- a/src/models/components/risksensitivityenum.ts +++ b/src/models/components/risksensitivityenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -25,19 +25,7 @@ export type RiskSensitivityEnum = ClosedEnum; export const RiskSensitivityEnum$inboundSchema: z.ZodNativeEnum< typeof RiskSensitivityEnum > = z.nativeEnum(RiskSensitivityEnum); - /** @internal */ export const RiskSensitivityEnum$outboundSchema: z.ZodNativeEnum< typeof RiskSensitivityEnum > = RiskSensitivityEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RiskSensitivityEnum$ { - /** @deprecated use `RiskSensitivityEnum$inboundSchema` instead. */ - export const inboundSchema = RiskSensitivityEnum$inboundSchema; - /** @deprecated use `RiskSensitivityEnum$outboundSchema` instead. */ - export const outboundSchema = RiskSensitivityEnum$outboundSchema; -} diff --git a/src/models/components/rolepermissionnameenum.ts b/src/models/components/rolepermissionnameenum.ts index ec50086..61facb9 100644 --- a/src/models/components/rolepermissionnameenum.ts +++ b/src/models/components/rolepermissionnameenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -38,19 +38,7 @@ export type RolePermissionNameEnum = ClosedEnum; export const RolePermissionNameEnum$inboundSchema: z.ZodNativeEnum< typeof RolePermissionNameEnum > = z.nativeEnum(RolePermissionNameEnum); - /** @internal */ export const RolePermissionNameEnum$outboundSchema: z.ZodNativeEnum< typeof RolePermissionNameEnum > = RolePermissionNameEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RolePermissionNameEnum$ { - /** @deprecated use `RolePermissionNameEnum$inboundSchema` instead. */ - export const inboundSchema = RolePermissionNameEnum$inboundSchema; - /** @deprecated use `RolePermissionNameEnum$outboundSchema` instead. */ - export const outboundSchema = RolePermissionNameEnum$outboundSchema; -} diff --git a/src/models/components/rolepermissiontargettypeenum.ts b/src/models/components/rolepermissiontargettypeenum.ts index 4e7f0ff..8d94f65 100644 --- a/src/models/components/rolepermissiontargettypeenum.ts +++ b/src/models/components/rolepermissiontargettypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -15,6 +15,7 @@ export const RolePermissionTargetTypeEnum = { Bundle: "BUNDLE", User: "USER", AccessReview: "ACCESS_REVIEW", + Owner: "OWNER", } as const; /** * The type of the target for the role permission. @@ -27,19 +28,7 @@ export type RolePermissionTargetTypeEnum = ClosedEnum< export const RolePermissionTargetTypeEnum$inboundSchema: z.ZodNativeEnum< typeof RolePermissionTargetTypeEnum > = z.nativeEnum(RolePermissionTargetTypeEnum); - /** @internal */ export const RolePermissionTargetTypeEnum$outboundSchema: z.ZodNativeEnum< typeof RolePermissionTargetTypeEnum > = RolePermissionTargetTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RolePermissionTargetTypeEnum$ { - /** @deprecated use `RolePermissionTargetTypeEnum$inboundSchema` instead. */ - export const inboundSchema = RolePermissionTargetTypeEnum$inboundSchema; - /** @deprecated use `RolePermissionTargetTypeEnum$outboundSchema` instead. */ - export const outboundSchema = RolePermissionTargetTypeEnum$outboundSchema; -} diff --git a/src/models/components/ruleclauses.ts b/src/models/components/ruleclauses.ts index 1fd347d..dfc38af 100644 --- a/src/models/components/ruleclauses.ts +++ b/src/models/components/ruleclauses.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const RuleClauses$inboundSchema: z.ZodType< when: RuleConjunction$inboundSchema, unless: RuleConjunction$inboundSchema.optional(), }); - /** @internal */ export type RuleClauses$Outbound = { when: RuleConjunction$Outbound; @@ -44,23 +43,9 @@ export const RuleClauses$outboundSchema: z.ZodType< unless: RuleConjunction$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RuleClauses$ { - /** @deprecated use `RuleClauses$inboundSchema` instead. */ - export const inboundSchema = RuleClauses$inboundSchema; - /** @deprecated use `RuleClauses$outboundSchema` instead. */ - export const outboundSchema = RuleClauses$outboundSchema; - /** @deprecated use `RuleClauses$Outbound` instead. */ - export type Outbound = RuleClauses$Outbound; -} - export function ruleClausesToJSON(ruleClauses: RuleClauses): string { return JSON.stringify(RuleClauses$outboundSchema.parse(ruleClauses)); } - export function ruleClausesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ruleconjunction.ts b/src/models/components/ruleconjunction.ts index 2fa5eef..7ad1704 100644 --- a/src/models/components/ruleconjunction.ts +++ b/src/models/components/ruleconjunction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const RuleConjunction$inboundSchema: z.ZodType< > = z.object({ clauses: z.array(RuleDisjunction$inboundSchema), }); - /** @internal */ export type RuleConjunction$Outbound = { clauses: Array; @@ -40,25 +39,11 @@ export const RuleConjunction$outboundSchema: z.ZodType< clauses: z.array(RuleDisjunction$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RuleConjunction$ { - /** @deprecated use `RuleConjunction$inboundSchema` instead. */ - export const inboundSchema = RuleConjunction$inboundSchema; - /** @deprecated use `RuleConjunction$outboundSchema` instead. */ - export const outboundSchema = RuleConjunction$outboundSchema; - /** @deprecated use `RuleConjunction$Outbound` instead. */ - export type Outbound = RuleConjunction$Outbound; -} - export function ruleConjunctionToJSON( ruleConjunction: RuleConjunction, ): string { return JSON.stringify(RuleConjunction$outboundSchema.parse(ruleConjunction)); } - export function ruleConjunctionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/ruledisjunction.ts b/src/models/components/ruledisjunction.ts index 733ba90..d3da298 100644 --- a/src/models/components/ruledisjunction.ts +++ b/src/models/components/ruledisjunction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const RuleDisjunction$inboundSchema: z.ZodType< > = z.object({ selectors: z.array(TagSelector$inboundSchema), }); - /** @internal */ export type RuleDisjunction$Outbound = { selectors: Array; @@ -40,25 +39,11 @@ export const RuleDisjunction$outboundSchema: z.ZodType< selectors: z.array(TagSelector$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RuleDisjunction$ { - /** @deprecated use `RuleDisjunction$inboundSchema` instead. */ - export const inboundSchema = RuleDisjunction$inboundSchema; - /** @deprecated use `RuleDisjunction$outboundSchema` instead. */ - export const outboundSchema = RuleDisjunction$outboundSchema; - /** @deprecated use `RuleDisjunction$Outbound` instead. */ - export type Outbound = RuleDisjunction$Outbound; -} - export function ruleDisjunctionToJSON( ruleDisjunction: RuleDisjunction, ): string { return JSON.stringify(RuleDisjunction$outboundSchema.parse(ruleDisjunction)); } - export function ruleDisjunctionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/scopedrolepermission.ts b/src/models/components/scopedrolepermission.ts index 0b655ff..6be9e18 100644 --- a/src/models/components/scopedrolepermission.ts +++ b/src/models/components/scopedrolepermission.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -52,7 +52,6 @@ export const ScopedRolePermission$inboundSchema: z.ZodType< "allow_all": "allowAll", }); }); - /** @internal */ export type ScopedRolePermission$Outbound = { target_ids?: Array | undefined; @@ -80,19 +79,6 @@ export const ScopedRolePermission$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScopedRolePermission$ { - /** @deprecated use `ScopedRolePermission$inboundSchema` instead. */ - export const inboundSchema = ScopedRolePermission$inboundSchema; - /** @deprecated use `ScopedRolePermission$outboundSchema` instead. */ - export const outboundSchema = ScopedRolePermission$outboundSchema; - /** @deprecated use `ScopedRolePermission$Outbound` instead. */ - export type Outbound = ScopedRolePermission$Outbound; -} - export function scopedRolePermissionToJSON( scopedRolePermission: ScopedRolePermission, ): string { @@ -100,7 +86,6 @@ export function scopedRolePermissionToJSON( ScopedRolePermission$outboundSchema.parse(scopedRolePermission), ); } - export function scopedRolePermissionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/scopedrolepermissionlist.ts b/src/models/components/scopedrolepermissionlist.ts index 9081afe..5d0ccad 100644 --- a/src/models/components/scopedrolepermissionlist.ts +++ b/src/models/components/scopedrolepermissionlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const ScopedRolePermissionList$inboundSchema: z.ZodType< > = z.object({ permissions: z.array(ScopedRolePermission$inboundSchema), }); - /** @internal */ export type ScopedRolePermissionList$Outbound = { permissions: Array; @@ -40,19 +39,6 @@ export const ScopedRolePermissionList$outboundSchema: z.ZodType< permissions: z.array(ScopedRolePermission$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ScopedRolePermissionList$ { - /** @deprecated use `ScopedRolePermissionList$inboundSchema` instead. */ - export const inboundSchema = ScopedRolePermissionList$inboundSchema; - /** @deprecated use `ScopedRolePermissionList$outboundSchema` instead. */ - export const outboundSchema = ScopedRolePermissionList$outboundSchema; - /** @deprecated use `ScopedRolePermissionList$Outbound` instead. */ - export type Outbound = ScopedRolePermissionList$Outbound; -} - export function scopedRolePermissionListToJSON( scopedRolePermissionList: ScopedRolePermissionList, ): string { @@ -60,7 +46,6 @@ export function scopedRolePermissionListToJSON( ScopedRolePermissionList$outboundSchema.parse(scopedRolePermissionList), ); } - export function scopedRolePermissionListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/security.ts b/src/models/components/security.ts index c88c60c..3f574f4 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const Security$inboundSchema: z.ZodType< "BearerAuth": "bearerAuth", }); }); - /** @internal */ export type Security$Outbound = { BearerAuth?: string | undefined; @@ -43,23 +42,9 @@ export const Security$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - export function securityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/session.ts b/src/models/components/session.ts index 517e5fc..395a338 100644 --- a/src/models/components/session.ts +++ b/src/models/components/session.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -74,7 +74,6 @@ export const Session$inboundSchema: z.ZodType = "expiration_date": "expirationDate", }); }); - /** @internal */ export type Session$Outbound = { connection_id: string; @@ -105,23 +104,9 @@ export const Session$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Session$ { - /** @deprecated use `Session$inboundSchema` instead. */ - export const inboundSchema = Session$inboundSchema; - /** @deprecated use `Session$outboundSchema` instead. */ - export const outboundSchema = Session$outboundSchema; - /** @deprecated use `Session$Outbound` instead. */ - export type Outbound = Session$Outbound; -} - export function sessionToJSON(session: Session): string { return JSON.stringify(Session$outboundSchema.parse(session)); } - export function sessionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/sessionslist.ts b/src/models/components/sessionslist.ts index b503059..738fb96 100644 --- a/src/models/components/sessionslist.ts +++ b/src/models/components/sessionslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -35,7 +35,6 @@ export const SessionsList$inboundSchema: z.ZodType< previous: z.nullable(z.string()).optional(), results: z.array(Session$inboundSchema).optional(), }); - /** @internal */ export type SessionsList$Outbound = { next?: string | null | undefined; @@ -54,23 +53,9 @@ export const SessionsList$outboundSchema: z.ZodType< results: z.array(Session$outboundSchema).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SessionsList$ { - /** @deprecated use `SessionsList$inboundSchema` instead. */ - export const inboundSchema = SessionsList$inboundSchema; - /** @deprecated use `SessionsList$outboundSchema` instead. */ - export const outboundSchema = SessionsList$outboundSchema; - /** @deprecated use `SessionsList$Outbound` instead. */ - export type Outbound = SessionsList$Outbound; -} - export function sessionsListToJSON(sessionsList: SessionsList): string { return JSON.stringify(SessionsList$outboundSchema.parse(sessionsList)); } - export function sessionsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/subevent.ts b/src/models/components/subevent.ts index 472ab5b..1d751e2 100644 --- a/src/models/components/subevent.ts +++ b/src/models/components/subevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -26,7 +26,7 @@ export type SubEvent = { * The subevent type. */ subEventType: string; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @internal */ @@ -45,7 +45,6 @@ export const SubEvent$inboundSchema: z.ZodType< "sub_event_type": "subEventType", }); }); - /** @internal */ export type SubEvent$Outbound = { sub_event_type: string; @@ -59,7 +58,7 @@ export const SubEvent$outboundSchema: z.ZodType< SubEvent > = z.object({ subEventType: z.string(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -70,23 +69,9 @@ export const SubEvent$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubEvent$ { - /** @deprecated use `SubEvent$inboundSchema` instead. */ - export const inboundSchema = SubEvent$inboundSchema; - /** @deprecated use `SubEvent$outboundSchema` instead. */ - export const outboundSchema = SubEvent$outboundSchema; - /** @deprecated use `SubEvent$Outbound` instead. */ - export type Outbound = SubEvent$Outbound; -} - export function subEventToJSON(subEvent: SubEvent): string { return JSON.stringify(SubEvent$outboundSchema.parse(subEvent)); } - export function subEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/syncerror.ts b/src/models/components/syncerror.ts index 94b4bb4..940a619 100644 --- a/src/models/components/syncerror.ts +++ b/src/models/components/syncerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -55,7 +55,6 @@ export const SyncError$inboundSchema: z.ZodType< "app_id": "appId", }); }); - /** @internal */ export type SyncError$Outbound = { first_seen: string; @@ -83,23 +82,9 @@ export const SyncError$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncError$ { - /** @deprecated use `SyncError$inboundSchema` instead. */ - export const inboundSchema = SyncError$inboundSchema; - /** @deprecated use `SyncError$outboundSchema` instead. */ - export const outboundSchema = SyncError$outboundSchema; - /** @deprecated use `SyncError$Outbound` instead. */ - export type Outbound = SyncError$Outbound; -} - export function syncErrorToJSON(syncError: SyncError): string { return JSON.stringify(SyncError$outboundSchema.parse(syncError)); } - export function syncErrorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/syncerrorlist.ts b/src/models/components/syncerrorlist.ts index 837ff09..386d4b3 100644 --- a/src/models/components/syncerrorlist.ts +++ b/src/models/components/syncerrorlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -30,7 +30,6 @@ export const SyncErrorList$inboundSchema: z.ZodType< "sync_errors": "syncErrors", }); }); - /** @internal */ export type SyncErrorList$Outbound = { sync_errors: Array; @@ -49,23 +48,9 @@ export const SyncErrorList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SyncErrorList$ { - /** @deprecated use `SyncErrorList$inboundSchema` instead. */ - export const inboundSchema = SyncErrorList$inboundSchema; - /** @deprecated use `SyncErrorList$outboundSchema` instead. */ - export const outboundSchema = SyncErrorList$outboundSchema; - /** @deprecated use `SyncErrorList$Outbound` instead. */ - export type Outbound = SyncErrorList$Outbound; -} - export function syncErrorListToJSON(syncErrorList: SyncErrorList): string { return JSON.stringify(SyncErrorList$outboundSchema.parse(syncErrorList)); } - export function syncErrorListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/synctask.ts b/src/models/components/synctask.ts new file mode 100644 index 0000000..b333d48 --- /dev/null +++ b/src/models/components/synctask.ts @@ -0,0 +1,71 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Represents a sync task that has been completed, either successfully or with errors. + */ +export type SyncTask = { + /** + * The ID of the sync task. + */ + id: string; + /** + * The time when the sync task was completed. + */ + completedAt: Date; +}; + +/** @internal */ +export const SyncTask$inboundSchema: z.ZodType< + SyncTask, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + completed_at: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), +}).transform((v) => { + return remap$(v, { + "completed_at": "completedAt", + }); +}); +/** @internal */ +export type SyncTask$Outbound = { + id: string; + completed_at: string; +}; + +/** @internal */ +export const SyncTask$outboundSchema: z.ZodType< + SyncTask$Outbound, + z.ZodTypeDef, + SyncTask +> = z.object({ + id: z.string(), + completedAt: z.date().transform(v => v.toISOString()), +}).transform((v) => { + return remap$(v, { + completedAt: "completed_at", + }); +}); + +export function syncTaskToJSON(syncTask: SyncTask): string { + return JSON.stringify(SyncTask$outboundSchema.parse(syncTask)); +} +export function syncTaskFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SyncTask$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SyncTask' from JSON`, + ); +} diff --git a/src/models/components/tag.ts b/src/models/components/tag.ts index 73b3e52..964c249 100644 --- a/src/models/components/tag.ts +++ b/src/models/components/tag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -66,7 +66,6 @@ export const Tag$inboundSchema: z.ZodType = z "user_creator_id": "userCreatorId", }); }); - /** @internal */ export type Tag$Outbound = { tag_id: string; @@ -95,23 +94,9 @@ export const Tag$outboundSchema: z.ZodType = z }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Tag$ { - /** @deprecated use `Tag$inboundSchema` instead. */ - export const inboundSchema = Tag$inboundSchema; - /** @deprecated use `Tag$outboundSchema` instead. */ - export const outboundSchema = Tag$outboundSchema; - /** @deprecated use `Tag$Outbound` instead. */ - export type Outbound = Tag$Outbound; -} - export function tagToJSON(tag: Tag): string { return JSON.stringify(Tag$outboundSchema.parse(tag)); } - export function tagFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/tagfilter.ts b/src/models/components/tagfilter.ts index f775561..c4975b4 100644 --- a/src/models/components/tagfilter.ts +++ b/src/models/components/tagfilter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -30,7 +30,6 @@ export const TagFilter$inboundSchema: z.ZodType< key: z.string(), value: z.string().optional(), }); - /** @internal */ export type TagFilter$Outbound = { key: string; @@ -47,23 +46,9 @@ export const TagFilter$outboundSchema: z.ZodType< value: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TagFilter$ { - /** @deprecated use `TagFilter$inboundSchema` instead. */ - export const inboundSchema = TagFilter$inboundSchema; - /** @deprecated use `TagFilter$outboundSchema` instead. */ - export const outboundSchema = TagFilter$outboundSchema; - /** @deprecated use `TagFilter$Outbound` instead. */ - export type Outbound = TagFilter$Outbound; -} - export function tagFilterToJSON(tagFilter: TagFilter): string { return JSON.stringify(TagFilter$outboundSchema.parse(tagFilter)); } - export function tagFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/tagselector.ts b/src/models/components/tagselector.ts index 66b2ede..7df41a0 100644 --- a/src/models/components/tagselector.ts +++ b/src/models/components/tagselector.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,6 @@ export const TagSelector$inboundSchema: z.ZodType< "connection_id": "connectionId", }); }); - /** @internal */ export type TagSelector$Outbound = { key: string; @@ -51,23 +50,9 @@ export const TagSelector$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TagSelector$ { - /** @deprecated use `TagSelector$inboundSchema` instead. */ - export const inboundSchema = TagSelector$inboundSchema; - /** @deprecated use `TagSelector$outboundSchema` instead. */ - export const outboundSchema = TagSelector$outboundSchema; - /** @deprecated use `TagSelector$Outbound` instead. */ - export type Outbound = TagSelector$Outbound; -} - export function tagSelectorToJSON(tagSelector: TagSelector): string { return JSON.stringify(TagSelector$outboundSchema.parse(tagSelector)); } - export function tagSelectorFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/tagslist.ts b/src/models/components/tagslist.ts index c756935..8d81868 100644 --- a/src/models/components/tagslist.ts +++ b/src/models/components/tagslist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const TagsList$inboundSchema: z.ZodType< > = z.object({ tags: z.array(Tag$inboundSchema), }); - /** @internal */ export type TagsList$Outbound = { tags: Array; @@ -40,23 +39,9 @@ export const TagsList$outboundSchema: z.ZodType< tags: z.array(Tag$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TagsList$ { - /** @deprecated use `TagsList$inboundSchema` instead. */ - export const inboundSchema = TagsList$inboundSchema; - /** @deprecated use `TagsList$outboundSchema` instead. */ - export const outboundSchema = TagsList$outboundSchema; - /** @deprecated use `TagsList$Outbound` instead. */ - export type Outbound = TagsList$Outbound; -} - export function tagsListToJSON(tagsList: TagsList): string { return JSON.stringify(TagsList$outboundSchema.parse(tagsList)); } - export function tagsListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/thirdpartyproviderenum.ts b/src/models/components/thirdpartyproviderenum.ts new file mode 100644 index 0000000..21e614e --- /dev/null +++ b/src/models/components/thirdpartyproviderenum.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * The third party provider of the remote user. + */ +export const ThirdPartyProviderEnum = { + Auth0: "AUTH0", + Slack: "SLACK", + GoogleChat: "GOOGLE_CHAT", + Jira: "JIRA", + Linear: "LINEAR", + ServiceNow: "SERVICE_NOW", + FreshService: "FRESH_SERVICE", + Shortcut: "SHORTCUT", + PagerDuty: "PAGER_DUTY", + Opsgenie: "OPSGENIE", + GitHub: "GIT_HUB", + GitLab: "GIT_LAB", + GitLabConnection: "GIT_LAB_CONNECTION", + Teleport: "TELEPORT", +} as const; +/** + * The third party provider of the remote user. + */ +export type ThirdPartyProviderEnum = ClosedEnum; + +/** @internal */ +export const ThirdPartyProviderEnum$inboundSchema: z.ZodNativeEnum< + typeof ThirdPartyProviderEnum +> = z.nativeEnum(ThirdPartyProviderEnum); +/** @internal */ +export const ThirdPartyProviderEnum$outboundSchema: z.ZodNativeEnum< + typeof ThirdPartyProviderEnum +> = ThirdPartyProviderEnum$inboundSchema; diff --git a/src/models/components/ticketingproviderenum.ts b/src/models/components/ticketingproviderenum.ts index f6837b6..423b03d 100644 --- a/src/models/components/ticketingproviderenum.ts +++ b/src/models/components/ticketingproviderenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -22,19 +22,7 @@ export type TicketingProviderEnum = ClosedEnum; export const TicketingProviderEnum$inboundSchema: z.ZodNativeEnum< typeof TicketingProviderEnum > = z.nativeEnum(TicketingProviderEnum); - /** @internal */ export const TicketingProviderEnum$outboundSchema: z.ZodNativeEnum< typeof TicketingProviderEnum > = TicketingProviderEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketingProviderEnum$ { - /** @deprecated use `TicketingProviderEnum$inboundSchema` instead. */ - export const inboundSchema = TicketingProviderEnum$inboundSchema; - /** @deprecated use `TicketingProviderEnum$outboundSchema` instead. */ - export const outboundSchema = TicketingProviderEnum$outboundSchema; -} diff --git a/src/models/components/ticketpropagationconfiguration.ts b/src/models/components/ticketpropagationconfiguration.ts index 5aa82e1..c81aeaf 100644 --- a/src/models/components/ticketpropagationconfiguration.ts +++ b/src/models/components/ticketpropagationconfiguration.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -44,7 +44,6 @@ export const TicketPropagationConfiguration$inboundSchema: z.ZodType< "ticket_project_id": "ticketProjectId", }); }); - /** @internal */ export type TicketPropagationConfiguration$Outbound = { enabled_on_grant: boolean; @@ -72,19 +71,6 @@ export const TicketPropagationConfiguration$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TicketPropagationConfiguration$ { - /** @deprecated use `TicketPropagationConfiguration$inboundSchema` instead. */ - export const inboundSchema = TicketPropagationConfiguration$inboundSchema; - /** @deprecated use `TicketPropagationConfiguration$outboundSchema` instead. */ - export const outboundSchema = TicketPropagationConfiguration$outboundSchema; - /** @deprecated use `TicketPropagationConfiguration$Outbound` instead. */ - export type Outbound = TicketPropagationConfiguration$Outbound; -} - export function ticketPropagationConfigurationToJSON( ticketPropagationConfiguration: TicketPropagationConfiguration, ): string { @@ -94,7 +80,6 @@ export function ticketPropagationConfigurationToJSON( ), ); } - export function ticketPropagationConfigurationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/uar.ts b/src/models/components/uar.ts index cd23d28..24fab0e 100644 --- a/src/models/components/uar.ts +++ b/src/models/components/uar.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,7 @@ export type Uar = { */ name: string; /** - * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. + * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. */ reviewerAssignmentPolicy: UARReviewerAssignmentPolicyEnum; /** @@ -51,6 +51,10 @@ export type Uar = { * A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. */ selfReviewAllowed: boolean; + /** + * A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + */ + instantlyActionReviews: boolean; /** * If set, the access review will only contain resources and groups that match at least one of the filters in scope. */ @@ -67,6 +71,7 @@ export const Uar$inboundSchema: z.ZodType = z deadline: z.string().datetime({ offset: true }).transform(v => new Date(v)), time_zone: z.string(), self_review_allowed: z.boolean(), + instantly_action_reviews: z.boolean(), uar_scope: UARScope$inboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -76,10 +81,10 @@ export const Uar$inboundSchema: z.ZodType = z "sendReviewerAssignmentNotification", "time_zone": "timeZone", "self_review_allowed": "selfReviewAllowed", + "instantly_action_reviews": "instantlyActionReviews", "uar_scope": "uarScope", }); }); - /** @internal */ export type Uar$Outbound = { uar_id: string; @@ -89,6 +94,7 @@ export type Uar$Outbound = { deadline: string; time_zone: string; self_review_allowed: boolean; + instantly_action_reviews: boolean; uar_scope?: UARScope$Outbound | undefined; }; @@ -102,6 +108,7 @@ export const Uar$outboundSchema: z.ZodType = z deadline: z.date().transform(v => v.toISOString()), timeZone: z.string(), selfReviewAllowed: z.boolean(), + instantlyActionReviews: z.boolean(), uarScope: UARScope$outboundSchema.optional(), }).transform((v) => { return remap$(v, { @@ -111,27 +118,14 @@ export const Uar$outboundSchema: z.ZodType = z "send_reviewer_assignment_notification", timeZone: "time_zone", selfReviewAllowed: "self_review_allowed", + instantlyActionReviews: "instantly_action_reviews", uarScope: "uar_scope", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Uar$ { - /** @deprecated use `Uar$inboundSchema` instead. */ - export const inboundSchema = Uar$inboundSchema; - /** @deprecated use `Uar$outboundSchema` instead. */ - export const outboundSchema = Uar$outboundSchema; - /** @deprecated use `Uar$Outbound` instead. */ - export type Outbound = Uar$Outbound; -} - export function uarToJSON(uar: Uar): string { return JSON.stringify(Uar$outboundSchema.parse(uar)); } - export function uarFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/uarreviewerassignmentpolicyenum.ts b/src/models/components/uarreviewerassignmentpolicyenum.ts index f2740a1..f224ac9 100644 --- a/src/models/components/uarreviewerassignmentpolicyenum.ts +++ b/src/models/components/uarreviewerassignmentpolicyenum.ts @@ -2,19 +2,22 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** - * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. + * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. */ export const UARReviewerAssignmentPolicyEnum = { Manually: "MANUALLY", ByOwningTeamAdmin: "BY_OWNING_TEAM_ADMIN", + ByOwningTeamAdminAll: "BY_OWNING_TEAM_ADMIN_ALL", ByManager: "BY_MANAGER", + ByApprovers: "BY_APPROVERS", + ByApproversAll: "BY_APPROVERS_ALL", } as const; /** - * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. + * A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. */ export type UARReviewerAssignmentPolicyEnum = ClosedEnum< typeof UARReviewerAssignmentPolicyEnum @@ -24,19 +27,7 @@ export type UARReviewerAssignmentPolicyEnum = ClosedEnum< export const UARReviewerAssignmentPolicyEnum$inboundSchema: z.ZodNativeEnum< typeof UARReviewerAssignmentPolicyEnum > = z.nativeEnum(UARReviewerAssignmentPolicyEnum); - /** @internal */ export const UARReviewerAssignmentPolicyEnum$outboundSchema: z.ZodNativeEnum< typeof UARReviewerAssignmentPolicyEnum > = UARReviewerAssignmentPolicyEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UARReviewerAssignmentPolicyEnum$ { - /** @deprecated use `UARReviewerAssignmentPolicyEnum$inboundSchema` instead. */ - export const inboundSchema = UARReviewerAssignmentPolicyEnum$inboundSchema; - /** @deprecated use `UARReviewerAssignmentPolicyEnum$outboundSchema` instead. */ - export const outboundSchema = UARReviewerAssignmentPolicyEnum$outboundSchema; -} diff --git a/src/models/components/uarscope.ts b/src/models/components/uarscope.ts index 66640ae..4b56583 100644 --- a/src/models/components/uarscope.ts +++ b/src/models/components/uarscope.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -101,44 +101,20 @@ export type UARScope = { export const GroupVisibility$inboundSchema: z.ZodNativeEnum< typeof GroupVisibility > = z.nativeEnum(GroupVisibility); - /** @internal */ export const GroupVisibility$outboundSchema: z.ZodNativeEnum< typeof GroupVisibility > = GroupVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GroupVisibility$ { - /** @deprecated use `GroupVisibility$inboundSchema` instead. */ - export const inboundSchema = GroupVisibility$inboundSchema; - /** @deprecated use `GroupVisibility$outboundSchema` instead. */ - export const outboundSchema = GroupVisibility$outboundSchema; -} - /** @internal */ export const FilterOperator$inboundSchema: z.ZodNativeEnum< typeof FilterOperator > = z.nativeEnum(FilterOperator); - /** @internal */ export const FilterOperator$outboundSchema: z.ZodNativeEnum< typeof FilterOperator > = FilterOperator$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilterOperator$ { - /** @deprecated use `FilterOperator$inboundSchema` instead. */ - export const inboundSchema = FilterOperator$inboundSchema; - /** @deprecated use `FilterOperator$outboundSchema` instead. */ - export const outboundSchema = FilterOperator$outboundSchema; -} - /** @internal */ export const UARScope$inboundSchema: z.ZodType< UARScope, @@ -165,7 +141,6 @@ export const UARScope$inboundSchema: z.ZodType< "include_group_bindings": "includeGroupBindings", }); }); - /** @internal */ export type UARScope$Outbound = { group_visibility?: string | undefined; @@ -208,23 +183,9 @@ export const UARScope$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UARScope$ { - /** @deprecated use `UARScope$inboundSchema` instead. */ - export const inboundSchema = UARScope$inboundSchema; - /** @deprecated use `UARScope$outboundSchema` instead. */ - export const outboundSchema = UARScope$outboundSchema; - /** @deprecated use `UARScope$Outbound` instead. */ - export type Outbound = UARScope$Outbound; -} - export function uarScopeToJSON(uarScope: UARScope): string { return JSON.stringify(UARScope$outboundSchema.parse(uarScope)); } - export function uarScopeFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateaccessruleinfo.ts b/src/models/components/updateaccessruleinfo.ts index 3ff2aa0..26c761a 100644 --- a/src/models/components/updateaccessruleinfo.ts +++ b/src/models/components/updateaccessruleinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -60,23 +60,11 @@ export type UpdateAccessRuleInfo = { export const UpdateAccessRuleInfoStatus$inboundSchema: z.ZodNativeEnum< typeof UpdateAccessRuleInfoStatus > = z.nativeEnum(UpdateAccessRuleInfoStatus); - /** @internal */ export const UpdateAccessRuleInfoStatus$outboundSchema: z.ZodNativeEnum< typeof UpdateAccessRuleInfoStatus > = UpdateAccessRuleInfoStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAccessRuleInfoStatus$ { - /** @deprecated use `UpdateAccessRuleInfoStatus$inboundSchema` instead. */ - export const inboundSchema = UpdateAccessRuleInfoStatus$inboundSchema; - /** @deprecated use `UpdateAccessRuleInfoStatus$outboundSchema` instead. */ - export const outboundSchema = UpdateAccessRuleInfoStatus$outboundSchema; -} - /** @internal */ export const UpdateAccessRuleInfo$inboundSchema: z.ZodType< UpdateAccessRuleInfo, @@ -93,7 +81,6 @@ export const UpdateAccessRuleInfo$inboundSchema: z.ZodType< "admin_owner_id": "adminOwnerId", }); }); - /** @internal */ export type UpdateAccessRuleInfo$Outbound = { name: string; @@ -120,19 +107,6 @@ export const UpdateAccessRuleInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAccessRuleInfo$ { - /** @deprecated use `UpdateAccessRuleInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateAccessRuleInfo$inboundSchema; - /** @deprecated use `UpdateAccessRuleInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateAccessRuleInfo$outboundSchema; - /** @deprecated use `UpdateAccessRuleInfo$Outbound` instead. */ - export type Outbound = UpdateAccessRuleInfo$Outbound; -} - export function updateAccessRuleInfoToJSON( updateAccessRuleInfo: UpdateAccessRuleInfo, ): string { @@ -140,7 +114,6 @@ export function updateAccessRuleInfoToJSON( UpdateAccessRuleInfo$outboundSchema.parse(updateAccessRuleInfo), ); } - export function updateAccessRuleInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateconfigurationtemplateinfo.ts b/src/models/components/updateconfigurationtemplateinfo.ts index 3ad19a9..0398e0e 100644 --- a/src/models/components/updateconfigurationtemplateinfo.ts +++ b/src/models/components/updateconfigurationtemplateinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -152,7 +152,6 @@ export const UpdateConfigurationTemplateInfo$inboundSchema: z.ZodType< "custom_request_notification": "customRequestNotification", }); }); - /** @internal */ export type UpdateConfigurationTemplateInfo$Outbound = { configuration_template_id: string; @@ -209,19 +208,6 @@ export const UpdateConfigurationTemplateInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateConfigurationTemplateInfo$ { - /** @deprecated use `UpdateConfigurationTemplateInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateConfigurationTemplateInfo$inboundSchema; - /** @deprecated use `UpdateConfigurationTemplateInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateConfigurationTemplateInfo$outboundSchema; - /** @deprecated use `UpdateConfigurationTemplateInfo$Outbound` instead. */ - export type Outbound = UpdateConfigurationTemplateInfo$Outbound; -} - export function updateConfigurationTemplateInfoToJSON( updateConfigurationTemplateInfo: UpdateConfigurationTemplateInfo, ): string { @@ -231,7 +217,6 @@ export function updateConfigurationTemplateInfoToJSON( ), ); } - export function updateConfigurationTemplateInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updategroupbindinginfo.ts b/src/models/components/updategroupbindinginfo.ts index 1c34d98..ed590d0 100644 --- a/src/models/components/updategroupbindinginfo.ts +++ b/src/models/components/updategroupbindinginfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -49,7 +49,6 @@ export const UpdateGroupBindingInfoGroup$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type UpdateGroupBindingInfoGroup$Outbound = { group_id: string; @@ -68,19 +67,6 @@ export const UpdateGroupBindingInfoGroup$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupBindingInfoGroup$ { - /** @deprecated use `UpdateGroupBindingInfoGroup$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupBindingInfoGroup$inboundSchema; - /** @deprecated use `UpdateGroupBindingInfoGroup$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupBindingInfoGroup$outboundSchema; - /** @deprecated use `UpdateGroupBindingInfoGroup$Outbound` instead. */ - export type Outbound = UpdateGroupBindingInfoGroup$Outbound; -} - export function updateGroupBindingInfoGroupToJSON( updateGroupBindingInfoGroup: UpdateGroupBindingInfoGroup, ): string { @@ -90,7 +76,6 @@ export function updateGroupBindingInfoGroupToJSON( ), ); } - export function updateGroupBindingInfoGroupFromJSON( jsonString: string, ): SafeParseResult { @@ -116,7 +101,6 @@ export const UpdateGroupBindingInfo$inboundSchema: z.ZodType< "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type UpdateGroupBindingInfo$Outbound = { group_binding_id: string; @@ -140,19 +124,6 @@ export const UpdateGroupBindingInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupBindingInfo$ { - /** @deprecated use `UpdateGroupBindingInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupBindingInfo$inboundSchema; - /** @deprecated use `UpdateGroupBindingInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupBindingInfo$outboundSchema; - /** @deprecated use `UpdateGroupBindingInfo$Outbound` instead. */ - export type Outbound = UpdateGroupBindingInfo$Outbound; -} - export function updateGroupBindingInfoToJSON( updateGroupBindingInfo: UpdateGroupBindingInfo, ): string { @@ -160,7 +131,6 @@ export function updateGroupBindingInfoToJSON( UpdateGroupBindingInfo$outboundSchema.parse(updateGroupBindingInfo), ); } - export function updateGroupBindingInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updategroupbindinginfolist.ts b/src/models/components/updategroupbindinginfolist.ts index 242fd8d..19b40ae 100644 --- a/src/models/components/updategroupbindinginfolist.ts +++ b/src/models/components/updategroupbindinginfolist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const UpdateGroupBindingInfoList$inboundSchema: z.ZodType< "group_bindings": "groupBindings", }); }); - /** @internal */ export type UpdateGroupBindingInfoList$Outbound = { group_bindings: Array; @@ -52,19 +51,6 @@ export const UpdateGroupBindingInfoList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupBindingInfoList$ { - /** @deprecated use `UpdateGroupBindingInfoList$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupBindingInfoList$inboundSchema; - /** @deprecated use `UpdateGroupBindingInfoList$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupBindingInfoList$outboundSchema; - /** @deprecated use `UpdateGroupBindingInfoList$Outbound` instead. */ - export type Outbound = UpdateGroupBindingInfoList$Outbound; -} - export function updateGroupBindingInfoListToJSON( updateGroupBindingInfoList: UpdateGroupBindingInfoList, ): string { @@ -72,7 +58,6 @@ export function updateGroupBindingInfoListToJSON( UpdateGroupBindingInfoList$outboundSchema.parse(updateGroupBindingInfoList), ); } - export function updateGroupBindingInfoListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updategroupinfo.ts b/src/models/components/updategroupinfo.ts index 2535ee5..4d33e55 100644 --- a/src/models/components/updategroupinfo.ts +++ b/src/models/components/updategroupinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -115,6 +115,12 @@ export type UpdateGroupInfo = { * A list of User IDs for the group leaders of the group */ groupLeaderUserIds?: Array | undefined; + /** + * The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + extensionsDurationInMinutes?: number | undefined; /** * The request configuration list of the configuration template. If not provided, the default request configuration will be used. */ @@ -171,6 +177,7 @@ export const UpdateGroupInfo$inboundSchema: z.ZodType< request_template_id: z.string().optional(), is_requestable: z.boolean().optional(), group_leader_user_ids: z.array(z.string()).optional(), + extensions_duration_in_minutes: z.number().int().optional(), request_configurations: z.array(RequestConfiguration$inboundSchema) .optional(), request_configuration_list: CreateRequestConfigurationInfoList$inboundSchema @@ -193,13 +200,13 @@ export const UpdateGroupInfo$inboundSchema: z.ZodType< "request_template_id": "requestTemplateId", "is_requestable": "isRequestable", "group_leader_user_ids": "groupLeaderUserIds", + "extensions_duration_in_minutes": "extensionsDurationInMinutes", "request_configurations": "requestConfigurations", "request_configuration_list": "requestConfigurationList", "custom_request_notification": "customRequestNotification", "risk_sensitivity_override": "riskSensitivityOverride", }); }); - /** @internal */ export type UpdateGroupInfo$Outbound = { group_id: string; @@ -218,6 +225,7 @@ export type UpdateGroupInfo$Outbound = { request_template_id?: string | undefined; is_requestable?: boolean | undefined; group_leader_user_ids?: Array | undefined; + extensions_duration_in_minutes?: number | undefined; request_configurations?: Array | undefined; request_configuration_list?: | CreateRequestConfigurationInfoList$Outbound @@ -248,6 +256,7 @@ export const UpdateGroupInfo$outboundSchema: z.ZodType< requestTemplateId: z.string().optional(), isRequestable: z.boolean().optional(), groupLeaderUserIds: z.array(z.string()).optional(), + extensionsDurationInMinutes: z.number().int().optional(), requestConfigurations: z.array(RequestConfiguration$outboundSchema) .optional(), requestConfigurationList: CreateRequestConfigurationInfoList$outboundSchema @@ -270,6 +279,7 @@ export const UpdateGroupInfo$outboundSchema: z.ZodType< requestTemplateId: "request_template_id", isRequestable: "is_requestable", groupLeaderUserIds: "group_leader_user_ids", + extensionsDurationInMinutes: "extensions_duration_in_minutes", requestConfigurations: "request_configurations", requestConfigurationList: "request_configuration_list", customRequestNotification: "custom_request_notification", @@ -277,25 +287,11 @@ export const UpdateGroupInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupInfo$ { - /** @deprecated use `UpdateGroupInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupInfo$inboundSchema; - /** @deprecated use `UpdateGroupInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupInfo$outboundSchema; - /** @deprecated use `UpdateGroupInfo$Outbound` instead. */ - export type Outbound = UpdateGroupInfo$Outbound; -} - export function updateGroupInfoToJSON( updateGroupInfo: UpdateGroupInfo, ): string { return JSON.stringify(UpdateGroupInfo$outboundSchema.parse(updateGroupInfo)); } - export function updateGroupInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updategroupinfolist.ts b/src/models/components/updategroupinfolist.ts index 45ed58f..0b74c71 100644 --- a/src/models/components/updategroupinfolist.ts +++ b/src/models/components/updategroupinfolist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const UpdateGroupInfoList$inboundSchema: z.ZodType< > = z.object({ groups: z.array(UpdateGroupInfo$inboundSchema), }); - /** @internal */ export type UpdateGroupInfoList$Outbound = { groups: Array; @@ -43,19 +42,6 @@ export const UpdateGroupInfoList$outboundSchema: z.ZodType< groups: z.array(UpdateGroupInfo$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupInfoList$ { - /** @deprecated use `UpdateGroupInfoList$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupInfoList$inboundSchema; - /** @deprecated use `UpdateGroupInfoList$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupInfoList$outboundSchema; - /** @deprecated use `UpdateGroupInfoList$Outbound` instead. */ - export type Outbound = UpdateGroupInfoList$Outbound; -} - export function updateGroupInfoListToJSON( updateGroupInfoList: UpdateGroupInfoList, ): string { @@ -63,7 +49,6 @@ export function updateGroupInfoListToJSON( UpdateGroupInfoList$outboundSchema.parse(updateGroupInfoList), ); } - export function updateGroupInfoListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updategroupresourcesinfo.ts b/src/models/components/updategroupresourcesinfo.ts index 820bd17..17d1673 100644 --- a/src/models/components/updategroupresourcesinfo.ts +++ b/src/models/components/updategroupresourcesinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -25,7 +25,6 @@ export const UpdateGroupResourcesInfo$inboundSchema: z.ZodType< > = z.object({ resources: z.array(ResourceWithAccessLevel$inboundSchema), }); - /** @internal */ export type UpdateGroupResourcesInfo$Outbound = { resources: Array; @@ -40,19 +39,6 @@ export const UpdateGroupResourcesInfo$outboundSchema: z.ZodType< resources: z.array(ResourceWithAccessLevel$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupResourcesInfo$ { - /** @deprecated use `UpdateGroupResourcesInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupResourcesInfo$inboundSchema; - /** @deprecated use `UpdateGroupResourcesInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupResourcesInfo$outboundSchema; - /** @deprecated use `UpdateGroupResourcesInfo$Outbound` instead. */ - export type Outbound = UpdateGroupResourcesInfo$Outbound; -} - export function updateGroupResourcesInfoToJSON( updateGroupResourcesInfo: UpdateGroupResourcesInfo, ): string { @@ -60,7 +46,6 @@ export function updateGroupResourcesInfoToJSON( UpdateGroupResourcesInfo$outboundSchema.parse(updateGroupResourcesInfo), ); } - export function updateGroupResourcesInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateownerinfo.ts b/src/models/components/updateownerinfo.ts index c52924f..8dc0dc4 100644 --- a/src/models/components/updateownerinfo.ts +++ b/src/models/components/updateownerinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -62,7 +62,6 @@ export const UpdateOwnerInfo$inboundSchema: z.ZodType< "source_group_id": "sourceGroupId", }); }); - /** @internal */ export type UpdateOwnerInfo$Outbound = { owner_id: string; @@ -94,25 +93,11 @@ export const UpdateOwnerInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateOwnerInfo$ { - /** @deprecated use `UpdateOwnerInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateOwnerInfo$inboundSchema; - /** @deprecated use `UpdateOwnerInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateOwnerInfo$outboundSchema; - /** @deprecated use `UpdateOwnerInfo$Outbound` instead. */ - export type Outbound = UpdateOwnerInfo$Outbound; -} - export function updateOwnerInfoToJSON( updateOwnerInfo: UpdateOwnerInfo, ): string { return JSON.stringify(UpdateOwnerInfo$outboundSchema.parse(updateOwnerInfo)); } - export function updateOwnerInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateownerinfolist.ts b/src/models/components/updateownerinfolist.ts index 326b990..158101f 100644 --- a/src/models/components/updateownerinfolist.ts +++ b/src/models/components/updateownerinfolist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const UpdateOwnerInfoList$inboundSchema: z.ZodType< > = z.object({ owners: z.array(UpdateOwnerInfo$inboundSchema), }); - /** @internal */ export type UpdateOwnerInfoList$Outbound = { owners: Array; @@ -43,19 +42,6 @@ export const UpdateOwnerInfoList$outboundSchema: z.ZodType< owners: z.array(UpdateOwnerInfo$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateOwnerInfoList$ { - /** @deprecated use `UpdateOwnerInfoList$inboundSchema` instead. */ - export const inboundSchema = UpdateOwnerInfoList$inboundSchema; - /** @deprecated use `UpdateOwnerInfoList$outboundSchema` instead. */ - export const outboundSchema = UpdateOwnerInfoList$outboundSchema; - /** @deprecated use `UpdateOwnerInfoList$Outbound` instead. */ - export type Outbound = UpdateOwnerInfoList$Outbound; -} - export function updateOwnerInfoListToJSON( updateOwnerInfoList: UpdateOwnerInfoList, ): string { @@ -63,7 +49,6 @@ export function updateOwnerInfoListToJSON( UpdateOwnerInfoList$outboundSchema.parse(updateOwnerInfoList), ); } - export function updateOwnerInfoListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateresourceinfo.ts b/src/models/components/updateresourceinfo.ts index c768f0c..732045d 100644 --- a/src/models/components/updateresourceinfo.ts +++ b/src/models/components/updateresourceinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -130,6 +130,12 @@ export type UpdateResourceInfo = { * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ isRequestable?: boolean | undefined; + /** + * The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + extensionsDurationInMinutes?: number | undefined; /** * A list of configurations for requests to this resource. If not provided, the default request configuration will be used. */ @@ -184,6 +190,7 @@ export const UpdateResourceInfo$inboundSchema: z.ZodType< configuration_template_id: z.string().optional(), request_template_id: z.string().optional(), is_requestable: z.boolean().optional(), + extensions_duration_in_minutes: z.number().int().optional(), request_configurations: z.array(RequestConfiguration$inboundSchema) .optional(), request_configuration_list: CreateRequestConfigurationInfoList$inboundSchema @@ -207,11 +214,11 @@ export const UpdateResourceInfo$inboundSchema: z.ZodType< "configuration_template_id": "configurationTemplateId", "request_template_id": "requestTemplateId", "is_requestable": "isRequestable", + "extensions_duration_in_minutes": "extensionsDurationInMinutes", "request_configurations": "requestConfigurations", "request_configuration_list": "requestConfigurationList", }); }); - /** @internal */ export type UpdateResourceInfo$Outbound = { resource_id: string; @@ -233,6 +240,7 @@ export type UpdateResourceInfo$Outbound = { configuration_template_id?: string | undefined; request_template_id?: string | undefined; is_requestable?: boolean | undefined; + extensions_duration_in_minutes?: number | undefined; request_configurations?: Array | undefined; request_configuration_list?: | CreateRequestConfigurationInfoList$Outbound @@ -264,6 +272,7 @@ export const UpdateResourceInfo$outboundSchema: z.ZodType< configurationTemplateId: z.string().optional(), requestTemplateId: z.string().optional(), isRequestable: z.boolean().optional(), + extensionsDurationInMinutes: z.number().int().optional(), requestConfigurations: z.array(RequestConfiguration$outboundSchema) .optional(), requestConfigurationList: CreateRequestConfigurationInfoList$outboundSchema @@ -287,24 +296,12 @@ export const UpdateResourceInfo$outboundSchema: z.ZodType< configurationTemplateId: "configuration_template_id", requestTemplateId: "request_template_id", isRequestable: "is_requestable", + extensionsDurationInMinutes: "extensions_duration_in_minutes", requestConfigurations: "request_configurations", requestConfigurationList: "request_configuration_list", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateResourceInfo$ { - /** @deprecated use `UpdateResourceInfo$inboundSchema` instead. */ - export const inboundSchema = UpdateResourceInfo$inboundSchema; - /** @deprecated use `UpdateResourceInfo$outboundSchema` instead. */ - export const outboundSchema = UpdateResourceInfo$outboundSchema; - /** @deprecated use `UpdateResourceInfo$Outbound` instead. */ - export type Outbound = UpdateResourceInfo$Outbound; -} - export function updateResourceInfoToJSON( updateResourceInfo: UpdateResourceInfo, ): string { @@ -312,7 +309,6 @@ export function updateResourceInfoToJSON( UpdateResourceInfo$outboundSchema.parse(updateResourceInfo), ); } - export function updateResourceInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/updateresourceinfolist.ts b/src/models/components/updateresourceinfolist.ts index c39761c..6930048 100644 --- a/src/models/components/updateresourceinfolist.ts +++ b/src/models/components/updateresourceinfolist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const UpdateResourceInfoList$inboundSchema: z.ZodType< > = z.object({ resources: z.array(UpdateResourceInfo$inboundSchema), }); - /** @internal */ export type UpdateResourceInfoList$Outbound = { resources: Array; @@ -43,19 +42,6 @@ export const UpdateResourceInfoList$outboundSchema: z.ZodType< resources: z.array(UpdateResourceInfo$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateResourceInfoList$ { - /** @deprecated use `UpdateResourceInfoList$inboundSchema` instead. */ - export const inboundSchema = UpdateResourceInfoList$inboundSchema; - /** @deprecated use `UpdateResourceInfoList$outboundSchema` instead. */ - export const outboundSchema = UpdateResourceInfoList$outboundSchema; - /** @deprecated use `UpdateResourceInfoList$Outbound` instead. */ - export type Outbound = UpdateResourceInfoList$Outbound; -} - export function updateResourceInfoListToJSON( updateResourceInfoList: UpdateResourceInfoList, ): string { @@ -63,7 +49,6 @@ export function updateResourceInfoListToJSON( UpdateResourceInfoList$outboundSchema.parse(updateResourceInfoList), ); } - export function updateResourceInfoListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/user.ts b/src/models/components/user.ts index f188c0e..73a3bf2 100644 --- a/src/models/components/user.ts +++ b/src/models/components/user.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -113,7 +113,6 @@ export const User$inboundSchema: z.ZodType = z "hr_idp_status": "hrIdpStatus", }); }); - /** @internal */ export type User$Outbound = { user_id: string; @@ -145,23 +144,9 @@ export const User$outboundSchema: z.ZodType = }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace User$ { - /** @deprecated use `User$inboundSchema` instead. */ - export const inboundSchema = User$inboundSchema; - /** @deprecated use `User$outboundSchema` instead. */ - export const outboundSchema = User$outboundSchema; - /** @deprecated use `User$Outbound` instead. */ - export type Outbound = User$Outbound; -} - export function userToJSON(user: User): string { return JSON.stringify(User$outboundSchema.parse(user)); } - export function userFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/userhridpstatusenum.ts b/src/models/components/userhridpstatusenum.ts index be1741e..d24dd35 100644 --- a/src/models/components/userhridpstatusenum.ts +++ b/src/models/components/userhridpstatusenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -76,19 +76,7 @@ export type UserHrIdpStatusEnum = ClosedEnum; export const UserHrIdpStatusEnum$inboundSchema: z.ZodNativeEnum< typeof UserHrIdpStatusEnum > = z.nativeEnum(UserHrIdpStatusEnum); - /** @internal */ export const UserHrIdpStatusEnum$outboundSchema: z.ZodNativeEnum< typeof UserHrIdpStatusEnum > = UserHrIdpStatusEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserHrIdpStatusEnum$ { - /** @deprecated use `UserHrIdpStatusEnum$inboundSchema` instead. */ - export const inboundSchema = UserHrIdpStatusEnum$inboundSchema; - /** @deprecated use `UserHrIdpStatusEnum$outboundSchema` instead. */ - export const outboundSchema = UserHrIdpStatusEnum$outboundSchema; -} diff --git a/src/models/components/useridlist.ts b/src/models/components/useridlist.ts index c9c5350..3aa1f7a 100644 --- a/src/models/components/useridlist.ts +++ b/src/models/components/useridlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const UserIDList$inboundSchema: z.ZodType< "user_ids": "userIds", }); }); - /** @internal */ export type UserIDList$Outbound = { user_ids: Array; @@ -46,23 +45,9 @@ export const UserIDList$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserIDList$ { - /** @deprecated use `UserIDList$inboundSchema` instead. */ - export const inboundSchema = UserIDList$inboundSchema; - /** @deprecated use `UserIDList$outboundSchema` instead. */ - export const outboundSchema = UserIDList$outboundSchema; - /** @deprecated use `UserIDList$Outbound` instead. */ - export type Outbound = UserIDList$Outbound; -} - export function userIDListToJSON(userIDList: UserIDList): string { return JSON.stringify(UserIDList$outboundSchema.parse(userIDList)); } - export function userIDListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/userlist.ts b/src/models/components/userlist.ts index d321def..c1c0d72 100644 --- a/src/models/components/userlist.ts +++ b/src/models/components/userlist.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -28,7 +28,6 @@ export const UserList$inboundSchema: z.ZodType< > = z.object({ users: z.array(User$inboundSchema), }); - /** @internal */ export type UserList$Outbound = { users: Array; @@ -43,23 +42,9 @@ export const UserList$outboundSchema: z.ZodType< users: z.array(User$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserList$ { - /** @deprecated use `UserList$inboundSchema` instead. */ - export const inboundSchema = UserList$inboundSchema; - /** @deprecated use `UserList$outboundSchema` instead. */ - export const outboundSchema = UserList$outboundSchema; - /** @deprecated use `UserList$Outbound` instead. */ - export type Outbound = UserList$Outbound; -} - export function userListToJSON(userList: UserList): string { return JSON.stringify(UserList$outboundSchema.parse(userList)); } - export function userListFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/visibilityinfo.ts b/src/models/components/visibilityinfo.ts index 0f2fd4f..fc89577 100644 --- a/src/models/components/visibilityinfo.ts +++ b/src/models/components/visibilityinfo.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const VisibilityInfo$inboundSchema: z.ZodType< "visibility_group_ids": "visibilityGroupIds", }); }); - /** @internal */ export type VisibilityInfo$Outbound = { visibility: string; @@ -58,23 +57,9 @@ export const VisibilityInfo$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VisibilityInfo$ { - /** @deprecated use `VisibilityInfo$inboundSchema` instead. */ - export const inboundSchema = VisibilityInfo$inboundSchema; - /** @deprecated use `VisibilityInfo$outboundSchema` instead. */ - export const outboundSchema = VisibilityInfo$outboundSchema; - /** @deprecated use `VisibilityInfo$Outbound` instead. */ - export type Outbound = VisibilityInfo$Outbound; -} - export function visibilityInfoToJSON(visibilityInfo: VisibilityInfo): string { return JSON.stringify(VisibilityInfo$outboundSchema.parse(visibilityInfo)); } - export function visibilityInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/visibilitytypeenum.ts b/src/models/components/visibilitytypeenum.ts index c25b835..83d14bf 100644 --- a/src/models/components/visibilitytypeenum.ts +++ b/src/models/components/visibilitytypeenum.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -21,19 +21,7 @@ export type VisibilityTypeEnum = ClosedEnum; export const VisibilityTypeEnum$inboundSchema: z.ZodNativeEnum< typeof VisibilityTypeEnum > = z.nativeEnum(VisibilityTypeEnum); - /** @internal */ export const VisibilityTypeEnum$outboundSchema: z.ZodNativeEnum< typeof VisibilityTypeEnum > = VisibilityTypeEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VisibilityTypeEnum$ { - /** @deprecated use `VisibilityTypeEnum$inboundSchema` instead. */ - export const inboundSchema = VisibilityTypeEnum$inboundSchema; - /** @deprecated use `VisibilityTypeEnum$outboundSchema` instead. */ - export const outboundSchema = VisibilityTypeEnum$outboundSchema; -} diff --git a/src/models/errors/index.ts b/src/models/errors/index.ts index 8fae157..4a0ce79 100644 --- a/src/models/errors/index.ts +++ b/src/models/errors/index.ts @@ -4,5 +4,6 @@ export * from "./apierror.js"; export * from "./httpclienterrors.js"; +export * from "./opalmcperror.js"; export * from "./responsevalidationerror.js"; export * from "./sdkvalidationerror.js"; diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts index c220d2f..881c0a0 100644 --- a/src/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { OpalMcpError } from "./opalmcperror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 37face8..6826e12 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/models/operations/addbundlegroup.ts b/src/models/operations/addbundlegroup.ts index c28012c..e741c7f 100644 --- a/src/models/operations/addbundlegroup.ts +++ b/src/models/operations/addbundlegroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -47,7 +47,6 @@ export const AddBundleGroupRequestBody$inboundSchema: z.ZodType< "access_level_name": "accessLevelName", }); }); - /** @internal */ export type AddBundleGroupRequestBody$Outbound = { group_id: string; @@ -72,19 +71,6 @@ export const AddBundleGroupRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddBundleGroupRequestBody$ { - /** @deprecated use `AddBundleGroupRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddBundleGroupRequestBody$inboundSchema; - /** @deprecated use `AddBundleGroupRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddBundleGroupRequestBody$outboundSchema; - /** @deprecated use `AddBundleGroupRequestBody$Outbound` instead. */ - export type Outbound = AddBundleGroupRequestBody$Outbound; -} - export function addBundleGroupRequestBodyToJSON( addBundleGroupRequestBody: AddBundleGroupRequestBody, ): string { @@ -92,7 +78,6 @@ export function addBundleGroupRequestBodyToJSON( AddBundleGroupRequestBody$outboundSchema.parse(addBundleGroupRequestBody), ); } - export function addBundleGroupRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -117,7 +102,6 @@ export const AddBundleGroupRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddBundleGroupRequest$Outbound = { bundle_id: string; @@ -139,19 +123,6 @@ export const AddBundleGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddBundleGroupRequest$ { - /** @deprecated use `AddBundleGroupRequest$inboundSchema` instead. */ - export const inboundSchema = AddBundleGroupRequest$inboundSchema; - /** @deprecated use `AddBundleGroupRequest$outboundSchema` instead. */ - export const outboundSchema = AddBundleGroupRequest$outboundSchema; - /** @deprecated use `AddBundleGroupRequest$Outbound` instead. */ - export type Outbound = AddBundleGroupRequest$Outbound; -} - export function addBundleGroupRequestToJSON( addBundleGroupRequest: AddBundleGroupRequest, ): string { @@ -159,7 +130,6 @@ export function addBundleGroupRequestToJSON( AddBundleGroupRequest$outboundSchema.parse(addBundleGroupRequest), ); } - export function addBundleGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addbundleresource.ts b/src/models/operations/addbundleresource.ts index db43102..6a1c209 100644 --- a/src/models/operations/addbundleresource.ts +++ b/src/models/operations/addbundleresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -47,7 +47,6 @@ export const AddBundleResourceRequestBody$inboundSchema: z.ZodType< "access_level_name": "accessLevelName", }); }); - /** @internal */ export type AddBundleResourceRequestBody$Outbound = { resource_id: string; @@ -72,19 +71,6 @@ export const AddBundleResourceRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddBundleResourceRequestBody$ { - /** @deprecated use `AddBundleResourceRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddBundleResourceRequestBody$inboundSchema; - /** @deprecated use `AddBundleResourceRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddBundleResourceRequestBody$outboundSchema; - /** @deprecated use `AddBundleResourceRequestBody$Outbound` instead. */ - export type Outbound = AddBundleResourceRequestBody$Outbound; -} - export function addBundleResourceRequestBodyToJSON( addBundleResourceRequestBody: AddBundleResourceRequestBody, ): string { @@ -94,7 +80,6 @@ export function addBundleResourceRequestBodyToJSON( ), ); } - export function addBundleResourceRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const AddBundleResourceRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddBundleResourceRequest$Outbound = { bundle_id: string; @@ -143,19 +127,6 @@ export const AddBundleResourceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddBundleResourceRequest$ { - /** @deprecated use `AddBundleResourceRequest$inboundSchema` instead. */ - export const inboundSchema = AddBundleResourceRequest$inboundSchema; - /** @deprecated use `AddBundleResourceRequest$outboundSchema` instead. */ - export const outboundSchema = AddBundleResourceRequest$outboundSchema; - /** @deprecated use `AddBundleResourceRequest$Outbound` instead. */ - export type Outbound = AddBundleResourceRequest$Outbound; -} - export function addBundleResourceRequestToJSON( addBundleResourceRequest: AddBundleResourceRequest, ): string { @@ -163,7 +134,6 @@ export function addBundleResourceRequestToJSON( AddBundleResourceRequest$outboundSchema.parse(addBundleResourceRequest), ); } - export function addBundleResourceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addgroupcontaininggroup.ts b/src/models/operations/addgroupcontaininggroup.ts index d26e07a..aa39ce4 100644 --- a/src/models/operations/addgroupcontaininggroup.ts +++ b/src/models/operations/addgroupcontaininggroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const AddGroupContainingGroupRequest$inboundSchema: z.ZodType< "GroupContainingGroup": "groupContainingGroup", }); }); - /** @internal */ export type AddGroupContainingGroupRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const AddGroupContainingGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupContainingGroupRequest$ { - /** @deprecated use `AddGroupContainingGroupRequest$inboundSchema` instead. */ - export const inboundSchema = AddGroupContainingGroupRequest$inboundSchema; - /** @deprecated use `AddGroupContainingGroupRequest$outboundSchema` instead. */ - export const outboundSchema = AddGroupContainingGroupRequest$outboundSchema; - /** @deprecated use `AddGroupContainingGroupRequest$Outbound` instead. */ - export type Outbound = AddGroupContainingGroupRequest$Outbound; -} - export function addGroupContainingGroupRequestToJSON( addGroupContainingGroupRequest: AddGroupContainingGroupRequest, ): string { @@ -75,7 +61,6 @@ export function addGroupContainingGroupRequestToJSON( ), ); } - export function addGroupContainingGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addgroupresource.ts b/src/models/operations/addgroupresource.ts index d0c88db..b47ac68 100644 --- a/src/models/operations/addgroupresource.ts +++ b/src/models/operations/addgroupresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -51,7 +51,6 @@ export const AddGroupResourceRequestBody$inboundSchema: z.ZodType< "duration_minutes": "durationMinutes", }); }); - /** @internal */ export type AddGroupResourceRequestBody$Outbound = { access_level_remote_id?: string | undefined; @@ -73,19 +72,6 @@ export const AddGroupResourceRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupResourceRequestBody$ { - /** @deprecated use `AddGroupResourceRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddGroupResourceRequestBody$inboundSchema; - /** @deprecated use `AddGroupResourceRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddGroupResourceRequestBody$outboundSchema; - /** @deprecated use `AddGroupResourceRequestBody$Outbound` instead. */ - export type Outbound = AddGroupResourceRequestBody$Outbound; -} - export function addGroupResourceRequestBodyToJSON( addGroupResourceRequestBody: AddGroupResourceRequestBody, ): string { @@ -95,7 +81,6 @@ export function addGroupResourceRequestBodyToJSON( ), ); } - export function addGroupResourceRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -125,7 +110,6 @@ export const AddGroupResourceRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddGroupResourceRequest$Outbound = { group_id: string; @@ -154,19 +138,6 @@ export const AddGroupResourceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupResourceRequest$ { - /** @deprecated use `AddGroupResourceRequest$inboundSchema` instead. */ - export const inboundSchema = AddGroupResourceRequest$inboundSchema; - /** @deprecated use `AddGroupResourceRequest$outboundSchema` instead. */ - export const outboundSchema = AddGroupResourceRequest$outboundSchema; - /** @deprecated use `AddGroupResourceRequest$Outbound` instead. */ - export type Outbound = AddGroupResourceRequest$Outbound; -} - export function addGroupResourceRequestToJSON( addGroupResourceRequest: AddGroupResourceRequest, ): string { @@ -174,7 +145,6 @@ export function addGroupResourceRequestToJSON( AddGroupResourceRequest$outboundSchema.parse(addGroupResourceRequest), ); } - export function addGroupResourceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addgrouptag.ts b/src/models/operations/addgrouptag.ts index 80cd8c9..96ab0f5 100644 --- a/src/models/operations/addgrouptag.ts +++ b/src/models/operations/addgrouptag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const AddGroupTagRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type AddGroupTagRequest$Outbound = { tag_id: string; @@ -55,19 +54,6 @@ export const AddGroupTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupTagRequest$ { - /** @deprecated use `AddGroupTagRequest$inboundSchema` instead. */ - export const inboundSchema = AddGroupTagRequest$inboundSchema; - /** @deprecated use `AddGroupTagRequest$outboundSchema` instead. */ - export const outboundSchema = AddGroupTagRequest$outboundSchema; - /** @deprecated use `AddGroupTagRequest$Outbound` instead. */ - export type Outbound = AddGroupTagRequest$Outbound; -} - export function addGroupTagRequestToJSON( addGroupTagRequest: AddGroupTagRequest, ): string { @@ -75,7 +61,6 @@ export function addGroupTagRequestToJSON( AddGroupTagRequest$outboundSchema.parse(addGroupTagRequest), ); } - export function addGroupTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addgroupuser.ts b/src/models/operations/addgroupuser.ts index 6d5ecfc..77b1449 100644 --- a/src/models/operations/addgroupuser.ts +++ b/src/models/operations/addgroupuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -57,7 +57,6 @@ export const AddGroupUserRequestBody$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type AddGroupUserRequestBody$Outbound = { duration_minutes: number; @@ -79,19 +78,6 @@ export const AddGroupUserRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupUserRequestBody$ { - /** @deprecated use `AddGroupUserRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddGroupUserRequestBody$inboundSchema; - /** @deprecated use `AddGroupUserRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddGroupUserRequestBody$outboundSchema; - /** @deprecated use `AddGroupUserRequestBody$Outbound` instead. */ - export type Outbound = AddGroupUserRequestBody$Outbound; -} - export function addGroupUserRequestBodyToJSON( addGroupUserRequestBody: AddGroupUserRequestBody, ): string { @@ -99,7 +85,6 @@ export function addGroupUserRequestBodyToJSON( AddGroupUserRequestBody$outboundSchema.parse(addGroupUserRequestBody), ); } - export function addGroupUserRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -130,7 +115,6 @@ export const AddGroupUserRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddGroupUserRequest$Outbound = { group_id: string; @@ -161,19 +145,6 @@ export const AddGroupUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddGroupUserRequest$ { - /** @deprecated use `AddGroupUserRequest$inboundSchema` instead. */ - export const inboundSchema = AddGroupUserRequest$inboundSchema; - /** @deprecated use `AddGroupUserRequest$outboundSchema` instead. */ - export const outboundSchema = AddGroupUserRequest$outboundSchema; - /** @deprecated use `AddGroupUserRequest$Outbound` instead. */ - export type Outbound = AddGroupUserRequest$Outbound; -} - export function addGroupUserRequestToJSON( addGroupUserRequest: AddGroupUserRequest, ): string { @@ -181,7 +152,6 @@ export function addGroupUserRequestToJSON( AddGroupUserRequest$outboundSchema.parse(addGroupUserRequest), ); } - export function addGroupUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addresourcenhi.ts b/src/models/operations/addresourcenhi.ts index a272bdb..8bc247b 100644 --- a/src/models/operations/addresourcenhi.ts +++ b/src/models/operations/addresourcenhi.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const AddResourceNhiRequestBody$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type AddResourceNhiRequestBody$Outbound = { duration_minutes: number; @@ -67,19 +66,6 @@ export const AddResourceNhiRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddResourceNhiRequestBody$ { - /** @deprecated use `AddResourceNhiRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddResourceNhiRequestBody$inboundSchema; - /** @deprecated use `AddResourceNhiRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddResourceNhiRequestBody$outboundSchema; - /** @deprecated use `AddResourceNhiRequestBody$Outbound` instead. */ - export type Outbound = AddResourceNhiRequestBody$Outbound; -} - export function addResourceNhiRequestBodyToJSON( addResourceNhiRequestBody: AddResourceNhiRequestBody, ): string { @@ -87,7 +73,6 @@ export function addResourceNhiRequestBodyToJSON( AddResourceNhiRequestBody$outboundSchema.parse(addResourceNhiRequestBody), ); } - export function addResourceNhiRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -114,7 +99,6 @@ export const AddResourceNhiRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddResourceNhiRequest$Outbound = { resource_id: string; @@ -140,19 +124,6 @@ export const AddResourceNhiRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddResourceNhiRequest$ { - /** @deprecated use `AddResourceNhiRequest$inboundSchema` instead. */ - export const inboundSchema = AddResourceNhiRequest$inboundSchema; - /** @deprecated use `AddResourceNhiRequest$outboundSchema` instead. */ - export const outboundSchema = AddResourceNhiRequest$outboundSchema; - /** @deprecated use `AddResourceNhiRequest$Outbound` instead. */ - export type Outbound = AddResourceNhiRequest$Outbound; -} - export function addResourceNhiRequestToJSON( addResourceNhiRequest: AddResourceNhiRequest, ): string { @@ -160,7 +131,6 @@ export function addResourceNhiRequestToJSON( AddResourceNhiRequest$outboundSchema.parse(addResourceNhiRequest), ); } - export function addResourceNhiRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addresourcetag.ts b/src/models/operations/addresourcetag.ts index 4a521cb..9337cff 100644 --- a/src/models/operations/addresourcetag.ts +++ b/src/models/operations/addresourcetag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const AddResourceTagRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type AddResourceTagRequest$Outbound = { tag_id: string; @@ -55,19 +54,6 @@ export const AddResourceTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddResourceTagRequest$ { - /** @deprecated use `AddResourceTagRequest$inboundSchema` instead. */ - export const inboundSchema = AddResourceTagRequest$inboundSchema; - /** @deprecated use `AddResourceTagRequest$outboundSchema` instead. */ - export const outboundSchema = AddResourceTagRequest$outboundSchema; - /** @deprecated use `AddResourceTagRequest$Outbound` instead. */ - export type Outbound = AddResourceTagRequest$Outbound; -} - export function addResourceTagRequestToJSON( addResourceTagRequest: AddResourceTagRequest, ): string { @@ -75,7 +61,6 @@ export function addResourceTagRequestToJSON( AddResourceTagRequest$outboundSchema.parse(addResourceTagRequest), ); } - export function addResourceTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addresourceuser.ts b/src/models/operations/addresourceuser.ts index 71f4932..47fda97 100644 --- a/src/models/operations/addresourceuser.ts +++ b/src/models/operations/addresourceuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -57,7 +57,6 @@ export const AddResourceUserRequestBody$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type AddResourceUserRequestBody$Outbound = { duration_minutes: number; @@ -79,19 +78,6 @@ export const AddResourceUserRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddResourceUserRequestBody$ { - /** @deprecated use `AddResourceUserRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddResourceUserRequestBody$inboundSchema; - /** @deprecated use `AddResourceUserRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddResourceUserRequestBody$outboundSchema; - /** @deprecated use `AddResourceUserRequestBody$Outbound` instead. */ - export type Outbound = AddResourceUserRequestBody$Outbound; -} - export function addResourceUserRequestBodyToJSON( addResourceUserRequestBody: AddResourceUserRequestBody, ): string { @@ -99,7 +85,6 @@ export function addResourceUserRequestBodyToJSON( AddResourceUserRequestBody$outboundSchema.parse(addResourceUserRequestBody), ); } - export function addResourceUserRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -131,7 +116,6 @@ export const AddResourceUserRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddResourceUserRequest$Outbound = { resource_id: string; @@ -163,19 +147,6 @@ export const AddResourceUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddResourceUserRequest$ { - /** @deprecated use `AddResourceUserRequest$inboundSchema` instead. */ - export const inboundSchema = AddResourceUserRequest$inboundSchema; - /** @deprecated use `AddResourceUserRequest$outboundSchema` instead. */ - export const outboundSchema = AddResourceUserRequest$outboundSchema; - /** @deprecated use `AddResourceUserRequest$Outbound` instead. */ - export type Outbound = AddResourceUserRequest$Outbound; -} - export function addResourceUserRequestToJSON( addResourceUserRequest: AddResourceUserRequest, ): string { @@ -183,7 +154,6 @@ export function addResourceUserRequestToJSON( AddResourceUserRequest$outboundSchema.parse(addResourceUserRequest), ); } - export function addResourceUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/addusertag.ts b/src/models/operations/addusertag.ts index 512b7bd..0d7b7c0 100644 --- a/src/models/operations/addusertag.ts +++ b/src/models/operations/addusertag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -28,7 +28,6 @@ export const AddUserTagRequestBody$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type AddUserTagRequestBody$Outbound = {}; @@ -39,19 +38,6 @@ export const AddUserTagRequestBody$outboundSchema: z.ZodType< AddUserTagRequestBody > = z.object({}); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddUserTagRequestBody$ { - /** @deprecated use `AddUserTagRequestBody$inboundSchema` instead. */ - export const inboundSchema = AddUserTagRequestBody$inboundSchema; - /** @deprecated use `AddUserTagRequestBody$outboundSchema` instead. */ - export const outboundSchema = AddUserTagRequestBody$outboundSchema; - /** @deprecated use `AddUserTagRequestBody$Outbound` instead. */ - export type Outbound = AddUserTagRequestBody$Outbound; -} - export function addUserTagRequestBodyToJSON( addUserTagRequestBody: AddUserTagRequestBody, ): string { @@ -59,7 +45,6 @@ export function addUserTagRequestBodyToJSON( AddUserTagRequestBody$outboundSchema.parse(addUserTagRequestBody), ); } - export function addUserTagRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -86,7 +71,6 @@ export const AddUserTagRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type AddUserTagRequest$Outbound = { tag_id: string; @@ -111,19 +95,6 @@ export const AddUserTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddUserTagRequest$ { - /** @deprecated use `AddUserTagRequest$inboundSchema` instead. */ - export const inboundSchema = AddUserTagRequest$inboundSchema; - /** @deprecated use `AddUserTagRequest$outboundSchema` instead. */ - export const outboundSchema = AddUserTagRequest$outboundSchema; - /** @deprecated use `AddUserTagRequest$Outbound` instead. */ - export type Outbound = AddUserTagRequest$Outbound; -} - export function addUserTagRequestToJSON( addUserTagRequest: AddUserTagRequest, ): string { @@ -131,7 +102,6 @@ export function addUserTagRequestToJSON( AddUserTagRequest$outboundSchema.parse(addUserTagRequest), ); } - export function addUserTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/approverequest.ts b/src/models/operations/approverequest.ts index 0f6ce6f..1413653 100644 --- a/src/models/operations/approverequest.ts +++ b/src/models/operations/approverequest.ts @@ -2,26 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -/** - * The decision level for the approval - */ -export const Level = { - Regular: "REGULAR", - Admin: "ADMIN", -} as const; -/** - * The decision level for the approval - */ -export type Level = ClosedEnum; - /** * Approval parameters */ @@ -29,7 +16,7 @@ export type ApproveRequestRequestBody = { /** * The decision level for the approval */ - level: Level; + level: components.RequestApprovalEnum; /** * Optional comment for the approval */ @@ -62,42 +49,17 @@ export type ApproveRequestResponse = { * Returned from the `GET Requests` endpoint. */ request?: components.RequestT | undefined; - /** - * ID of the task created for propagating access - */ - taskId?: string | undefined; }; -/** @internal */ -export const Level$inboundSchema: z.ZodNativeEnum = z.nativeEnum( - Level, -); - -/** @internal */ -export const Level$outboundSchema: z.ZodNativeEnum = - Level$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Level$ { - /** @deprecated use `Level$inboundSchema` instead. */ - export const inboundSchema = Level$inboundSchema; - /** @deprecated use `Level$outboundSchema` instead. */ - export const outboundSchema = Level$outboundSchema; -} - /** @internal */ export const ApproveRequestRequestBody$inboundSchema: z.ZodType< ApproveRequestRequestBody, z.ZodTypeDef, unknown > = z.object({ - level: Level$inboundSchema, + level: components.RequestApprovalEnum$inboundSchema, comment: z.string().optional(), }); - /** @internal */ export type ApproveRequestRequestBody$Outbound = { level: string; @@ -110,23 +72,10 @@ export const ApproveRequestRequestBody$outboundSchema: z.ZodType< z.ZodTypeDef, ApproveRequestRequestBody > = z.object({ - level: Level$outboundSchema, + level: components.RequestApprovalEnum$outboundSchema, comment: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApproveRequestRequestBody$ { - /** @deprecated use `ApproveRequestRequestBody$inboundSchema` instead. */ - export const inboundSchema = ApproveRequestRequestBody$inboundSchema; - /** @deprecated use `ApproveRequestRequestBody$outboundSchema` instead. */ - export const outboundSchema = ApproveRequestRequestBody$outboundSchema; - /** @deprecated use `ApproveRequestRequestBody$Outbound` instead. */ - export type Outbound = ApproveRequestRequestBody$Outbound; -} - export function approveRequestRequestBodyToJSON( approveRequestRequestBody: ApproveRequestRequestBody, ): string { @@ -134,7 +83,6 @@ export function approveRequestRequestBodyToJSON( ApproveRequestRequestBody$outboundSchema.parse(approveRequestRequestBody), ); } - export function approveRequestRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -158,7 +106,6 @@ export const ApproveRequestRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type ApproveRequestRequest$Outbound = { id: string; @@ -179,19 +126,6 @@ export const ApproveRequestRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApproveRequestRequest$ { - /** @deprecated use `ApproveRequestRequest$inboundSchema` instead. */ - export const inboundSchema = ApproveRequestRequest$inboundSchema; - /** @deprecated use `ApproveRequestRequest$outboundSchema` instead. */ - export const outboundSchema = ApproveRequestRequest$outboundSchema; - /** @deprecated use `ApproveRequestRequest$Outbound` instead. */ - export type Outbound = ApproveRequestRequest$Outbound; -} - export function approveRequestRequestToJSON( approveRequestRequest: ApproveRequestRequest, ): string { @@ -199,7 +133,6 @@ export function approveRequestRequestToJSON( ApproveRequestRequest$outboundSchema.parse(approveRequestRequest), ); } - export function approveRequestRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -217,13 +150,10 @@ export const ApproveRequestResponse$inboundSchema: z.ZodType< unknown > = z.object({ request: components.RequestT$inboundSchema.optional(), - taskId: z.string().optional(), }); - /** @internal */ export type ApproveRequestResponse$Outbound = { request?: components.RequestT$Outbound | undefined; - taskId?: string | undefined; }; /** @internal */ @@ -233,22 +163,8 @@ export const ApproveRequestResponse$outboundSchema: z.ZodType< ApproveRequestResponse > = z.object({ request: components.RequestT$outboundSchema.optional(), - taskId: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApproveRequestResponse$ { - /** @deprecated use `ApproveRequestResponse$inboundSchema` instead. */ - export const inboundSchema = ApproveRequestResponse$inboundSchema; - /** @deprecated use `ApproveRequestResponse$outboundSchema` instead. */ - export const outboundSchema = ApproveRequestResponse$outboundSchema; - /** @deprecated use `ApproveRequestResponse$Outbound` instead. */ - export type Outbound = ApproveRequestResponse$Outbound; -} - export function approveRequestResponseToJSON( approveRequestResponse: ApproveRequestResponse, ): string { @@ -256,7 +172,6 @@ export function approveRequestResponseToJSON( ApproveRequestResponse$outboundSchema.parse(approveRequestResponse), ); } - export function approveRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createidpgroupmapping.ts b/src/models/operations/createidpgroupmapping.ts new file mode 100644 index 0000000..7c845b6 --- /dev/null +++ b/src/models/operations/createidpgroupmapping.ts @@ -0,0 +1,150 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type CreateIdpGroupMappingRequestBody = { + /** + * Optional alias for the group mapping + */ + alias?: string | null | undefined; + /** + * Whether this mapping should be hidden from end users. + * + * @remarks + * - **New mappings**: If not provided, defaults to `false` + * - **Existing mappings**: If not provided, existing value is preserved (no change) + * - **Explicit values**: If provided, value is updated to the specified boolean + */ + hiddenFromEndUser?: boolean | null | undefined; +}; + +export type CreateIdpGroupMappingRequest = { + /** + * The ID of the Okta app. + */ + appResourceId: string; + /** + * The ID of the group. + */ + groupId: string; + requestBody?: CreateIdpGroupMappingRequestBody | undefined; +}; + +/** @internal */ +export const CreateIdpGroupMappingRequestBody$inboundSchema: z.ZodType< + CreateIdpGroupMappingRequestBody, + z.ZodTypeDef, + unknown +> = z.object({ + alias: z.nullable(z.string()).optional(), + hidden_from_end_user: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + "hidden_from_end_user": "hiddenFromEndUser", + }); +}); +/** @internal */ +export type CreateIdpGroupMappingRequestBody$Outbound = { + alias?: string | null | undefined; + hidden_from_end_user?: boolean | null | undefined; +}; + +/** @internal */ +export const CreateIdpGroupMappingRequestBody$outboundSchema: z.ZodType< + CreateIdpGroupMappingRequestBody$Outbound, + z.ZodTypeDef, + CreateIdpGroupMappingRequestBody +> = z.object({ + alias: z.nullable(z.string()).optional(), + hiddenFromEndUser: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + hiddenFromEndUser: "hidden_from_end_user", + }); +}); + +export function createIdpGroupMappingRequestBodyToJSON( + createIdpGroupMappingRequestBody: CreateIdpGroupMappingRequestBody, +): string { + return JSON.stringify( + CreateIdpGroupMappingRequestBody$outboundSchema.parse( + createIdpGroupMappingRequestBody, + ), + ); +} +export function createIdpGroupMappingRequestBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateIdpGroupMappingRequestBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIdpGroupMappingRequestBody' from JSON`, + ); +} + +/** @internal */ +export const CreateIdpGroupMappingRequest$inboundSchema: z.ZodType< + CreateIdpGroupMappingRequest, + z.ZodTypeDef, + unknown +> = z.object({ + app_resource_id: z.string(), + group_id: z.string(), + RequestBody: z.lazy(() => CreateIdpGroupMappingRequestBody$inboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + "app_resource_id": "appResourceId", + "group_id": "groupId", + "RequestBody": "requestBody", + }); +}); +/** @internal */ +export type CreateIdpGroupMappingRequest$Outbound = { + app_resource_id: string; + group_id: string; + RequestBody?: CreateIdpGroupMappingRequestBody$Outbound | undefined; +}; + +/** @internal */ +export const CreateIdpGroupMappingRequest$outboundSchema: z.ZodType< + CreateIdpGroupMappingRequest$Outbound, + z.ZodTypeDef, + CreateIdpGroupMappingRequest +> = z.object({ + appResourceId: z.string(), + groupId: z.string(), + requestBody: z.lazy(() => CreateIdpGroupMappingRequestBody$outboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + appResourceId: "app_resource_id", + groupId: "group_id", + requestBody: "RequestBody", + }); +}); + +export function createIdpGroupMappingRequestToJSON( + createIdpGroupMappingRequest: CreateIdpGroupMappingRequest, +): string { + return JSON.stringify( + CreateIdpGroupMappingRequest$outboundSchema.parse( + createIdpGroupMappingRequest, + ), + ); +} +export function createIdpGroupMappingRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateIdpGroupMappingRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateIdpGroupMappingRequest' from JSON`, + ); +} diff --git a/src/models/operations/createrequest.ts b/src/models/operations/createrequest.ts index cfae967..161d34a 100644 --- a/src/models/operations/createrequest.ts +++ b/src/models/operations/createrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const CreateRequestResponse$inboundSchema: z.ZodType< > = z.object({ id: z.string().optional(), }); - /** @internal */ export type CreateRequestResponse$Outbound = { id?: string | undefined; @@ -37,19 +36,6 @@ export const CreateRequestResponse$outboundSchema: z.ZodType< id: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateRequestResponse$ { - /** @deprecated use `CreateRequestResponse$inboundSchema` instead. */ - export const inboundSchema = CreateRequestResponse$inboundSchema; - /** @deprecated use `CreateRequestResponse$outboundSchema` instead. */ - export const outboundSchema = CreateRequestResponse$outboundSchema; - /** @deprecated use `CreateRequestResponse$Outbound` instead. */ - export type Outbound = CreateRequestResponse$Outbound; -} - export function createRequestResponseToJSON( createRequestResponse: CreateRequestResponse, ): string { @@ -57,7 +43,6 @@ export function createRequestResponseToJSON( CreateRequestResponse$outboundSchema.parse(createRequestResponse), ); } - export function createRequestResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/createrequestcomment.ts b/src/models/operations/createrequestcomment.ts new file mode 100644 index 0000000..f346bee --- /dev/null +++ b/src/models/operations/createrequestcomment.ts @@ -0,0 +1,182 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Comment parameters + */ +export type CreateRequestCommentRequestBody = { + /** + * comment + */ + comment: string; +}; + +export type CreateRequestCommentRequest = { + /** + * The ID of the request to comment on + */ + id: string; + /** + * Comment parameters + */ + requestBody: CreateRequestCommentRequestBody; +}; + +/** + * Request successfully commented + */ +export type CreateRequestCommentResponse = { + /** + * # Request Object + * + * @remarks + * ### Description + * The `Request` object is used to represent a request. + * + * ### Usage Example + * Returned from the `GET Requests` endpoint. + */ + request?: components.RequestT | undefined; +}; + +/** @internal */ +export const CreateRequestCommentRequestBody$inboundSchema: z.ZodType< + CreateRequestCommentRequestBody, + z.ZodTypeDef, + unknown +> = z.object({ + comment: z.string(), +}); +/** @internal */ +export type CreateRequestCommentRequestBody$Outbound = { + comment: string; +}; + +/** @internal */ +export const CreateRequestCommentRequestBody$outboundSchema: z.ZodType< + CreateRequestCommentRequestBody$Outbound, + z.ZodTypeDef, + CreateRequestCommentRequestBody +> = z.object({ + comment: z.string(), +}); + +export function createRequestCommentRequestBodyToJSON( + createRequestCommentRequestBody: CreateRequestCommentRequestBody, +): string { + return JSON.stringify( + CreateRequestCommentRequestBody$outboundSchema.parse( + createRequestCommentRequestBody, + ), + ); +} +export function createRequestCommentRequestBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateRequestCommentRequestBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateRequestCommentRequestBody' from JSON`, + ); +} + +/** @internal */ +export const CreateRequestCommentRequest$inboundSchema: z.ZodType< + CreateRequestCommentRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + RequestBody: z.lazy(() => CreateRequestCommentRequestBody$inboundSchema), +}).transform((v) => { + return remap$(v, { + "RequestBody": "requestBody", + }); +}); +/** @internal */ +export type CreateRequestCommentRequest$Outbound = { + id: string; + RequestBody: CreateRequestCommentRequestBody$Outbound; +}; + +/** @internal */ +export const CreateRequestCommentRequest$outboundSchema: z.ZodType< + CreateRequestCommentRequest$Outbound, + z.ZodTypeDef, + CreateRequestCommentRequest +> = z.object({ + id: z.string(), + requestBody: z.lazy(() => CreateRequestCommentRequestBody$outboundSchema), +}).transform((v) => { + return remap$(v, { + requestBody: "RequestBody", + }); +}); + +export function createRequestCommentRequestToJSON( + createRequestCommentRequest: CreateRequestCommentRequest, +): string { + return JSON.stringify( + CreateRequestCommentRequest$outboundSchema.parse( + createRequestCommentRequest, + ), + ); +} +export function createRequestCommentRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateRequestCommentRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateRequestCommentRequest' from JSON`, + ); +} + +/** @internal */ +export const CreateRequestCommentResponse$inboundSchema: z.ZodType< + CreateRequestCommentResponse, + z.ZodTypeDef, + unknown +> = z.object({ + request: components.RequestT$inboundSchema.optional(), +}); +/** @internal */ +export type CreateRequestCommentResponse$Outbound = { + request?: components.RequestT$Outbound | undefined; +}; + +/** @internal */ +export const CreateRequestCommentResponse$outboundSchema: z.ZodType< + CreateRequestCommentResponse$Outbound, + z.ZodTypeDef, + CreateRequestCommentResponse +> = z.object({ + request: components.RequestT$outboundSchema.optional(), +}); + +export function createRequestCommentResponseToJSON( + createRequestCommentResponse: CreateRequestCommentResponse, +): string { + return JSON.stringify( + CreateRequestCommentResponse$outboundSchema.parse( + createRequestCommentResponse, + ), + ); +} +export function createRequestCommentResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateRequestCommentResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateRequestCommentResponse' from JSON`, + ); +} diff --git a/src/models/operations/createtag.ts b/src/models/operations/createtag.ts index e6077ee..926753d 100644 --- a/src/models/operations/createtag.ts +++ b/src/models/operations/createtag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -49,7 +49,6 @@ export const CreateTagRequest$inboundSchema: z.ZodType< "CreateTagInfo": "createTagInfo", }); }); - /** @internal */ export type CreateTagRequest$Outbound = { tag_key?: string | undefined; @@ -77,19 +76,6 @@ export const CreateTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateTagRequest$ { - /** @deprecated use `CreateTagRequest$inboundSchema` instead. */ - export const inboundSchema = CreateTagRequest$inboundSchema; - /** @deprecated use `CreateTagRequest$outboundSchema` instead. */ - export const outboundSchema = CreateTagRequest$outboundSchema; - /** @deprecated use `CreateTagRequest$Outbound` instead. */ - export type Outbound = CreateTagRequest$Outbound; -} - export function createTagRequestToJSON( createTagRequest: CreateTagRequest, ): string { @@ -97,7 +83,6 @@ export function createTagRequestToJSON( CreateTagRequest$outboundSchema.parse(createTagRequest), ); } - export function createTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletebundle.ts b/src/models/operations/deletebundle.ts index 3c18a58..e9d8cd6 100644 --- a/src/models/operations/deletebundle.ts +++ b/src/models/operations/deletebundle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteBundleRequest$inboundSchema: z.ZodType< "bundle_id": "bundleId", }); }); - /** @internal */ export type DeleteBundleRequest$Outbound = { bundle_id: string; @@ -46,19 +45,6 @@ export const DeleteBundleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteBundleRequest$ { - /** @deprecated use `DeleteBundleRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteBundleRequest$inboundSchema; - /** @deprecated use `DeleteBundleRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteBundleRequest$outboundSchema; - /** @deprecated use `DeleteBundleRequest$Outbound` instead. */ - export type Outbound = DeleteBundleRequest$Outbound; -} - export function deleteBundleRequestToJSON( deleteBundleRequest: DeleteBundleRequest, ): string { @@ -66,7 +52,6 @@ export function deleteBundleRequestToJSON( DeleteBundleRequest$outboundSchema.parse(deleteBundleRequest), ); } - export function deleteBundleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteconfigurationtemplate.ts b/src/models/operations/deleteconfigurationtemplate.ts index 7849e36..ceadfdf 100644 --- a/src/models/operations/deleteconfigurationtemplate.ts +++ b/src/models/operations/deleteconfigurationtemplate.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteConfigurationTemplateRequest$inboundSchema: z.ZodType< "configuration_template_id": "configurationTemplateId", }); }); - /** @internal */ export type DeleteConfigurationTemplateRequest$Outbound = { configuration_template_id: string; @@ -46,20 +45,6 @@ export const DeleteConfigurationTemplateRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConfigurationTemplateRequest$ { - /** @deprecated use `DeleteConfigurationTemplateRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteConfigurationTemplateRequest$inboundSchema; - /** @deprecated use `DeleteConfigurationTemplateRequest$outboundSchema` instead. */ - export const outboundSchema = - DeleteConfigurationTemplateRequest$outboundSchema; - /** @deprecated use `DeleteConfigurationTemplateRequest$Outbound` instead. */ - export type Outbound = DeleteConfigurationTemplateRequest$Outbound; -} - export function deleteConfigurationTemplateRequestToJSON( deleteConfigurationTemplateRequest: DeleteConfigurationTemplateRequest, ): string { @@ -69,7 +54,6 @@ export function deleteConfigurationTemplateRequestToJSON( ), ); } - export function deleteConfigurationTemplateRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletedelegation.ts b/src/models/operations/deletedelegation.ts new file mode 100644 index 0000000..1ada1f2 --- /dev/null +++ b/src/models/operations/deletedelegation.ts @@ -0,0 +1,63 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type DeleteDelegationRequest = { + /** + * The ID of the delegation to remove. + */ + delegationId: string; +}; + +/** @internal */ +export const DeleteDelegationRequest$inboundSchema: z.ZodType< + DeleteDelegationRequest, + z.ZodTypeDef, + unknown +> = z.object({ + delegation_id: z.string(), +}).transform((v) => { + return remap$(v, { + "delegation_id": "delegationId", + }); +}); +/** @internal */ +export type DeleteDelegationRequest$Outbound = { + delegation_id: string; +}; + +/** @internal */ +export const DeleteDelegationRequest$outboundSchema: z.ZodType< + DeleteDelegationRequest$Outbound, + z.ZodTypeDef, + DeleteDelegationRequest +> = z.object({ + delegationId: z.string(), +}).transform((v) => { + return remap$(v, { + delegationId: "delegation_id", + }); +}); + +export function deleteDelegationRequestToJSON( + deleteDelegationRequest: DeleteDelegationRequest, +): string { + return JSON.stringify( + DeleteDelegationRequest$outboundSchema.parse(deleteDelegationRequest), + ); +} +export function deleteDelegationRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteDelegationRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteDelegationRequest' from JSON`, + ); +} diff --git a/src/models/operations/deletegroup.ts b/src/models/operations/deletegroup.ts index a99b195..5666349 100644 --- a/src/models/operations/deletegroup.ts +++ b/src/models/operations/deletegroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteGroupRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type DeleteGroupRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const DeleteGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteGroupRequest$ { - /** @deprecated use `DeleteGroupRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteGroupRequest$inboundSchema; - /** @deprecated use `DeleteGroupRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteGroupRequest$outboundSchema; - /** @deprecated use `DeleteGroupRequest$Outbound` instead. */ - export type Outbound = DeleteGroupRequest$Outbound; -} - export function deleteGroupRequestToJSON( deleteGroupRequest: DeleteGroupRequest, ): string { @@ -66,7 +52,6 @@ export function deleteGroupRequestToJSON( DeleteGroupRequest$outboundSchema.parse(deleteGroupRequest), ); } - export function deleteGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletegroupbinding.ts b/src/models/operations/deletegroupbinding.ts index 92ae132..803a3f4 100644 --- a/src/models/operations/deletegroupbinding.ts +++ b/src/models/operations/deletegroupbinding.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteGroupBindingRequest$inboundSchema: z.ZodType< "group_binding_id": "groupBindingId", }); }); - /** @internal */ export type DeleteGroupBindingRequest$Outbound = { group_binding_id: string; @@ -46,19 +45,6 @@ export const DeleteGroupBindingRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteGroupBindingRequest$ { - /** @deprecated use `DeleteGroupBindingRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteGroupBindingRequest$inboundSchema; - /** @deprecated use `DeleteGroupBindingRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteGroupBindingRequest$outboundSchema; - /** @deprecated use `DeleteGroupBindingRequest$Outbound` instead. */ - export type Outbound = DeleteGroupBindingRequest$Outbound; -} - export function deleteGroupBindingRequestToJSON( deleteGroupBindingRequest: DeleteGroupBindingRequest, ): string { @@ -66,7 +52,6 @@ export function deleteGroupBindingRequestToJSON( DeleteGroupBindingRequest$outboundSchema.parse(deleteGroupBindingRequest), ); } - export function deleteGroupBindingRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletegroupuser.ts b/src/models/operations/deletegroupuser.ts index 9d441ea..9233fa6 100644 --- a/src/models/operations/deletegroupuser.ts +++ b/src/models/operations/deletegroupuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const DeleteGroupUserRequest$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type DeleteGroupUserRequest$Outbound = { group_id: string; @@ -64,19 +63,6 @@ export const DeleteGroupUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteGroupUserRequest$ { - /** @deprecated use `DeleteGroupUserRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteGroupUserRequest$inboundSchema; - /** @deprecated use `DeleteGroupUserRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteGroupUserRequest$outboundSchema; - /** @deprecated use `DeleteGroupUserRequest$Outbound` instead. */ - export type Outbound = DeleteGroupUserRequest$Outbound; -} - export function deleteGroupUserRequestToJSON( deleteGroupUserRequest: DeleteGroupUserRequest, ): string { @@ -84,7 +70,6 @@ export function deleteGroupUserRequestToJSON( DeleteGroupUserRequest$outboundSchema.parse(deleteGroupUserRequest), ); } - export function deleteGroupUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteidpgroupmappings.ts b/src/models/operations/deleteidpgroupmappings.ts index e190bd0..8ddb83c 100644 --- a/src/models/operations/deleteidpgroupmappings.ts +++ b/src/models/operations/deleteidpgroupmappings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const DeleteIdpGroupMappingsRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type DeleteIdpGroupMappingsRequest$Outbound = { app_resource_id: string; @@ -55,19 +54,6 @@ export const DeleteIdpGroupMappingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteIdpGroupMappingsRequest$ { - /** @deprecated use `DeleteIdpGroupMappingsRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteIdpGroupMappingsRequest$inboundSchema; - /** @deprecated use `DeleteIdpGroupMappingsRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteIdpGroupMappingsRequest$outboundSchema; - /** @deprecated use `DeleteIdpGroupMappingsRequest$Outbound` instead. */ - export type Outbound = DeleteIdpGroupMappingsRequest$Outbound; -} - export function deleteIdpGroupMappingsRequestToJSON( deleteIdpGroupMappingsRequest: DeleteIdpGroupMappingsRequest, ): string { @@ -77,7 +63,6 @@ export function deleteIdpGroupMappingsRequestToJSON( ), ); } - export function deleteIdpGroupMappingsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteowner.ts b/src/models/operations/deleteowner.ts index d4b25af..c6400cf 100644 --- a/src/models/operations/deleteowner.ts +++ b/src/models/operations/deleteowner.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteOwnerRequest$inboundSchema: z.ZodType< "owner_id": "ownerId", }); }); - /** @internal */ export type DeleteOwnerRequest$Outbound = { owner_id: string; @@ -46,19 +45,6 @@ export const DeleteOwnerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteOwnerRequest$ { - /** @deprecated use `DeleteOwnerRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteOwnerRequest$inboundSchema; - /** @deprecated use `DeleteOwnerRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteOwnerRequest$outboundSchema; - /** @deprecated use `DeleteOwnerRequest$Outbound` instead. */ - export type Outbound = DeleteOwnerRequest$Outbound; -} - export function deleteOwnerRequestToJSON( deleteOwnerRequest: DeleteOwnerRequest, ): string { @@ -66,7 +52,6 @@ export function deleteOwnerRequestToJSON( DeleteOwnerRequest$outboundSchema.parse(deleteOwnerRequest), ); } - export function deleteOwnerRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteresource.ts b/src/models/operations/deleteresource.ts index a60aa44..bc355c7 100644 --- a/src/models/operations/deleteresource.ts +++ b/src/models/operations/deleteresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteResourceRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type DeleteResourceRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const DeleteResourceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteResourceRequest$ { - /** @deprecated use `DeleteResourceRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteResourceRequest$inboundSchema; - /** @deprecated use `DeleteResourceRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteResourceRequest$outboundSchema; - /** @deprecated use `DeleteResourceRequest$Outbound` instead. */ - export type Outbound = DeleteResourceRequest$Outbound; -} - export function deleteResourceRequestToJSON( deleteResourceRequest: DeleteResourceRequest, ): string { @@ -66,7 +52,6 @@ export function deleteResourceRequestToJSON( DeleteResourceRequest$outboundSchema.parse(deleteResourceRequest), ); } - export function deleteResourceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteresourcenhi.ts b/src/models/operations/deleteresourcenhi.ts index f396793..251efea 100644 --- a/src/models/operations/deleteresourcenhi.ts +++ b/src/models/operations/deleteresourcenhi.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const DeleteResourceNhiRequest$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type DeleteResourceNhiRequest$Outbound = { resource_id: string; @@ -64,19 +63,6 @@ export const DeleteResourceNhiRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteResourceNhiRequest$ { - /** @deprecated use `DeleteResourceNhiRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteResourceNhiRequest$inboundSchema; - /** @deprecated use `DeleteResourceNhiRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteResourceNhiRequest$outboundSchema; - /** @deprecated use `DeleteResourceNhiRequest$Outbound` instead. */ - export type Outbound = DeleteResourceNhiRequest$Outbound; -} - export function deleteResourceNhiRequestToJSON( deleteResourceNhiRequest: DeleteResourceNhiRequest, ): string { @@ -84,7 +70,6 @@ export function deleteResourceNhiRequestToJSON( DeleteResourceNhiRequest$outboundSchema.parse(deleteResourceNhiRequest), ); } - export function deleteResourceNhiRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deleteresourceuser.ts b/src/models/operations/deleteresourceuser.ts index c7b51ab..b32a48d 100644 --- a/src/models/operations/deleteresourceuser.ts +++ b/src/models/operations/deleteresourceuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const DeleteResourceUserRequest$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type DeleteResourceUserRequest$Outbound = { resource_id: string; @@ -64,19 +63,6 @@ export const DeleteResourceUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteResourceUserRequest$ { - /** @deprecated use `DeleteResourceUserRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteResourceUserRequest$inboundSchema; - /** @deprecated use `DeleteResourceUserRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteResourceUserRequest$outboundSchema; - /** @deprecated use `DeleteResourceUserRequest$Outbound` instead. */ - export type Outbound = DeleteResourceUserRequest$Outbound; -} - export function deleteResourceUserRequestToJSON( deleteResourceUserRequest: DeleteResourceUserRequest, ): string { @@ -84,7 +70,6 @@ export function deleteResourceUserRequestToJSON( DeleteResourceUserRequest$outboundSchema.parse(deleteResourceUserRequest), ); } - export function deleteResourceUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletetagbyid.ts b/src/models/operations/deletetagbyid.ts index a4e6174..64bb22d 100644 --- a/src/models/operations/deletetagbyid.ts +++ b/src/models/operations/deletetagbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const DeleteTagByIDRequest$inboundSchema: z.ZodType< "tag_id": "tagId", }); }); - /** @internal */ export type DeleteTagByIDRequest$Outbound = { tag_id: string; @@ -46,19 +45,6 @@ export const DeleteTagByIDRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteTagByIDRequest$ { - /** @deprecated use `DeleteTagByIDRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteTagByIDRequest$inboundSchema; - /** @deprecated use `DeleteTagByIDRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteTagByIDRequest$outboundSchema; - /** @deprecated use `DeleteTagByIDRequest$Outbound` instead. */ - export type Outbound = DeleteTagByIDRequest$Outbound; -} - export function deleteTagByIDRequestToJSON( deleteTagByIDRequest: DeleteTagByIDRequest, ): string { @@ -66,7 +52,6 @@ export function deleteTagByIDRequestToJSON( DeleteTagByIDRequest$outboundSchema.parse(deleteTagByIDRequest), ); } - export function deleteTagByIDRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/denyrequest.ts b/src/models/operations/denyrequest.ts new file mode 100644 index 0000000..36d7ecb --- /dev/null +++ b/src/models/operations/denyrequest.ts @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Denial parameters + */ +export type DenyRequestRequestBody = { + /** + * Comment for the denial + */ + comment: string; + /** + * The decision level for the approval + */ + level?: components.RequestApprovalEnum | undefined; +}; + +export type DenyRequestRequest = { + /** + * The ID of the request to deny + */ + id: string; + /** + * Denial parameters + */ + requestBody: DenyRequestRequestBody; +}; + +/** + * Request successfully denied + */ +export type DenyRequestResponse = { + /** + * # Request Object + * + * @remarks + * ### Description + * The `Request` object is used to represent a request. + * + * ### Usage Example + * Returned from the `GET Requests` endpoint. + */ + request?: components.RequestT | undefined; +}; + +/** @internal */ +export const DenyRequestRequestBody$inboundSchema: z.ZodType< + DenyRequestRequestBody, + z.ZodTypeDef, + unknown +> = z.object({ + comment: z.string(), + level: components.RequestApprovalEnum$inboundSchema.optional(), +}); +/** @internal */ +export type DenyRequestRequestBody$Outbound = { + comment: string; + level?: string | undefined; +}; + +/** @internal */ +export const DenyRequestRequestBody$outboundSchema: z.ZodType< + DenyRequestRequestBody$Outbound, + z.ZodTypeDef, + DenyRequestRequestBody +> = z.object({ + comment: z.string(), + level: components.RequestApprovalEnum$outboundSchema.optional(), +}); + +export function denyRequestRequestBodyToJSON( + denyRequestRequestBody: DenyRequestRequestBody, +): string { + return JSON.stringify( + DenyRequestRequestBody$outboundSchema.parse(denyRequestRequestBody), + ); +} +export function denyRequestRequestBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DenyRequestRequestBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DenyRequestRequestBody' from JSON`, + ); +} + +/** @internal */ +export const DenyRequestRequest$inboundSchema: z.ZodType< + DenyRequestRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + RequestBody: z.lazy(() => DenyRequestRequestBody$inboundSchema), +}).transform((v) => { + return remap$(v, { + "RequestBody": "requestBody", + }); +}); +/** @internal */ +export type DenyRequestRequest$Outbound = { + id: string; + RequestBody: DenyRequestRequestBody$Outbound; +}; + +/** @internal */ +export const DenyRequestRequest$outboundSchema: z.ZodType< + DenyRequestRequest$Outbound, + z.ZodTypeDef, + DenyRequestRequest +> = z.object({ + id: z.string(), + requestBody: z.lazy(() => DenyRequestRequestBody$outboundSchema), +}).transform((v) => { + return remap$(v, { + requestBody: "RequestBody", + }); +}); + +export function denyRequestRequestToJSON( + denyRequestRequest: DenyRequestRequest, +): string { + return JSON.stringify( + DenyRequestRequest$outboundSchema.parse(denyRequestRequest), + ); +} +export function denyRequestRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DenyRequestRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DenyRequestRequest' from JSON`, + ); +} + +/** @internal */ +export const DenyRequestResponse$inboundSchema: z.ZodType< + DenyRequestResponse, + z.ZodTypeDef, + unknown +> = z.object({ + request: components.RequestT$inboundSchema.optional(), +}); +/** @internal */ +export type DenyRequestResponse$Outbound = { + request?: components.RequestT$Outbound | undefined; +}; + +/** @internal */ +export const DenyRequestResponse$outboundSchema: z.ZodType< + DenyRequestResponse$Outbound, + z.ZodTypeDef, + DenyRequestResponse +> = z.object({ + request: components.RequestT$outboundSchema.optional(), +}); + +export function denyRequestResponseToJSON( + denyRequestResponse: DenyRequestResponse, +): string { + return JSON.stringify( + DenyRequestResponse$outboundSchema.parse(denyRequestResponse), + ); +} +export function denyRequestResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DenyRequestResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DenyRequestResponse' from JSON`, + ); +} diff --git a/src/models/operations/events.ts b/src/models/operations/events.ts index 5d0af99..e90718d 100644 --- a/src/models/operations/events.ts +++ b/src/models/operations/events.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -73,7 +73,6 @@ export const EventsRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type EventsRequest$Outbound = { start_date_filter?: string | undefined; @@ -112,23 +111,9 @@ export const EventsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsRequest$ { - /** @deprecated use `EventsRequest$inboundSchema` instead. */ - export const inboundSchema = EventsRequest$inboundSchema; - /** @deprecated use `EventsRequest$outboundSchema` instead. */ - export const outboundSchema = EventsRequest$outboundSchema; - /** @deprecated use `EventsRequest$Outbound` instead. */ - export type Outbound = EventsRequest$Outbound; -} - export function eventsRequestToJSON(eventsRequest: EventsRequest): string { return JSON.stringify(EventsRequest$outboundSchema.parse(eventsRequest)); } - export function eventsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -151,7 +136,6 @@ export const EventsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type EventsResponse$Outbound = { Result: components.PaginatedEventList$Outbound; @@ -170,23 +154,9 @@ export const EventsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsResponse$ { - /** @deprecated use `EventsResponse$inboundSchema` instead. */ - export const inboundSchema = EventsResponse$inboundSchema; - /** @deprecated use `EventsResponse$outboundSchema` instead. */ - export const outboundSchema = EventsResponse$outboundSchema; - /** @deprecated use `EventsResponse$Outbound` instead. */ - export type Outbound = EventsResponse$Outbound; -} - export function eventsResponseToJSON(eventsResponse: EventsResponse): string { return JSON.stringify(EventsResponse$outboundSchema.parse(eventsResponse)); } - export function eventsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getaccessrule.ts b/src/models/operations/getaccessrule.ts index 075c416..8d84814 100644 --- a/src/models/operations/getaccessrule.ts +++ b/src/models/operations/getaccessrule.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetAccessRuleRequest$inboundSchema: z.ZodType< "access_rule_id": "accessRuleId", }); }); - /** @internal */ export type GetAccessRuleRequest$Outbound = { access_rule_id: string; @@ -46,19 +45,6 @@ export const GetAccessRuleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAccessRuleRequest$ { - /** @deprecated use `GetAccessRuleRequest$inboundSchema` instead. */ - export const inboundSchema = GetAccessRuleRequest$inboundSchema; - /** @deprecated use `GetAccessRuleRequest$outboundSchema` instead. */ - export const outboundSchema = GetAccessRuleRequest$outboundSchema; - /** @deprecated use `GetAccessRuleRequest$Outbound` instead. */ - export type Outbound = GetAccessRuleRequest$Outbound; -} - export function getAccessRuleRequestToJSON( getAccessRuleRequest: GetAccessRuleRequest, ): string { @@ -66,7 +52,6 @@ export function getAccessRuleRequestToJSON( GetAccessRuleRequest$outboundSchema.parse(getAccessRuleRequest), ); } - export function getAccessRuleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getapp.ts b/src/models/operations/getapp.ts index d234bc3..f11f0b9 100644 --- a/src/models/operations/getapp.ts +++ b/src/models/operations/getapp.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetAppRequest$inboundSchema: z.ZodType< "app_id": "appId", }); }); - /** @internal */ export type GetAppRequest$Outbound = { app_id: string; @@ -46,23 +45,9 @@ export const GetAppRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAppRequest$ { - /** @deprecated use `GetAppRequest$inboundSchema` instead. */ - export const inboundSchema = GetAppRequest$inboundSchema; - /** @deprecated use `GetAppRequest$outboundSchema` instead. */ - export const outboundSchema = GetAppRequest$outboundSchema; - /** @deprecated use `GetAppRequest$Outbound` instead. */ - export type Outbound = GetAppRequest$Outbound; -} - export function getAppRequestToJSON(getAppRequest: GetAppRequest): string { return JSON.stringify(GetAppRequest$outboundSchema.parse(getAppRequest)); } - export function getAppRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getapps.ts b/src/models/operations/getapps.ts index 270f6cc..ccd1120 100644 --- a/src/models/operations/getapps.ts +++ b/src/models/operations/getapps.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -34,7 +34,6 @@ export const GetAppsRequest$inboundSchema: z.ZodType< "owner_filter": "ownerFilter", }); }); - /** @internal */ export type GetAppsRequest$Outbound = { app_type_filter?: Array | undefined; @@ -56,23 +55,9 @@ export const GetAppsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAppsRequest$ { - /** @deprecated use `GetAppsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAppsRequest$inboundSchema; - /** @deprecated use `GetAppsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAppsRequest$outboundSchema; - /** @deprecated use `GetAppsRequest$Outbound` instead. */ - export type Outbound = GetAppsRequest$Outbound; -} - export function getAppsRequestToJSON(getAppsRequest: GetAppsRequest): string { return JSON.stringify(GetAppsRequest$outboundSchema.parse(getAppsRequest)); } - export function getAppsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getbundle.ts b/src/models/operations/getbundle.ts index df111eb..e470cd0 100644 --- a/src/models/operations/getbundle.ts +++ b/src/models/operations/getbundle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetBundleRequest$inboundSchema: z.ZodType< "bundle_id": "bundleId", }); }); - /** @internal */ export type GetBundleRequest$Outbound = { bundle_id: string; @@ -46,19 +45,6 @@ export const GetBundleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleRequest$ { - /** @deprecated use `GetBundleRequest$inboundSchema` instead. */ - export const inboundSchema = GetBundleRequest$inboundSchema; - /** @deprecated use `GetBundleRequest$outboundSchema` instead. */ - export const outboundSchema = GetBundleRequest$outboundSchema; - /** @deprecated use `GetBundleRequest$Outbound` instead. */ - export type Outbound = GetBundleRequest$Outbound; -} - export function getBundleRequestToJSON( getBundleRequest: GetBundleRequest, ): string { @@ -66,7 +52,6 @@ export function getBundleRequestToJSON( GetBundleRequest$outboundSchema.parse(getBundleRequest), ); } - export function getBundleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getbundlegroups.ts b/src/models/operations/getbundlegroups.ts index d1b1332..3f850cc 100644 --- a/src/models/operations/getbundlegroups.ts +++ b/src/models/operations/getbundlegroups.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const GetBundleGroupsRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetBundleGroupsRequest$Outbound = { bundle_id: string; @@ -67,19 +66,6 @@ export const GetBundleGroupsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleGroupsRequest$ { - /** @deprecated use `GetBundleGroupsRequest$inboundSchema` instead. */ - export const inboundSchema = GetBundleGroupsRequest$inboundSchema; - /** @deprecated use `GetBundleGroupsRequest$outboundSchema` instead. */ - export const outboundSchema = GetBundleGroupsRequest$outboundSchema; - /** @deprecated use `GetBundleGroupsRequest$Outbound` instead. */ - export type Outbound = GetBundleGroupsRequest$Outbound; -} - export function getBundleGroupsRequestToJSON( getBundleGroupsRequest: GetBundleGroupsRequest, ): string { @@ -87,7 +73,6 @@ export function getBundleGroupsRequestToJSON( GetBundleGroupsRequest$outboundSchema.parse(getBundleGroupsRequest), ); } - export function getBundleGroupsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const GetBundleGroupsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetBundleGroupsResponse$Outbound = { Result: components.PaginatedBundleGroupList$Outbound; @@ -129,19 +113,6 @@ export const GetBundleGroupsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleGroupsResponse$ { - /** @deprecated use `GetBundleGroupsResponse$inboundSchema` instead. */ - export const inboundSchema = GetBundleGroupsResponse$inboundSchema; - /** @deprecated use `GetBundleGroupsResponse$outboundSchema` instead. */ - export const outboundSchema = GetBundleGroupsResponse$outboundSchema; - /** @deprecated use `GetBundleGroupsResponse$Outbound` instead. */ - export type Outbound = GetBundleGroupsResponse$Outbound; -} - export function getBundleGroupsResponseToJSON( getBundleGroupsResponse: GetBundleGroupsResponse, ): string { @@ -149,7 +120,6 @@ export function getBundleGroupsResponseToJSON( GetBundleGroupsResponse$outboundSchema.parse(getBundleGroupsResponse), ); } - export function getBundleGroupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getbundleresources.ts b/src/models/operations/getbundleresources.ts index dad3199..5604b41 100644 --- a/src/models/operations/getbundleresources.ts +++ b/src/models/operations/getbundleresources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const GetBundleResourcesRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetBundleResourcesRequest$Outbound = { bundle_id: string; @@ -67,19 +66,6 @@ export const GetBundleResourcesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleResourcesRequest$ { - /** @deprecated use `GetBundleResourcesRequest$inboundSchema` instead. */ - export const inboundSchema = GetBundleResourcesRequest$inboundSchema; - /** @deprecated use `GetBundleResourcesRequest$outboundSchema` instead. */ - export const outboundSchema = GetBundleResourcesRequest$outboundSchema; - /** @deprecated use `GetBundleResourcesRequest$Outbound` instead. */ - export type Outbound = GetBundleResourcesRequest$Outbound; -} - export function getBundleResourcesRequestToJSON( getBundleResourcesRequest: GetBundleResourcesRequest, ): string { @@ -87,7 +73,6 @@ export function getBundleResourcesRequestToJSON( GetBundleResourcesRequest$outboundSchema.parse(getBundleResourcesRequest), ); } - export function getBundleResourcesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const GetBundleResourcesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetBundleResourcesResponse$Outbound = { Result: components.PaginatedBundleResourceList$Outbound; @@ -129,19 +113,6 @@ export const GetBundleResourcesResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleResourcesResponse$ { - /** @deprecated use `GetBundleResourcesResponse$inboundSchema` instead. */ - export const inboundSchema = GetBundleResourcesResponse$inboundSchema; - /** @deprecated use `GetBundleResourcesResponse$outboundSchema` instead. */ - export const outboundSchema = GetBundleResourcesResponse$outboundSchema; - /** @deprecated use `GetBundleResourcesResponse$Outbound` instead. */ - export type Outbound = GetBundleResourcesResponse$Outbound; -} - export function getBundleResourcesResponseToJSON( getBundleResourcesResponse: GetBundleResourcesResponse, ): string { @@ -149,7 +120,6 @@ export function getBundleResourcesResponseToJSON( GetBundleResourcesResponse$outboundSchema.parse(getBundleResourcesResponse), ); } - export function getBundleResourcesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getbundles.ts b/src/models/operations/getbundles.ts index 82e89e6..575de92 100644 --- a/src/models/operations/getbundles.ts +++ b/src/models/operations/getbundles.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,7 +42,6 @@ export const GetBundlesRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetBundlesRequest$Outbound = { page_size?: number | undefined; @@ -65,19 +64,6 @@ export const GetBundlesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundlesRequest$ { - /** @deprecated use `GetBundlesRequest$inboundSchema` instead. */ - export const inboundSchema = GetBundlesRequest$inboundSchema; - /** @deprecated use `GetBundlesRequest$outboundSchema` instead. */ - export const outboundSchema = GetBundlesRequest$outboundSchema; - /** @deprecated use `GetBundlesRequest$Outbound` instead. */ - export type Outbound = GetBundlesRequest$Outbound; -} - export function getBundlesRequestToJSON( getBundlesRequest: GetBundlesRequest, ): string { @@ -85,7 +71,6 @@ export function getBundlesRequestToJSON( GetBundlesRequest$outboundSchema.parse(getBundlesRequest), ); } - export function getBundlesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const GetBundlesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetBundlesResponse$Outbound = { Result: components.PaginatedBundleList$Outbound; @@ -127,19 +111,6 @@ export const GetBundlesResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundlesResponse$ { - /** @deprecated use `GetBundlesResponse$inboundSchema` instead. */ - export const inboundSchema = GetBundlesResponse$inboundSchema; - /** @deprecated use `GetBundlesResponse$outboundSchema` instead. */ - export const outboundSchema = GetBundlesResponse$outboundSchema; - /** @deprecated use `GetBundlesResponse$Outbound` instead. */ - export type Outbound = GetBundlesResponse$Outbound; -} - export function getBundlesResponseToJSON( getBundlesResponse: GetBundlesResponse, ): string { @@ -147,7 +118,6 @@ export function getBundlesResponseToJSON( GetBundlesResponse$outboundSchema.parse(getBundlesResponse), ); } - export function getBundlesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getbundlevisibility.ts b/src/models/operations/getbundlevisibility.ts index e8001ec..d05d6b5 100644 --- a/src/models/operations/getbundlevisibility.ts +++ b/src/models/operations/getbundlevisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetBundleVisibilityRequest$inboundSchema: z.ZodType< "bundle_id": "bundleId", }); }); - /** @internal */ export type GetBundleVisibilityRequest$Outbound = { bundle_id: string; @@ -46,19 +45,6 @@ export const GetBundleVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBundleVisibilityRequest$ { - /** @deprecated use `GetBundleVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = GetBundleVisibilityRequest$inboundSchema; - /** @deprecated use `GetBundleVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = GetBundleVisibilityRequest$outboundSchema; - /** @deprecated use `GetBundleVisibilityRequest$Outbound` instead. */ - export type Outbound = GetBundleVisibilityRequest$Outbound; -} - export function getBundleVisibilityRequestToJSON( getBundleVisibilityRequest: GetBundleVisibilityRequest, ): string { @@ -66,7 +52,6 @@ export function getBundleVisibilityRequestToJSON( GetBundleVisibilityRequest$outboundSchema.parse(getBundleVisibilityRequest), ); } - export function getBundleVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getdelegation.ts b/src/models/operations/getdelegation.ts new file mode 100644 index 0000000..0717c93 --- /dev/null +++ b/src/models/operations/getdelegation.ts @@ -0,0 +1,63 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetDelegationRequest = { + /** + * The ID of the delegation to retrieve. + */ + delegationId: string; +}; + +/** @internal */ +export const GetDelegationRequest$inboundSchema: z.ZodType< + GetDelegationRequest, + z.ZodTypeDef, + unknown +> = z.object({ + delegation_id: z.string(), +}).transform((v) => { + return remap$(v, { + "delegation_id": "delegationId", + }); +}); +/** @internal */ +export type GetDelegationRequest$Outbound = { + delegation_id: string; +}; + +/** @internal */ +export const GetDelegationRequest$outboundSchema: z.ZodType< + GetDelegationRequest$Outbound, + z.ZodTypeDef, + GetDelegationRequest +> = z.object({ + delegationId: z.string(), +}).transform((v) => { + return remap$(v, { + delegationId: "delegation_id", + }); +}); + +export function getDelegationRequestToJSON( + getDelegationRequest: GetDelegationRequest, +): string { + return JSON.stringify( + GetDelegationRequest$outboundSchema.parse(getDelegationRequest), + ); +} +export function getDelegationRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetDelegationRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetDelegationRequest' from JSON`, + ); +} diff --git a/src/models/operations/getdelegations.ts b/src/models/operations/getdelegations.ts new file mode 100644 index 0000000..293de6b --- /dev/null +++ b/src/models/operations/getdelegations.ts @@ -0,0 +1,88 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetDelegationsRequest = { + /** + * The delegator user ID to filter delegations by the user delegating their access review requests. + */ + delegatorUserId?: string | undefined; + /** + * The delegate user ID to filter delegations by the user being delegated to. + */ + delegateUserId?: string | undefined; + /** + * A cursor to indicate where to start fetching results. + */ + cursor?: string | undefined; + /** + * The maximum number of results to return per page. The default is 200. + */ + pageSize?: number | undefined; +}; + +/** @internal */ +export const GetDelegationsRequest$inboundSchema: z.ZodType< + GetDelegationsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + delegator_user_id: z.string().optional(), + delegate_user_id: z.string().optional(), + cursor: z.string().optional(), + page_size: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "delegator_user_id": "delegatorUserId", + "delegate_user_id": "delegateUserId", + "page_size": "pageSize", + }); +}); +/** @internal */ +export type GetDelegationsRequest$Outbound = { + delegator_user_id?: string | undefined; + delegate_user_id?: string | undefined; + cursor?: string | undefined; + page_size?: number | undefined; +}; + +/** @internal */ +export const GetDelegationsRequest$outboundSchema: z.ZodType< + GetDelegationsRequest$Outbound, + z.ZodTypeDef, + GetDelegationsRequest +> = z.object({ + delegatorUserId: z.string().optional(), + delegateUserId: z.string().optional(), + cursor: z.string().optional(), + pageSize: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + delegatorUserId: "delegator_user_id", + delegateUserId: "delegate_user_id", + pageSize: "page_size", + }); +}); + +export function getDelegationsRequestToJSON( + getDelegationsRequest: GetDelegationsRequest, +): string { + return JSON.stringify( + GetDelegationsRequest$outboundSchema.parse(getDelegationsRequest), + ); +} +export function getDelegationsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetDelegationsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetDelegationsRequest' from JSON`, + ); +} diff --git a/src/models/operations/getgroup.ts b/src/models/operations/getgroup.ts index f6a3dbb..0cbf170 100644 --- a/src/models/operations/getgroup.ts +++ b/src/models/operations/getgroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupRequest$Outbound = { group_id: string; @@ -46,25 +45,11 @@ export const GetGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupRequest$ { - /** @deprecated use `GetGroupRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupRequest$inboundSchema; - /** @deprecated use `GetGroupRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupRequest$outboundSchema; - /** @deprecated use `GetGroupRequest$Outbound` instead. */ - export type Outbound = GetGroupRequest$Outbound; -} - export function getGroupRequestToJSON( getGroupRequest: GetGroupRequest, ): string { return JSON.stringify(GetGroupRequest$outboundSchema.parse(getGroupRequest)); } - export function getGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupbinding.ts b/src/models/operations/getgroupbinding.ts index e4fa9fe..543c7e2 100644 --- a/src/models/operations/getgroupbinding.ts +++ b/src/models/operations/getgroupbinding.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupBindingRequest$inboundSchema: z.ZodType< "group_binding_id": "groupBindingId", }); }); - /** @internal */ export type GetGroupBindingRequest$Outbound = { group_binding_id: string; @@ -46,19 +45,6 @@ export const GetGroupBindingRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupBindingRequest$ { - /** @deprecated use `GetGroupBindingRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupBindingRequest$inboundSchema; - /** @deprecated use `GetGroupBindingRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupBindingRequest$outboundSchema; - /** @deprecated use `GetGroupBindingRequest$Outbound` instead. */ - export type Outbound = GetGroupBindingRequest$Outbound; -} - export function getGroupBindingRequestToJSON( getGroupBindingRequest: GetGroupBindingRequest, ): string { @@ -66,7 +52,6 @@ export function getGroupBindingRequestToJSON( GetGroupBindingRequest$outboundSchema.parse(getGroupBindingRequest), ); } - export function getGroupBindingRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupbindings.ts b/src/models/operations/getgroupbindings.ts index 4d28634..f37765c 100644 --- a/src/models/operations/getgroupbindings.ts +++ b/src/models/operations/getgroupbindings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const GetGroupBindingsRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetGroupBindingsRequest$Outbound = { cursor?: string | undefined; @@ -58,19 +57,6 @@ export const GetGroupBindingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupBindingsRequest$ { - /** @deprecated use `GetGroupBindingsRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupBindingsRequest$inboundSchema; - /** @deprecated use `GetGroupBindingsRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupBindingsRequest$outboundSchema; - /** @deprecated use `GetGroupBindingsRequest$Outbound` instead. */ - export type Outbound = GetGroupBindingsRequest$Outbound; -} - export function getGroupBindingsRequestToJSON( getGroupBindingsRequest: GetGroupBindingsRequest, ): string { @@ -78,7 +64,6 @@ export function getGroupBindingsRequestToJSON( GetGroupBindingsRequest$outboundSchema.parse(getGroupBindingsRequest), ); } - export function getGroupBindingsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -101,7 +86,6 @@ export const GetGroupBindingsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetGroupBindingsResponse$Outbound = { Result: components.PaginatedGroupBindingsList$Outbound; @@ -120,19 +104,6 @@ export const GetGroupBindingsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupBindingsResponse$ { - /** @deprecated use `GetGroupBindingsResponse$inboundSchema` instead. */ - export const inboundSchema = GetGroupBindingsResponse$inboundSchema; - /** @deprecated use `GetGroupBindingsResponse$outboundSchema` instead. */ - export const outboundSchema = GetGroupBindingsResponse$outboundSchema; - /** @deprecated use `GetGroupBindingsResponse$Outbound` instead. */ - export type Outbound = GetGroupBindingsResponse$Outbound; -} - export function getGroupBindingsResponseToJSON( getGroupBindingsResponse: GetGroupBindingsResponse, ): string { @@ -140,7 +111,6 @@ export function getGroupBindingsResponseToJSON( GetGroupBindingsResponse$outboundSchema.parse(getGroupBindingsResponse), ); } - export function getGroupBindingsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupcontaininggroup.ts b/src/models/operations/getgroupcontaininggroup.ts index 91cae0f..7174330 100644 --- a/src/models/operations/getgroupcontaininggroup.ts +++ b/src/models/operations/getgroupcontaininggroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const GetGroupContainingGroupRequest$inboundSchema: z.ZodType< "containing_group_id": "containingGroupId", }); }); - /** @internal */ export type GetGroupContainingGroupRequest$Outbound = { group_id: string; @@ -55,19 +54,6 @@ export const GetGroupContainingGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupContainingGroupRequest$ { - /** @deprecated use `GetGroupContainingGroupRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupContainingGroupRequest$inboundSchema; - /** @deprecated use `GetGroupContainingGroupRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupContainingGroupRequest$outboundSchema; - /** @deprecated use `GetGroupContainingGroupRequest$Outbound` instead. */ - export type Outbound = GetGroupContainingGroupRequest$Outbound; -} - export function getGroupContainingGroupRequestToJSON( getGroupContainingGroupRequest: GetGroupContainingGroupRequest, ): string { @@ -77,7 +63,6 @@ export function getGroupContainingGroupRequestToJSON( ), ); } - export function getGroupContainingGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupcontaininggroups.ts b/src/models/operations/getgroupcontaininggroups.ts index 0c7beab..10a9b2d 100644 --- a/src/models/operations/getgroupcontaininggroups.ts +++ b/src/models/operations/getgroupcontaininggroups.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupContainingGroupsRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupContainingGroupsRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupContainingGroupsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupContainingGroupsRequest$ { - /** @deprecated use `GetGroupContainingGroupsRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupContainingGroupsRequest$inboundSchema; - /** @deprecated use `GetGroupContainingGroupsRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupContainingGroupsRequest$outboundSchema; - /** @deprecated use `GetGroupContainingGroupsRequest$Outbound` instead. */ - export type Outbound = GetGroupContainingGroupsRequest$Outbound; -} - export function getGroupContainingGroupsRequestToJSON( getGroupContainingGroupsRequest: GetGroupContainingGroupsRequest, ): string { @@ -68,7 +54,6 @@ export function getGroupContainingGroupsRequestToJSON( ), ); } - export function getGroupContainingGroupsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupmessagechannels.ts b/src/models/operations/getgroupmessagechannels.ts index 32a2763..41df416 100644 --- a/src/models/operations/getgroupmessagechannels.ts +++ b/src/models/operations/getgroupmessagechannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupMessageChannelsRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupMessageChannelsRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupMessageChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupMessageChannelsRequest$ { - /** @deprecated use `GetGroupMessageChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupMessageChannelsRequest$inboundSchema; - /** @deprecated use `GetGroupMessageChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupMessageChannelsRequest$outboundSchema; - /** @deprecated use `GetGroupMessageChannelsRequest$Outbound` instead. */ - export type Outbound = GetGroupMessageChannelsRequest$Outbound; -} - export function getGroupMessageChannelsRequestToJSON( getGroupMessageChannelsRequest: GetGroupMessageChannelsRequest, ): string { @@ -68,7 +54,6 @@ export function getGroupMessageChannelsRequestToJSON( ), ); } - export function getGroupMessageChannelsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgrouponcallschedules.ts b/src/models/operations/getgrouponcallschedules.ts index 82ef6fd..d8a248a 100644 --- a/src/models/operations/getgrouponcallschedules.ts +++ b/src/models/operations/getgrouponcallschedules.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupOnCallSchedulesRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupOnCallSchedulesRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupOnCallSchedulesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupOnCallSchedulesRequest$ { - /** @deprecated use `GetGroupOnCallSchedulesRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupOnCallSchedulesRequest$inboundSchema; - /** @deprecated use `GetGroupOnCallSchedulesRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupOnCallSchedulesRequest$outboundSchema; - /** @deprecated use `GetGroupOnCallSchedulesRequest$Outbound` instead. */ - export type Outbound = GetGroupOnCallSchedulesRequest$Outbound; -} - export function getGroupOnCallSchedulesRequestToJSON( getGroupOnCallSchedulesRequest: GetGroupOnCallSchedulesRequest, ): string { @@ -68,7 +54,6 @@ export function getGroupOnCallSchedulesRequestToJSON( ), ); } - export function getGroupOnCallSchedulesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupresources.ts b/src/models/operations/getgroupresources.ts index abdf722..9a9bc73 100644 --- a/src/models/operations/getgroupresources.ts +++ b/src/models/operations/getgroupresources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupResourcesRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupResourcesRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupResourcesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupResourcesRequest$ { - /** @deprecated use `GetGroupResourcesRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupResourcesRequest$inboundSchema; - /** @deprecated use `GetGroupResourcesRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupResourcesRequest$outboundSchema; - /** @deprecated use `GetGroupResourcesRequest$Outbound` instead. */ - export type Outbound = GetGroupResourcesRequest$Outbound; -} - export function getGroupResourcesRequestToJSON( getGroupResourcesRequest: GetGroupResourcesRequest, ): string { @@ -66,7 +52,6 @@ export function getGroupResourcesRequestToJSON( GetGroupResourcesRequest$outboundSchema.parse(getGroupResourcesRequest), ); } - export function getGroupResourcesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupreviewers.ts b/src/models/operations/getgroupreviewers.ts index 745c145..0ec3ac3 100644 --- a/src/models/operations/getgroupreviewers.ts +++ b/src/models/operations/getgroupreviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupReviewersRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupReviewersRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupReviewersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupReviewersRequest$ { - /** @deprecated use `GetGroupReviewersRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupReviewersRequest$inboundSchema; - /** @deprecated use `GetGroupReviewersRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupReviewersRequest$outboundSchema; - /** @deprecated use `GetGroupReviewersRequest$Outbound` instead. */ - export type Outbound = GetGroupReviewersRequest$Outbound; -} - export function getGroupReviewersRequestToJSON( getGroupReviewersRequest: GetGroupReviewersRequest, ): string { @@ -66,7 +52,6 @@ export function getGroupReviewersRequestToJSON( GetGroupReviewersRequest$outboundSchema.parse(getGroupReviewersRequest), ); } - export function getGroupReviewersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupreviewerstages.ts b/src/models/operations/getgroupreviewerstages.ts index d47a4a5..d331e6f 100644 --- a/src/models/operations/getgroupreviewerstages.ts +++ b/src/models/operations/getgroupreviewerstages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupReviewerStagesRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupReviewerStagesRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupReviewerStagesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupReviewerStagesRequest$ { - /** @deprecated use `GetGroupReviewerStagesRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupReviewerStagesRequest$inboundSchema; - /** @deprecated use `GetGroupReviewerStagesRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupReviewerStagesRequest$outboundSchema; - /** @deprecated use `GetGroupReviewerStagesRequest$Outbound` instead. */ - export type Outbound = GetGroupReviewerStagesRequest$Outbound; -} - export function getGroupReviewerStagesRequestToJSON( getGroupReviewerStagesRequest: GetGroupReviewerStagesRequest, ): string { @@ -68,7 +54,6 @@ export function getGroupReviewerStagesRequestToJSON( ), ); } - export function getGroupReviewerStagesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroups.ts b/src/models/operations/getgroups.ts index fb5e034..bc16f56 100644 --- a/src/models/operations/getgroups.ts +++ b/src/models/operations/getgroups.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -55,7 +55,6 @@ export const GetGroupsRequest$inboundSchema: z.ZodType< "group_name": "groupName", }); }); - /** @internal */ export type GetGroupsRequest$Outbound = { cursor?: string | undefined; @@ -85,19 +84,6 @@ export const GetGroupsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupsRequest$ { - /** @deprecated use `GetGroupsRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupsRequest$inboundSchema; - /** @deprecated use `GetGroupsRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupsRequest$outboundSchema; - /** @deprecated use `GetGroupsRequest$Outbound` instead. */ - export type Outbound = GetGroupsRequest$Outbound; -} - export function getGroupsRequestToJSON( getGroupsRequest: GetGroupsRequest, ): string { @@ -105,7 +91,6 @@ export function getGroupsRequestToJSON( GetGroupsRequest$outboundSchema.parse(getGroupsRequest), ); } - export function getGroupsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +113,6 @@ export const GetGroupsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetGroupsResponse$Outbound = { Result: components.PaginatedGroupsList$Outbound; @@ -147,19 +131,6 @@ export const GetGroupsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupsResponse$ { - /** @deprecated use `GetGroupsResponse$inboundSchema` instead. */ - export const inboundSchema = GetGroupsResponse$inboundSchema; - /** @deprecated use `GetGroupsResponse$outboundSchema` instead. */ - export const outboundSchema = GetGroupsResponse$outboundSchema; - /** @deprecated use `GetGroupsResponse$Outbound` instead. */ - export type Outbound = GetGroupsResponse$Outbound; -} - export function getGroupsResponseToJSON( getGroupsResponse: GetGroupsResponse, ): string { @@ -167,7 +138,6 @@ export function getGroupsResponseToJSON( GetGroupsResponse$outboundSchema.parse(getGroupsResponse), ); } - export function getGroupsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgrouptags.ts b/src/models/operations/getgrouptags.ts index 6253b92..0a05117 100644 --- a/src/models/operations/getgrouptags.ts +++ b/src/models/operations/getgrouptags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupTagsRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupTagsRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupTagsRequest$ { - /** @deprecated use `GetGroupTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupTagsRequest$inboundSchema; - /** @deprecated use `GetGroupTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupTagsRequest$outboundSchema; - /** @deprecated use `GetGroupTagsRequest$Outbound` instead. */ - export type Outbound = GetGroupTagsRequest$Outbound; -} - export function getGroupTagsRequestToJSON( getGroupTagsRequest: GetGroupTagsRequest, ): string { @@ -66,7 +52,6 @@ export function getGroupTagsRequestToJSON( GetGroupTagsRequest$outboundSchema.parse(getGroupTagsRequest), ); } - export function getGroupTagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupusers.ts b/src/models/operations/getgroupusers.ts index 604f650..c6351fa 100644 --- a/src/models/operations/getgroupusers.ts +++ b/src/models/operations/getgroupusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -13,6 +13,14 @@ export type GetGroupUsersRequest = { * The ID of the group. */ groupId: string; + /** + * The pagination cursor value. + */ + cursor?: string | undefined; + /** + * Number of results to return per page. Default is 200. + */ + pageSize?: number | undefined; }; /** @internal */ @@ -22,15 +30,19 @@ export const GetGroupUsersRequest$inboundSchema: z.ZodType< unknown > = z.object({ group_id: z.string(), + cursor: z.string().optional(), + page_size: z.number().int().optional(), }).transform((v) => { return remap$(v, { "group_id": "groupId", + "page_size": "pageSize", }); }); - /** @internal */ export type GetGroupUsersRequest$Outbound = { group_id: string; + cursor?: string | undefined; + page_size?: number | undefined; }; /** @internal */ @@ -40,25 +52,15 @@ export const GetGroupUsersRequest$outboundSchema: z.ZodType< GetGroupUsersRequest > = z.object({ groupId: z.string(), + cursor: z.string().optional(), + pageSize: z.number().int().optional(), }).transform((v) => { return remap$(v, { groupId: "group_id", + pageSize: "page_size", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupUsersRequest$ { - /** @deprecated use `GetGroupUsersRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupUsersRequest$inboundSchema; - /** @deprecated use `GetGroupUsersRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupUsersRequest$outboundSchema; - /** @deprecated use `GetGroupUsersRequest$Outbound` instead. */ - export type Outbound = GetGroupUsersRequest$Outbound; -} - export function getGroupUsersRequestToJSON( getGroupUsersRequest: GetGroupUsersRequest, ): string { @@ -66,7 +68,6 @@ export function getGroupUsersRequestToJSON( GetGroupUsersRequest$outboundSchema.parse(getGroupUsersRequest), ); } - export function getGroupUsersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getgroupvisibility.ts b/src/models/operations/getgroupvisibility.ts index e52be42..7533476 100644 --- a/src/models/operations/getgroupvisibility.ts +++ b/src/models/operations/getgroupvisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetGroupVisibilityRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetGroupVisibilityRequest$Outbound = { group_id: string; @@ -46,19 +45,6 @@ export const GetGroupVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetGroupVisibilityRequest$ { - /** @deprecated use `GetGroupVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = GetGroupVisibilityRequest$inboundSchema; - /** @deprecated use `GetGroupVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = GetGroupVisibilityRequest$outboundSchema; - /** @deprecated use `GetGroupVisibilityRequest$Outbound` instead. */ - export type Outbound = GetGroupVisibilityRequest$Outbound; -} - export function getGroupVisibilityRequestToJSON( getGroupVisibilityRequest: GetGroupVisibilityRequest, ): string { @@ -66,7 +52,6 @@ export function getGroupVisibilityRequestToJSON( GetGroupVisibilityRequest$outboundSchema.parse(getGroupVisibilityRequest), ); } - export function getGroupVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getidpgroupmapping.ts b/src/models/operations/getidpgroupmapping.ts new file mode 100644 index 0000000..7fdc9f5 --- /dev/null +++ b/src/models/operations/getidpgroupmapping.ts @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetIdpGroupMappingRequest = { + /** + * The ID of the Okta app. + */ + appResourceId: string; + /** + * The ID of the group. + */ + groupId: string; +}; + +/** @internal */ +export const GetIdpGroupMappingRequest$inboundSchema: z.ZodType< + GetIdpGroupMappingRequest, + z.ZodTypeDef, + unknown +> = z.object({ + app_resource_id: z.string(), + group_id: z.string(), +}).transform((v) => { + return remap$(v, { + "app_resource_id": "appResourceId", + "group_id": "groupId", + }); +}); +/** @internal */ +export type GetIdpGroupMappingRequest$Outbound = { + app_resource_id: string; + group_id: string; +}; + +/** @internal */ +export const GetIdpGroupMappingRequest$outboundSchema: z.ZodType< + GetIdpGroupMappingRequest$Outbound, + z.ZodTypeDef, + GetIdpGroupMappingRequest +> = z.object({ + appResourceId: z.string(), + groupId: z.string(), +}).transform((v) => { + return remap$(v, { + appResourceId: "app_resource_id", + groupId: "group_id", + }); +}); + +export function getIdpGroupMappingRequestToJSON( + getIdpGroupMappingRequest: GetIdpGroupMappingRequest, +): string { + return JSON.stringify( + GetIdpGroupMappingRequest$outboundSchema.parse(getIdpGroupMappingRequest), + ); +} +export function getIdpGroupMappingRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetIdpGroupMappingRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetIdpGroupMappingRequest' from JSON`, + ); +} diff --git a/src/models/operations/getidpgroupmappings.ts b/src/models/operations/getidpgroupmappings.ts index 77b51e6..d05d3a9 100644 --- a/src/models/operations/getidpgroupmappings.ts +++ b/src/models/operations/getidpgroupmappings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetIdpGroupMappingsRequest$inboundSchema: z.ZodType< "app_resource_id": "appResourceId", }); }); - /** @internal */ export type GetIdpGroupMappingsRequest$Outbound = { app_resource_id: string; @@ -46,19 +45,6 @@ export const GetIdpGroupMappingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIdpGroupMappingsRequest$ { - /** @deprecated use `GetIdpGroupMappingsRequest$inboundSchema` instead. */ - export const inboundSchema = GetIdpGroupMappingsRequest$inboundSchema; - /** @deprecated use `GetIdpGroupMappingsRequest$outboundSchema` instead. */ - export const outboundSchema = GetIdpGroupMappingsRequest$outboundSchema; - /** @deprecated use `GetIdpGroupMappingsRequest$Outbound` instead. */ - export type Outbound = GetIdpGroupMappingsRequest$Outbound; -} - export function getIdpGroupMappingsRequestToJSON( getIdpGroupMappingsRequest: GetIdpGroupMappingsRequest, ): string { @@ -66,7 +52,6 @@ export function getIdpGroupMappingsRequestToJSON( GetIdpGroupMappingsRequest$outboundSchema.parse(getIdpGroupMappingsRequest), ); } - export function getIdpGroupMappingsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getmessagechannel.ts b/src/models/operations/getmessagechannel.ts index 249a015..0148952 100644 --- a/src/models/operations/getmessagechannel.ts +++ b/src/models/operations/getmessagechannel.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetMessageChannelRequest$inboundSchema: z.ZodType< "message_channel_id": "messageChannelId", }); }); - /** @internal */ export type GetMessageChannelRequest$Outbound = { message_channel_id: string; @@ -46,19 +45,6 @@ export const GetMessageChannelRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMessageChannelRequest$ { - /** @deprecated use `GetMessageChannelRequest$inboundSchema` instead. */ - export const inboundSchema = GetMessageChannelRequest$inboundSchema; - /** @deprecated use `GetMessageChannelRequest$outboundSchema` instead. */ - export const outboundSchema = GetMessageChannelRequest$outboundSchema; - /** @deprecated use `GetMessageChannelRequest$Outbound` instead. */ - export type Outbound = GetMessageChannelRequest$Outbound; -} - export function getMessageChannelRequestToJSON( getMessageChannelRequest: GetMessageChannelRequest, ): string { @@ -66,7 +52,6 @@ export function getMessageChannelRequestToJSON( GetMessageChannelRequest$outboundSchema.parse(getMessageChannelRequest), ); } - export function getMessageChannelRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getnhis.ts b/src/models/operations/getnhis.ts index 1e6676a..965b69b 100644 --- a/src/models/operations/getnhis.ts +++ b/src/models/operations/getnhis.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const GetNhisRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetNhisRequest$Outbound = { cursor?: string | undefined; @@ -58,23 +57,9 @@ export const GetNhisRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNhisRequest$ { - /** @deprecated use `GetNhisRequest$inboundSchema` instead. */ - export const inboundSchema = GetNhisRequest$inboundSchema; - /** @deprecated use `GetNhisRequest$outboundSchema` instead. */ - export const outboundSchema = GetNhisRequest$outboundSchema; - /** @deprecated use `GetNhisRequest$Outbound` instead. */ - export type Outbound = GetNhisRequest$Outbound; -} - export function getNhisRequestToJSON(getNhisRequest: GetNhisRequest): string { return JSON.stringify(GetNhisRequest$outboundSchema.parse(getNhisRequest)); } - export function getNhisRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const GetNhisResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetNhisResponse$Outbound = { Result: components.PaginatedResourcesList$Outbound; @@ -116,25 +100,11 @@ export const GetNhisResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNhisResponse$ { - /** @deprecated use `GetNhisResponse$inboundSchema` instead. */ - export const inboundSchema = GetNhisResponse$inboundSchema; - /** @deprecated use `GetNhisResponse$outboundSchema` instead. */ - export const outboundSchema = GetNhisResponse$outboundSchema; - /** @deprecated use `GetNhisResponse$Outbound` instead. */ - export type Outbound = GetNhisResponse$Outbound; -} - export function getNhisResponseToJSON( getNhisResponse: GetNhisResponse, ): string { return JSON.stringify(GetNhisResponse$outboundSchema.parse(getNhisResponse)); } - export function getNhisResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getoncallschedule.ts b/src/models/operations/getoncallschedule.ts index 8034a10..fa45a7a 100644 --- a/src/models/operations/getoncallschedule.ts +++ b/src/models/operations/getoncallschedule.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetOnCallScheduleRequest$inboundSchema: z.ZodType< "on_call_schedule_id": "onCallScheduleId", }); }); - /** @internal */ export type GetOnCallScheduleRequest$Outbound = { on_call_schedule_id: string; @@ -46,19 +45,6 @@ export const GetOnCallScheduleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOnCallScheduleRequest$ { - /** @deprecated use `GetOnCallScheduleRequest$inboundSchema` instead. */ - export const inboundSchema = GetOnCallScheduleRequest$inboundSchema; - /** @deprecated use `GetOnCallScheduleRequest$outboundSchema` instead. */ - export const outboundSchema = GetOnCallScheduleRequest$outboundSchema; - /** @deprecated use `GetOnCallScheduleRequest$Outbound` instead. */ - export type Outbound = GetOnCallScheduleRequest$Outbound; -} - export function getOnCallScheduleRequestToJSON( getOnCallScheduleRequest: GetOnCallScheduleRequest, ): string { @@ -66,7 +52,6 @@ export function getOnCallScheduleRequestToJSON( GetOnCallScheduleRequest$outboundSchema.parse(getOnCallScheduleRequest), ); } - export function getOnCallScheduleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getowner.ts b/src/models/operations/getowner.ts index 82bde7b..44d3a29 100644 --- a/src/models/operations/getowner.ts +++ b/src/models/operations/getowner.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetOwnerRequest$inboundSchema: z.ZodType< "owner_id": "ownerId", }); }); - /** @internal */ export type GetOwnerRequest$Outbound = { owner_id: string; @@ -46,25 +45,11 @@ export const GetOwnerRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOwnerRequest$ { - /** @deprecated use `GetOwnerRequest$inboundSchema` instead. */ - export const inboundSchema = GetOwnerRequest$inboundSchema; - /** @deprecated use `GetOwnerRequest$outboundSchema` instead. */ - export const outboundSchema = GetOwnerRequest$outboundSchema; - /** @deprecated use `GetOwnerRequest$Outbound` instead. */ - export type Outbound = GetOwnerRequest$Outbound; -} - export function getOwnerRequestToJSON( getOwnerRequest: GetOwnerRequest, ): string { return JSON.stringify(GetOwnerRequest$outboundSchema.parse(getOwnerRequest)); } - export function getOwnerRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getownerfromname.ts b/src/models/operations/getownerfromname.ts index 3b1e1a4..46a46e3 100644 --- a/src/models/operations/getownerfromname.ts +++ b/src/models/operations/getownerfromname.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetOwnerFromNameRequest$inboundSchema: z.ZodType< "owner_name": "ownerName", }); }); - /** @internal */ export type GetOwnerFromNameRequest$Outbound = { owner_name: string; @@ -46,19 +45,6 @@ export const GetOwnerFromNameRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOwnerFromNameRequest$ { - /** @deprecated use `GetOwnerFromNameRequest$inboundSchema` instead. */ - export const inboundSchema = GetOwnerFromNameRequest$inboundSchema; - /** @deprecated use `GetOwnerFromNameRequest$outboundSchema` instead. */ - export const outboundSchema = GetOwnerFromNameRequest$outboundSchema; - /** @deprecated use `GetOwnerFromNameRequest$Outbound` instead. */ - export type Outbound = GetOwnerFromNameRequest$Outbound; -} - export function getOwnerFromNameRequestToJSON( getOwnerFromNameRequest: GetOwnerFromNameRequest, ): string { @@ -66,7 +52,6 @@ export function getOwnerFromNameRequestToJSON( GetOwnerFromNameRequest$outboundSchema.parse(getOwnerFromNameRequest), ); } - export function getOwnerFromNameRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getowners.ts b/src/models/operations/getowners.ts index 52efa7d..11368ae 100644 --- a/src/models/operations/getowners.ts +++ b/src/models/operations/getowners.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,7 +42,6 @@ export const GetOwnersRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetOwnersRequest$Outbound = { cursor?: string | undefined; @@ -65,19 +64,6 @@ export const GetOwnersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOwnersRequest$ { - /** @deprecated use `GetOwnersRequest$inboundSchema` instead. */ - export const inboundSchema = GetOwnersRequest$inboundSchema; - /** @deprecated use `GetOwnersRequest$outboundSchema` instead. */ - export const outboundSchema = GetOwnersRequest$outboundSchema; - /** @deprecated use `GetOwnersRequest$Outbound` instead. */ - export type Outbound = GetOwnersRequest$Outbound; -} - export function getOwnersRequestToJSON( getOwnersRequest: GetOwnersRequest, ): string { @@ -85,7 +71,6 @@ export function getOwnersRequestToJSON( GetOwnersRequest$outboundSchema.parse(getOwnersRequest), ); } - export function getOwnersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const GetOwnersResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetOwnersResponse$Outbound = { Result: components.PaginatedOwnersList$Outbound; @@ -127,19 +111,6 @@ export const GetOwnersResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOwnersResponse$ { - /** @deprecated use `GetOwnersResponse$inboundSchema` instead. */ - export const inboundSchema = GetOwnersResponse$inboundSchema; - /** @deprecated use `GetOwnersResponse$outboundSchema` instead. */ - export const outboundSchema = GetOwnersResponse$outboundSchema; - /** @deprecated use `GetOwnersResponse$Outbound` instead. */ - export type Outbound = GetOwnersResponse$Outbound; -} - export function getOwnersResponseToJSON( getOwnersResponse: GetOwnersResponse, ): string { @@ -147,7 +118,6 @@ export function getOwnersResponseToJSON( GetOwnersResponse$outboundSchema.parse(getOwnersResponse), ); } - export function getOwnersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getownerusers.ts b/src/models/operations/getownerusers.ts index d681e4e..4d3140d 100644 --- a/src/models/operations/getownerusers.ts +++ b/src/models/operations/getownerusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetOwnerUsersRequest$inboundSchema: z.ZodType< "owner_id": "ownerId", }); }); - /** @internal */ export type GetOwnerUsersRequest$Outbound = { owner_id: string; @@ -46,19 +45,6 @@ export const GetOwnerUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOwnerUsersRequest$ { - /** @deprecated use `GetOwnerUsersRequest$inboundSchema` instead. */ - export const inboundSchema = GetOwnerUsersRequest$inboundSchema; - /** @deprecated use `GetOwnerUsersRequest$outboundSchema` instead. */ - export const outboundSchema = GetOwnerUsersRequest$outboundSchema; - /** @deprecated use `GetOwnerUsersRequest$Outbound` instead. */ - export type Outbound = GetOwnerUsersRequest$Outbound; -} - export function getOwnerUsersRequestToJSON( getOwnerUsersRequest: GetOwnerUsersRequest, ): string { @@ -66,7 +52,6 @@ export function getOwnerUsersRequestToJSON( GetOwnerUsersRequest$outboundSchema.parse(getOwnerUsersRequest), ); } - export function getOwnerUsersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getremoteusers.ts b/src/models/operations/getremoteusers.ts new file mode 100644 index 0000000..e41a95c --- /dev/null +++ b/src/models/operations/getremoteusers.ts @@ -0,0 +1,100 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import * as components from "../components/index.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetRemoteUsersRequest = { + /** + * Filter remote users by their third party provider. + */ + thirdPartyProvider?: Array | undefined; + /** + * Filter remote users by their user ID. + */ + userId?: Array | undefined; + /** + * Filter remote users by their remote ID. + */ + remoteId?: Array | undefined; + /** + * The pagination cursor value. + */ + cursor?: string | undefined; + /** + * Number of results to return per page. Default is 200. + */ + pageSize?: number | undefined; +}; + +/** @internal */ +export const GetRemoteUsersRequest$inboundSchema: z.ZodType< + GetRemoteUsersRequest, + z.ZodTypeDef, + unknown +> = z.object({ + third_party_provider: z.array(components.ThirdPartyProviderEnum$inboundSchema) + .optional(), + user_id: z.array(z.string()).optional(), + remote_id: z.array(z.string()).optional(), + cursor: z.string().optional(), + page_size: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "third_party_provider": "thirdPartyProvider", + "user_id": "userId", + "remote_id": "remoteId", + "page_size": "pageSize", + }); +}); +/** @internal */ +export type GetRemoteUsersRequest$Outbound = { + third_party_provider?: Array | undefined; + user_id?: Array | undefined; + remote_id?: Array | undefined; + cursor?: string | undefined; + page_size?: number | undefined; +}; + +/** @internal */ +export const GetRemoteUsersRequest$outboundSchema: z.ZodType< + GetRemoteUsersRequest$Outbound, + z.ZodTypeDef, + GetRemoteUsersRequest +> = z.object({ + thirdPartyProvider: z.array(components.ThirdPartyProviderEnum$outboundSchema) + .optional(), + userId: z.array(z.string()).optional(), + remoteId: z.array(z.string()).optional(), + cursor: z.string().optional(), + pageSize: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + thirdPartyProvider: "third_party_provider", + userId: "user_id", + remoteId: "remote_id", + pageSize: "page_size", + }); +}); + +export function getRemoteUsersRequestToJSON( + getRemoteUsersRequest: GetRemoteUsersRequest, +): string { + return JSON.stringify( + GetRemoteUsersRequest$outboundSchema.parse(getRemoteUsersRequest), + ); +} +export function getRemoteUsersRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetRemoteUsersRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetRemoteUsersRequest' from JSON`, + ); +} diff --git a/src/models/operations/getrequest.ts b/src/models/operations/getrequest.ts index 6fbde21..35dab44 100644 --- a/src/models/operations/getrequest.ts +++ b/src/models/operations/getrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,7 +22,6 @@ export const GetRequestRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetRequestRequest$Outbound = { id: string; @@ -37,19 +36,6 @@ export const GetRequestRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRequestRequest$ { - /** @deprecated use `GetRequestRequest$inboundSchema` instead. */ - export const inboundSchema = GetRequestRequest$inboundSchema; - /** @deprecated use `GetRequestRequest$outboundSchema` instead. */ - export const outboundSchema = GetRequestRequest$outboundSchema; - /** @deprecated use `GetRequestRequest$Outbound` instead. */ - export type Outbound = GetRequestRequest$Outbound; -} - export function getRequestRequestToJSON( getRequestRequest: GetRequestRequest, ): string { @@ -57,7 +43,6 @@ export function getRequestRequestToJSON( GetRequestRequest$outboundSchema.parse(getRequestRequest), ); } - export function getRequestRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getrequestcomments.ts b/src/models/operations/getrequestcomments.ts new file mode 100644 index 0000000..ddc8af1 --- /dev/null +++ b/src/models/operations/getrequestcomments.ts @@ -0,0 +1,54 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetRequestCommentsRequest = { + /** + * The ID of the request to get comments for + */ + id: string; +}; + +/** @internal */ +export const GetRequestCommentsRequest$inboundSchema: z.ZodType< + GetRequestCommentsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); +/** @internal */ +export type GetRequestCommentsRequest$Outbound = { + id: string; +}; + +/** @internal */ +export const GetRequestCommentsRequest$outboundSchema: z.ZodType< + GetRequestCommentsRequest$Outbound, + z.ZodTypeDef, + GetRequestCommentsRequest +> = z.object({ + id: z.string(), +}); + +export function getRequestCommentsRequestToJSON( + getRequestCommentsRequest: GetRequestCommentsRequest, +): string { + return JSON.stringify( + GetRequestCommentsRequest$outboundSchema.parse(getRequestCommentsRequest), + ); +} +export function getRequestCommentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetRequestCommentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetRequestCommentsRequest' from JSON`, + ); +} diff --git a/src/models/operations/getrequests.ts b/src/models/operations/getrequests.ts index faa67fb..a0c66f8 100644 --- a/src/models/operations/getrequests.ts +++ b/src/models/operations/getrequests.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -18,6 +18,14 @@ export type GetRequestsRequest = { * An end date filter for the events. */ endDateFilter?: string | undefined; + /** + * Filter requests by their requester ID. + */ + requesterId?: string | undefined; + /** + * Filter requests by their target user ID. + */ + targetUserId?: string | undefined; /** * The pagination cursor value. */ @@ -44,6 +52,8 @@ export const GetRequestsRequest$inboundSchema: z.ZodType< > = z.object({ start_date_filter: z.string().optional(), end_date_filter: z.string().optional(), + requester_id: z.string().optional(), + target_user_id: z.string().optional(), cursor: z.string().optional(), page_size: z.number().int().optional(), show_pending_only: z.boolean().optional(), @@ -51,15 +61,18 @@ export const GetRequestsRequest$inboundSchema: z.ZodType< return remap$(v, { "start_date_filter": "startDateFilter", "end_date_filter": "endDateFilter", + "requester_id": "requesterId", + "target_user_id": "targetUserId", "page_size": "pageSize", "show_pending_only": "showPendingOnly", }); }); - /** @internal */ export type GetRequestsRequest$Outbound = { start_date_filter?: string | undefined; end_date_filter?: string | undefined; + requester_id?: string | undefined; + target_user_id?: string | undefined; cursor?: string | undefined; page_size?: number | undefined; show_pending_only?: boolean | undefined; @@ -73,6 +86,8 @@ export const GetRequestsRequest$outboundSchema: z.ZodType< > = z.object({ startDateFilter: z.string().optional(), endDateFilter: z.string().optional(), + requesterId: z.string().optional(), + targetUserId: z.string().optional(), cursor: z.string().optional(), pageSize: z.number().int().optional(), showPendingOnly: z.boolean().optional(), @@ -80,24 +95,13 @@ export const GetRequestsRequest$outboundSchema: z.ZodType< return remap$(v, { startDateFilter: "start_date_filter", endDateFilter: "end_date_filter", + requesterId: "requester_id", + targetUserId: "target_user_id", pageSize: "page_size", showPendingOnly: "show_pending_only", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRequestsRequest$ { - /** @deprecated use `GetRequestsRequest$inboundSchema` instead. */ - export const inboundSchema = GetRequestsRequest$inboundSchema; - /** @deprecated use `GetRequestsRequest$outboundSchema` instead. */ - export const outboundSchema = GetRequestsRequest$outboundSchema; - /** @deprecated use `GetRequestsRequest$Outbound` instead. */ - export type Outbound = GetRequestsRequest$Outbound; -} - export function getRequestsRequestToJSON( getRequestsRequest: GetRequestsRequest, ): string { @@ -105,7 +109,6 @@ export function getRequestsRequestToJSON( GetRequestsRequest$outboundSchema.parse(getRequestsRequest), ); } - export function getRequestsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +131,6 @@ export const GetRequestsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetRequestsResponse$Outbound = { Result: components.RequestList$Outbound; @@ -147,19 +149,6 @@ export const GetRequestsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRequestsResponse$ { - /** @deprecated use `GetRequestsResponse$inboundSchema` instead. */ - export const inboundSchema = GetRequestsResponse$inboundSchema; - /** @deprecated use `GetRequestsResponse$outboundSchema` instead. */ - export const outboundSchema = GetRequestsResponse$outboundSchema; - /** @deprecated use `GetRequestsResponse$Outbound` instead. */ - export type Outbound = GetRequestsResponse$Outbound; -} - export function getRequestsResponseToJSON( getRequestsResponse: GetRequestsResponse, ): string { @@ -167,7 +156,6 @@ export function getRequestsResponseToJSON( GetRequestsResponse$outboundSchema.parse(getRequestsResponse), ); } - export function getRequestsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getrequestsrelay.ts b/src/models/operations/getrequestsrelay.ts index 3e07477..d5c83aa 100644 --- a/src/models/operations/getrequestsrelay.ts +++ b/src/models/operations/getrequestsrelay.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; @@ -53,7 +53,6 @@ export const GetRequestsRelayRequest$inboundSchema: z.ZodType< to: z.string().optional(), from: z.string().optional(), }); - /** @internal */ export type GetRequestsRelayRequest$Outbound = { first?: number | undefined; @@ -80,19 +79,6 @@ export const GetRequestsRelayRequest$outboundSchema: z.ZodType< from: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetRequestsRelayRequest$ { - /** @deprecated use `GetRequestsRelayRequest$inboundSchema` instead. */ - export const inboundSchema = GetRequestsRelayRequest$inboundSchema; - /** @deprecated use `GetRequestsRelayRequest$outboundSchema` instead. */ - export const outboundSchema = GetRequestsRelayRequest$outboundSchema; - /** @deprecated use `GetRequestsRelayRequest$Outbound` instead. */ - export type Outbound = GetRequestsRelayRequest$Outbound; -} - export function getRequestsRelayRequestToJSON( getRequestsRelayRequest: GetRequestsRelayRequest, ): string { @@ -100,7 +86,6 @@ export function getRequestsRelayRequestToJSON( GetRequestsRelayRequest$outboundSchema.parse(getRequestsRelayRequest), ); } - export function getRequestsRelayRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresource.ts b/src/models/operations/getresource.ts index 681cfd3..54ca935 100644 --- a/src/models/operations/getresource.ts +++ b/src/models/operations/getresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const GetResourceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceRequest$ { - /** @deprecated use `GetResourceRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceRequest$inboundSchema; - /** @deprecated use `GetResourceRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceRequest$outboundSchema; - /** @deprecated use `GetResourceRequest$Outbound` instead. */ - export type Outbound = GetResourceRequest$Outbound; -} - export function getResourceRequestToJSON( getResourceRequest: GetResourceRequest, ): string { @@ -66,7 +52,6 @@ export function getResourceRequestToJSON( GetResourceRequest$outboundSchema.parse(getResourceRequest), ); } - export function getResourceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcemessagechannels.ts b/src/models/operations/getresourcemessagechannels.ts index 9a913fd..a3b32c9 100644 --- a/src/models/operations/getresourcemessagechannels.ts +++ b/src/models/operations/getresourcemessagechannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceMessageChannelsRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceMessageChannelsRequest$Outbound = { resource_id: string; @@ -46,20 +45,6 @@ export const GetResourceMessageChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceMessageChannelsRequest$ { - /** @deprecated use `GetResourceMessageChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceMessageChannelsRequest$inboundSchema; - /** @deprecated use `GetResourceMessageChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetResourceMessageChannelsRequest$outboundSchema; - /** @deprecated use `GetResourceMessageChannelsRequest$Outbound` instead. */ - export type Outbound = GetResourceMessageChannelsRequest$Outbound; -} - export function getResourceMessageChannelsRequestToJSON( getResourceMessageChannelsRequest: GetResourceMessageChannelsRequest, ): string { @@ -69,7 +54,6 @@ export function getResourceMessageChannelsRequestToJSON( ), ); } - export function getResourceMessageChannelsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcenhis.ts b/src/models/operations/getresourcenhis.ts index 3ff590d..323957c 100644 --- a/src/models/operations/getresourcenhis.ts +++ b/src/models/operations/getresourcenhis.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const GetResourceNhisRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceNhisRequest$Outbound = { resource_id: string; @@ -53,19 +52,6 @@ export const GetResourceNhisRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceNhisRequest$ { - /** @deprecated use `GetResourceNhisRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceNhisRequest$inboundSchema; - /** @deprecated use `GetResourceNhisRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceNhisRequest$outboundSchema; - /** @deprecated use `GetResourceNhisRequest$Outbound` instead. */ - export type Outbound = GetResourceNhisRequest$Outbound; -} - export function getResourceNhisRequestToJSON( getResourceNhisRequest: GetResourceNhisRequest, ): string { @@ -73,7 +59,6 @@ export function getResourceNhisRequestToJSON( GetResourceNhisRequest$outboundSchema.parse(getResourceNhisRequest), ); } - export function getResourceNhisRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcereviewers.ts b/src/models/operations/getresourcereviewers.ts index 990a39a..494ec49 100644 --- a/src/models/operations/getresourcereviewers.ts +++ b/src/models/operations/getresourcereviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceReviewersRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceReviewersRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const GetResourceReviewersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceReviewersRequest$ { - /** @deprecated use `GetResourceReviewersRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceReviewersRequest$inboundSchema; - /** @deprecated use `GetResourceReviewersRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceReviewersRequest$outboundSchema; - /** @deprecated use `GetResourceReviewersRequest$Outbound` instead. */ - export type Outbound = GetResourceReviewersRequest$Outbound; -} - export function getResourceReviewersRequestToJSON( getResourceReviewersRequest: GetResourceReviewersRequest, ): string { @@ -68,7 +54,6 @@ export function getResourceReviewersRequestToJSON( ), ); } - export function getResourceReviewersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcereviewerstages.ts b/src/models/operations/getresourcereviewerstages.ts index bd91c59..fab7c32 100644 --- a/src/models/operations/getresourcereviewerstages.ts +++ b/src/models/operations/getresourcereviewerstages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceReviewerStagesRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceReviewerStagesRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const GetResourceReviewerStagesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceReviewerStagesRequest$ { - /** @deprecated use `GetResourceReviewerStagesRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceReviewerStagesRequest$inboundSchema; - /** @deprecated use `GetResourceReviewerStagesRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceReviewerStagesRequest$outboundSchema; - /** @deprecated use `GetResourceReviewerStagesRequest$Outbound` instead. */ - export type Outbound = GetResourceReviewerStagesRequest$Outbound; -} - export function getResourceReviewerStagesRequestToJSON( getResourceReviewerStagesRequest: GetResourceReviewerStagesRequest, ): string { @@ -68,7 +54,6 @@ export function getResourceReviewerStagesRequestToJSON( ), ); } - export function getResourceReviewerStagesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresources.ts b/src/models/operations/getresources.ts index 0bb164b..23bcf89 100644 --- a/src/models/operations/getresources.ts +++ b/src/models/operations/getresources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -19,7 +19,7 @@ export type GetResourcesRequest = { */ pageSize?: number | undefined; /** - * The resource type to filter by. + * The resource type to filter by. Required when remote_id is provided. */ resourceTypeFilter?: components.ResourceTypeEnum | undefined; /** @@ -38,6 +38,10 @@ export type GetResourcesRequest = { * The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. */ ancestorResourceId?: string | undefined; + /** + * Filter resources by their remote id. This will return all resources that have a remote id that matches the provided remote id. Note that this requires resource_type_filter to be provided. + */ + remoteId?: string | undefined; }; export type GetResourcesResponse = { @@ -57,6 +61,7 @@ export const GetResourcesRequest$inboundSchema: z.ZodType< resource_name: z.string().optional(), parent_resource_id: z.string().optional(), ancestor_resource_id: z.string().optional(), + remote_id: z.string().optional(), }).transform((v) => { return remap$(v, { "page_size": "pageSize", @@ -65,9 +70,9 @@ export const GetResourcesRequest$inboundSchema: z.ZodType< "resource_name": "resourceName", "parent_resource_id": "parentResourceId", "ancestor_resource_id": "ancestorResourceId", + "remote_id": "remoteId", }); }); - /** @internal */ export type GetResourcesRequest$Outbound = { cursor?: string | undefined; @@ -77,6 +82,7 @@ export type GetResourcesRequest$Outbound = { resource_name?: string | undefined; parent_resource_id?: string | undefined; ancestor_resource_id?: string | undefined; + remote_id?: string | undefined; }; /** @internal */ @@ -92,6 +98,7 @@ export const GetResourcesRequest$outboundSchema: z.ZodType< resourceName: z.string().optional(), parentResourceId: z.string().optional(), ancestorResourceId: z.string().optional(), + remoteId: z.string().optional(), }).transform((v) => { return remap$(v, { pageSize: "page_size", @@ -100,22 +107,10 @@ export const GetResourcesRequest$outboundSchema: z.ZodType< resourceName: "resource_name", parentResourceId: "parent_resource_id", ancestorResourceId: "ancestor_resource_id", + remoteId: "remote_id", }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourcesRequest$ { - /** @deprecated use `GetResourcesRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourcesRequest$inboundSchema; - /** @deprecated use `GetResourcesRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourcesRequest$outboundSchema; - /** @deprecated use `GetResourcesRequest$Outbound` instead. */ - export type Outbound = GetResourcesRequest$Outbound; -} - export function getResourcesRequestToJSON( getResourcesRequest: GetResourcesRequest, ): string { @@ -123,7 +118,6 @@ export function getResourcesRequestToJSON( GetResourcesRequest$outboundSchema.parse(getResourcesRequest), ); } - export function getResourcesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -146,7 +140,6 @@ export const GetResourcesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetResourcesResponse$Outbound = { Result: components.PaginatedResourcesList$Outbound; @@ -165,19 +158,6 @@ export const GetResourcesResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourcesResponse$ { - /** @deprecated use `GetResourcesResponse$inboundSchema` instead. */ - export const inboundSchema = GetResourcesResponse$inboundSchema; - /** @deprecated use `GetResourcesResponse$outboundSchema` instead. */ - export const outboundSchema = GetResourcesResponse$outboundSchema; - /** @deprecated use `GetResourcesResponse$Outbound` instead. */ - export type Outbound = GetResourcesResponse$Outbound; -} - export function getResourcesResponseToJSON( getResourcesResponse: GetResourcesResponse, ): string { @@ -185,7 +165,6 @@ export function getResourcesResponseToJSON( GetResourcesResponse$outboundSchema.parse(getResourcesResponse), ); } - export function getResourcesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcescopedrolepermissions.ts b/src/models/operations/getresourcescopedrolepermissions.ts index 13a1e6c..fc1b4df 100644 --- a/src/models/operations/getresourcescopedrolepermissions.ts +++ b/src/models/operations/getresourcescopedrolepermissions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceScopedRolePermissionsRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceScopedRolePermissionsRequest$Outbound = { resource_id: string; @@ -46,21 +45,6 @@ export const GetResourceScopedRolePermissionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceScopedRolePermissionsRequest$ { - /** @deprecated use `GetResourceScopedRolePermissionsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetResourceScopedRolePermissionsRequest$inboundSchema; - /** @deprecated use `GetResourceScopedRolePermissionsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetResourceScopedRolePermissionsRequest$outboundSchema; - /** @deprecated use `GetResourceScopedRolePermissionsRequest$Outbound` instead. */ - export type Outbound = GetResourceScopedRolePermissionsRequest$Outbound; -} - export function getResourceScopedRolePermissionsRequestToJSON( getResourceScopedRolePermissionsRequest: GetResourceScopedRolePermissionsRequest, @@ -71,7 +55,6 @@ export function getResourceScopedRolePermissionsRequestToJSON( ), ); } - export function getResourceScopedRolePermissionsRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/getresourcetags.ts b/src/models/operations/getresourcetags.ts index bd3e1a9..7662934 100644 --- a/src/models/operations/getresourcetags.ts +++ b/src/models/operations/getresourcetags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceTagsRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceTagsRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const GetResourceTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceTagsRequest$ { - /** @deprecated use `GetResourceTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceTagsRequest$inboundSchema; - /** @deprecated use `GetResourceTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceTagsRequest$outboundSchema; - /** @deprecated use `GetResourceTagsRequest$Outbound` instead. */ - export type Outbound = GetResourceTagsRequest$Outbound; -} - export function getResourceTagsRequestToJSON( getResourceTagsRequest: GetResourceTagsRequest, ): string { @@ -66,7 +52,6 @@ export function getResourceTagsRequestToJSON( GetResourceTagsRequest$outboundSchema.parse(getResourceTagsRequest), ); } - export function getResourceTagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourceuser.ts b/src/models/operations/getresourceuser.ts index 271fc43..9c096bf 100644 --- a/src/models/operations/getresourceuser.ts +++ b/src/models/operations/getresourceuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,7 +54,6 @@ export const GetResourceUserRequest$inboundSchema: z.ZodType< "user_id": "userId", }); }); - /** @internal */ export type GetResourceUserRequest$Outbound = { resource_id: string; @@ -78,19 +77,6 @@ export const GetResourceUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceUserRequest$ { - /** @deprecated use `GetResourceUserRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceUserRequest$inboundSchema; - /** @deprecated use `GetResourceUserRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceUserRequest$outboundSchema; - /** @deprecated use `GetResourceUserRequest$Outbound` instead. */ - export type Outbound = GetResourceUserRequest$Outbound; -} - export function getResourceUserRequestToJSON( getResourceUserRequest: GetResourceUserRequest, ): string { @@ -98,7 +84,6 @@ export function getResourceUserRequestToJSON( GetResourceUserRequest$outboundSchema.parse(getResourceUserRequest), ); } - export function getResourceUserRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -123,7 +108,6 @@ export const GetResourceUserResponse$inboundSchema: z.ZodType< "total_count": "totalCount", }); }); - /** @internal */ export type GetResourceUserResponse$Outbound = { data: Array; @@ -146,19 +130,6 @@ export const GetResourceUserResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceUserResponse$ { - /** @deprecated use `GetResourceUserResponse$inboundSchema` instead. */ - export const inboundSchema = GetResourceUserResponse$inboundSchema; - /** @deprecated use `GetResourceUserResponse$outboundSchema` instead. */ - export const outboundSchema = GetResourceUserResponse$outboundSchema; - /** @deprecated use `GetResourceUserResponse$Outbound` instead. */ - export type Outbound = GetResourceUserResponse$Outbound; -} - export function getResourceUserResponseToJSON( getResourceUserResponse: GetResourceUserResponse, ): string { @@ -166,7 +137,6 @@ export function getResourceUserResponseToJSON( GetResourceUserResponse$outboundSchema.parse(getResourceUserResponse), ); } - export function getResourceUserResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourceusers.ts b/src/models/operations/getresourceusers.ts index 4b76778..6464af2 100644 --- a/src/models/operations/getresourceusers.ts +++ b/src/models/operations/getresourceusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const GetResourceUsersRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceUsersRequest$Outbound = { resource_id: string; @@ -53,19 +52,6 @@ export const GetResourceUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceUsersRequest$ { - /** @deprecated use `GetResourceUsersRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceUsersRequest$inboundSchema; - /** @deprecated use `GetResourceUsersRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceUsersRequest$outboundSchema; - /** @deprecated use `GetResourceUsersRequest$Outbound` instead. */ - export type Outbound = GetResourceUsersRequest$Outbound; -} - export function getResourceUsersRequestToJSON( getResourceUsersRequest: GetResourceUsersRequest, ): string { @@ -73,7 +59,6 @@ export function getResourceUsersRequestToJSON( GetResourceUsersRequest$outboundSchema.parse(getResourceUsersRequest), ); } - export function getResourceUsersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getresourcevisibility.ts b/src/models/operations/getresourcevisibility.ts index 13a7370..6b98307 100644 --- a/src/models/operations/getresourcevisibility.ts +++ b/src/models/operations/getresourcevisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetResourceVisibilityRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type GetResourceVisibilityRequest$Outbound = { resource_id: string; @@ -46,19 +45,6 @@ export const GetResourceVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetResourceVisibilityRequest$ { - /** @deprecated use `GetResourceVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = GetResourceVisibilityRequest$inboundSchema; - /** @deprecated use `GetResourceVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = GetResourceVisibilityRequest$outboundSchema; - /** @deprecated use `GetResourceVisibilityRequest$Outbound` instead. */ - export type Outbound = GetResourceVisibilityRequest$Outbound; -} - export function getResourceVisibilityRequestToJSON( getResourceVisibilityRequest: GetResourceVisibilityRequest, ): string { @@ -68,7 +54,6 @@ export function getResourceVisibilityRequestToJSON( ), ); } - export function getResourceVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getsyncerrors.ts b/src/models/operations/getsyncerrors.ts index 476bc05..d74bf47 100644 --- a/src/models/operations/getsyncerrors.ts +++ b/src/models/operations/getsyncerrors.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const GetSyncErrorsRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type GetSyncErrorsRequest$Outbound = { app_id?: string | undefined; @@ -64,19 +63,6 @@ export const GetSyncErrorsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSyncErrorsRequest$ { - /** @deprecated use `GetSyncErrorsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSyncErrorsRequest$inboundSchema; - /** @deprecated use `GetSyncErrorsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSyncErrorsRequest$outboundSchema; - /** @deprecated use `GetSyncErrorsRequest$Outbound` instead. */ - export type Outbound = GetSyncErrorsRequest$Outbound; -} - export function getSyncErrorsRequestToJSON( getSyncErrorsRequest: GetSyncErrorsRequest, ): string { @@ -84,7 +70,6 @@ export function getSyncErrorsRequestToJSON( GetSyncErrorsRequest$outboundSchema.parse(getSyncErrorsRequest), ); } - export function getSyncErrorsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettag.ts b/src/models/operations/gettag.ts index fbaab15..ffcbb92 100644 --- a/src/models/operations/gettag.ts +++ b/src/models/operations/gettag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const GetTagRequest$inboundSchema: z.ZodType< "tag_value": "tagValue", }); }); - /** @internal */ export type GetTagRequest$Outbound = { tag_key: string; @@ -55,23 +54,9 @@ export const GetTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagRequest$ { - /** @deprecated use `GetTagRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagRequest$inboundSchema; - /** @deprecated use `GetTagRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagRequest$outboundSchema; - /** @deprecated use `GetTagRequest$Outbound` instead. */ - export type Outbound = GetTagRequest$Outbound; -} - export function getTagRequestToJSON(getTagRequest: GetTagRequest): string { return JSON.stringify(GetTagRequest$outboundSchema.parse(getTagRequest)); } - export function getTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettagbyid.ts b/src/models/operations/gettagbyid.ts index 8480673..913a435 100644 --- a/src/models/operations/gettagbyid.ts +++ b/src/models/operations/gettagbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetTagByIDRequest$inboundSchema: z.ZodType< "tag_id": "tagId", }); }); - /** @internal */ export type GetTagByIDRequest$Outbound = { tag_id: string; @@ -46,19 +45,6 @@ export const GetTagByIDRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagByIDRequest$ { - /** @deprecated use `GetTagByIDRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagByIDRequest$inboundSchema; - /** @deprecated use `GetTagByIDRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagByIDRequest$outboundSchema; - /** @deprecated use `GetTagByIDRequest$Outbound` instead. */ - export type Outbound = GetTagByIDRequest$Outbound; -} - export function getTagByIDRequestToJSON( getTagByIDRequest: GetTagByIDRequest, ): string { @@ -66,7 +52,6 @@ export function getTagByIDRequestToJSON( GetTagByIDRequest$outboundSchema.parse(getTagByIDRequest), ); } - export function getTagByIDRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/gettags.ts b/src/models/operations/gettags.ts index 17f2e4f..00bff02 100644 --- a/src/models/operations/gettags.ts +++ b/src/models/operations/gettags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const GetTagsRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetTagsRequest$Outbound = { cursor?: string | undefined; @@ -58,23 +57,9 @@ export const GetTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsRequest$ { - /** @deprecated use `GetTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetTagsRequest$inboundSchema; - /** @deprecated use `GetTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetTagsRequest$outboundSchema; - /** @deprecated use `GetTagsRequest$Outbound` instead. */ - export type Outbound = GetTagsRequest$Outbound; -} - export function getTagsRequestToJSON(getTagsRequest: GetTagsRequest): string { return JSON.stringify(GetTagsRequest$outboundSchema.parse(getTagsRequest)); } - export function getTagsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const GetTagsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetTagsResponse$Outbound = { Result: components.PaginatedTagsList$Outbound; @@ -116,25 +100,11 @@ export const GetTagsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTagsResponse$ { - /** @deprecated use `GetTagsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTagsResponse$inboundSchema; - /** @deprecated use `GetTagsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTagsResponse$outboundSchema; - /** @deprecated use `GetTagsResponse$Outbound` instead. */ - export type Outbound = GetTagsResponse$Outbound; -} - export function getTagsResponseToJSON( getTagsResponse: GetTagsResponse, ): string { return JSON.stringify(GetTagsResponse$outboundSchema.parse(getTagsResponse)); } - export function getTagsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getuar.ts b/src/models/operations/getuar.ts index 28f213d..a2f2408 100644 --- a/src/models/operations/getuar.ts +++ b/src/models/operations/getuar.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetUarRequest$inboundSchema: z.ZodType< "uar_id": "uarId", }); }); - /** @internal */ export type GetUarRequest$Outbound = { uar_id: string; @@ -46,23 +45,9 @@ export const GetUarRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUarRequest$ { - /** @deprecated use `GetUarRequest$inboundSchema` instead. */ - export const inboundSchema = GetUarRequest$inboundSchema; - /** @deprecated use `GetUarRequest$outboundSchema` instead. */ - export const outboundSchema = GetUarRequest$outboundSchema; - /** @deprecated use `GetUarRequest$Outbound` instead. */ - export type Outbound = GetUarRequest$Outbound; -} - export function getUarRequestToJSON(getUarRequest: GetUarRequest): string { return JSON.stringify(GetUarRequest$outboundSchema.parse(getUarRequest)); } - export function getUarRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getuars.ts b/src/models/operations/getuars.ts index 46fc924..854e28b 100644 --- a/src/models/operations/getuars.ts +++ b/src/models/operations/getuars.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const GetUARsRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetUARsRequest$Outbound = { cursor?: string | undefined; @@ -58,23 +57,9 @@ export const GetUARsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUARsRequest$ { - /** @deprecated use `GetUARsRequest$inboundSchema` instead. */ - export const inboundSchema = GetUARsRequest$inboundSchema; - /** @deprecated use `GetUARsRequest$outboundSchema` instead. */ - export const outboundSchema = GetUARsRequest$outboundSchema; - /** @deprecated use `GetUARsRequest$Outbound` instead. */ - export type Outbound = GetUARsRequest$Outbound; -} - export function getUARsRequestToJSON(getUARsRequest: GetUARsRequest): string { return JSON.stringify(GetUARsRequest$outboundSchema.parse(getUARsRequest)); } - export function getUARsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const GetUARsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetUARsResponse$Outbound = { Result: components.PaginatedUARsList$Outbound; @@ -116,25 +100,11 @@ export const GetUARsResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUARsResponse$ { - /** @deprecated use `GetUARsResponse$inboundSchema` instead. */ - export const inboundSchema = GetUARsResponse$inboundSchema; - /** @deprecated use `GetUARsResponse$outboundSchema` instead. */ - export const outboundSchema = GetUARsResponse$outboundSchema; - /** @deprecated use `GetUARsResponse$Outbound` instead. */ - export type Outbound = GetUARsResponse$Outbound; -} - export function getUARsResponseToJSON( getUARsResponse: GetUARsResponse, ): string { return JSON.stringify(GetUARsResponse$outboundSchema.parse(getUARsResponse)); } - export function getUARsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getusergroups.ts b/src/models/operations/getusergroups.ts new file mode 100644 index 0000000..e7381c0 --- /dev/null +++ b/src/models/operations/getusergroups.ts @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetUserGroupsRequest = { + /** + * The ID of the user whose groups to return. + */ + userId: string; + /** + * The pagination cursor value. + */ + cursor?: string | undefined; + /** + * Number of results to return per page. Default is 200. + */ + pageSize?: number | undefined; +}; + +/** @internal */ +export const GetUserGroupsRequest$inboundSchema: z.ZodType< + GetUserGroupsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + user_id: z.string(), + cursor: z.string().optional(), + page_size: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + "user_id": "userId", + "page_size": "pageSize", + }); +}); +/** @internal */ +export type GetUserGroupsRequest$Outbound = { + user_id: string; + cursor?: string | undefined; + page_size?: number | undefined; +}; + +/** @internal */ +export const GetUserGroupsRequest$outboundSchema: z.ZodType< + GetUserGroupsRequest$Outbound, + z.ZodTypeDef, + GetUserGroupsRequest +> = z.object({ + userId: z.string(), + cursor: z.string().optional(), + pageSize: z.number().int().optional(), +}).transform((v) => { + return remap$(v, { + userId: "user_id", + pageSize: "page_size", + }); +}); + +export function getUserGroupsRequestToJSON( + getUserGroupsRequest: GetUserGroupsRequest, +): string { + return JSON.stringify( + GetUserGroupsRequest$outboundSchema.parse(getUserGroupsRequest), + ); +} +export function getUserGroupsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetUserGroupsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetUserGroupsRequest' from JSON`, + ); +} diff --git a/src/models/operations/getuserresources.ts b/src/models/operations/getuserresources.ts new file mode 100644 index 0000000..024be98 --- /dev/null +++ b/src/models/operations/getuserresources.ts @@ -0,0 +1,86 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type GetUserResourcesRequest = { + /** + * The ID of the user. + */ + userId: string; + /** + * Limit the number of results returned. + */ + limit?: number | undefined; + /** + * The pagination cursor value. + */ + cursor?: string | undefined; + /** + * Include user's access to unmanaged resources. + */ + includeUnmanaged?: boolean | undefined; +}; + +/** @internal */ +export const GetUserResourcesRequest$inboundSchema: z.ZodType< + GetUserResourcesRequest, + z.ZodTypeDef, + unknown +> = z.object({ + user_id: z.string(), + limit: z.number().int().optional(), + cursor: z.string().optional(), + include_unmanaged: z.boolean().optional(), +}).transform((v) => { + return remap$(v, { + "user_id": "userId", + "include_unmanaged": "includeUnmanaged", + }); +}); +/** @internal */ +export type GetUserResourcesRequest$Outbound = { + user_id: string; + limit?: number | undefined; + cursor?: string | undefined; + include_unmanaged?: boolean | undefined; +}; + +/** @internal */ +export const GetUserResourcesRequest$outboundSchema: z.ZodType< + GetUserResourcesRequest$Outbound, + z.ZodTypeDef, + GetUserResourcesRequest +> = z.object({ + userId: z.string(), + limit: z.number().int().optional(), + cursor: z.string().optional(), + includeUnmanaged: z.boolean().optional(), +}).transform((v) => { + return remap$(v, { + userId: "user_id", + includeUnmanaged: "include_unmanaged", + }); +}); + +export function getUserResourcesRequestToJSON( + getUserResourcesRequest: GetUserResourcesRequest, +): string { + return JSON.stringify( + GetUserResourcesRequest$outboundSchema.parse(getUserResourcesRequest), + ); +} +export function getUserResourcesRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetUserResourcesRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetUserResourcesRequest' from JSON`, + ); +} diff --git a/src/models/operations/getusers.ts b/src/models/operations/getusers.ts index b4b658d..2d14384 100644 --- a/src/models/operations/getusers.ts +++ b/src/models/operations/getusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -37,7 +37,6 @@ export const GetUsersRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type GetUsersRequest$Outbound = { cursor?: string | undefined; @@ -58,25 +57,11 @@ export const GetUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUsersRequest$ { - /** @deprecated use `GetUsersRequest$inboundSchema` instead. */ - export const inboundSchema = GetUsersRequest$inboundSchema; - /** @deprecated use `GetUsersRequest$outboundSchema` instead. */ - export const outboundSchema = GetUsersRequest$outboundSchema; - /** @deprecated use `GetUsersRequest$Outbound` instead. */ - export type Outbound = GetUsersRequest$Outbound; -} - export function getUsersRequestToJSON( getUsersRequest: GetUsersRequest, ): string { return JSON.stringify(GetUsersRequest$outboundSchema.parse(getUsersRequest)); } - export function getUsersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -99,7 +84,6 @@ export const GetUsersResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetUsersResponse$Outbound = { Result: components.PaginatedUsersList$Outbound; @@ -118,19 +102,6 @@ export const GetUsersResponse$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUsersResponse$ { - /** @deprecated use `GetUsersResponse$inboundSchema` instead. */ - export const inboundSchema = GetUsersResponse$inboundSchema; - /** @deprecated use `GetUsersResponse$outboundSchema` instead. */ - export const outboundSchema = GetUsersResponse$outboundSchema; - /** @deprecated use `GetUsersResponse$Outbound` instead. */ - export type Outbound = GetUsersResponse$Outbound; -} - export function getUsersResponseToJSON( getUsersResponse: GetUsersResponse, ): string { @@ -138,7 +109,6 @@ export function getUsersResponseToJSON( GetUsersResponse$outboundSchema.parse(getUsersResponse), ); } - export function getUsersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getusertags.ts b/src/models/operations/getusertags.ts index f284fdc..288f62e 100644 --- a/src/models/operations/getusertags.ts +++ b/src/models/operations/getusertags.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const GetUserTagsRequest$inboundSchema: z.ZodType< "user_id": "userId", }); }); - /** @internal */ export type GetUserTagsRequest$Outbound = { user_id: string; @@ -46,19 +45,6 @@ export const GetUserTagsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUserTagsRequest$ { - /** @deprecated use `GetUserTagsRequest$inboundSchema` instead. */ - export const inboundSchema = GetUserTagsRequest$inboundSchema; - /** @deprecated use `GetUserTagsRequest$outboundSchema` instead. */ - export const outboundSchema = GetUserTagsRequest$outboundSchema; - /** @deprecated use `GetUserTagsRequest$Outbound` instead. */ - export type Outbound = GetUserTagsRequest$Outbound; -} - export function getUserTagsRequestToJSON( getUserTagsRequest: GetUserTagsRequest, ): string { @@ -66,7 +52,6 @@ export function getUserTagsRequestToJSON( GetUserTagsRequest$outboundSchema.parse(getUserTagsRequest), ); } - export function getUserTagsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index c206359..4f12a0d 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -13,10 +13,13 @@ export * from "./addresourcetag.js"; export * from "./addresourceuser.js"; export * from "./addusertag.js"; export * from "./approverequest.js"; +export * from "./createidpgroupmapping.js"; export * from "./createrequest.js"; +export * from "./createrequestcomment.js"; export * from "./createtag.js"; export * from "./deletebundle.js"; export * from "./deleteconfigurationtemplate.js"; +export * from "./deletedelegation.js"; export * from "./deletegroup.js"; export * from "./deletegroupbinding.js"; export * from "./deletegroupuser.js"; @@ -26,6 +29,7 @@ export * from "./deleteresource.js"; export * from "./deleteresourcenhi.js"; export * from "./deleteresourceuser.js"; export * from "./deletetagbyid.js"; +export * from "./denyrequest.js"; export * from "./events.js"; export * from "./getaccessrule.js"; export * from "./getapp.js"; @@ -35,6 +39,8 @@ export * from "./getbundlegroups.js"; export * from "./getbundleresources.js"; export * from "./getbundles.js"; export * from "./getbundlevisibility.js"; +export * from "./getdelegation.js"; +export * from "./getdelegations.js"; export * from "./getgroup.js"; export * from "./getgroupbinding.js"; export * from "./getgroupbindings.js"; @@ -49,6 +55,7 @@ export * from "./getgroups.js"; export * from "./getgrouptags.js"; export * from "./getgroupusers.js"; export * from "./getgroupvisibility.js"; +export * from "./getidpgroupmapping.js"; export * from "./getidpgroupmappings.js"; export * from "./getmessagechannel.js"; export * from "./getnhis.js"; @@ -57,7 +64,9 @@ export * from "./getowner.js"; export * from "./getownerfromname.js"; export * from "./getowners.js"; export * from "./getownerusers.js"; +export * from "./getremoteusers.js"; export * from "./getrequest.js"; +export * from "./getrequestcomments.js"; export * from "./getrequests.js"; export * from "./getrequestsrelay.js"; export * from "./getresource.js"; @@ -77,6 +86,8 @@ export * from "./gettagbyid.js"; export * from "./gettags.js"; export * from "./getuar.js"; export * from "./getuars.js"; +export * from "./getusergroups.js"; +export * from "./getuserresources.js"; export * from "./getusers.js"; export * from "./getusertags.js"; export * from "./removebundlegroup.js"; diff --git a/src/models/operations/removebundlegroup.ts b/src/models/operations/removebundlegroup.ts index 7871f30..287a146 100644 --- a/src/models/operations/removebundlegroup.ts +++ b/src/models/operations/removebundlegroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const RemoveBundleGroupRequest$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type RemoveBundleGroupRequest$Outbound = { bundle_id: string; @@ -64,19 +63,6 @@ export const RemoveBundleGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveBundleGroupRequest$ { - /** @deprecated use `RemoveBundleGroupRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveBundleGroupRequest$inboundSchema; - /** @deprecated use `RemoveBundleGroupRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveBundleGroupRequest$outboundSchema; - /** @deprecated use `RemoveBundleGroupRequest$Outbound` instead. */ - export type Outbound = RemoveBundleGroupRequest$Outbound; -} - export function removeBundleGroupRequestToJSON( removeBundleGroupRequest: RemoveBundleGroupRequest, ): string { @@ -84,7 +70,6 @@ export function removeBundleGroupRequestToJSON( RemoveBundleGroupRequest$outboundSchema.parse(removeBundleGroupRequest), ); } - export function removeBundleGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/removebundleresource.ts b/src/models/operations/removebundleresource.ts index b88ff0a..fbe1a46 100644 --- a/src/models/operations/removebundleresource.ts +++ b/src/models/operations/removebundleresource.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const RemoveBundleResourceRequest$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type RemoveBundleResourceRequest$Outbound = { bundle_id: string; @@ -64,19 +63,6 @@ export const RemoveBundleResourceRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveBundleResourceRequest$ { - /** @deprecated use `RemoveBundleResourceRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveBundleResourceRequest$inboundSchema; - /** @deprecated use `RemoveBundleResourceRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveBundleResourceRequest$outboundSchema; - /** @deprecated use `RemoveBundleResourceRequest$Outbound` instead. */ - export type Outbound = RemoveBundleResourceRequest$Outbound; -} - export function removeBundleResourceRequestToJSON( removeBundleResourceRequest: RemoveBundleResourceRequest, ): string { @@ -86,7 +72,6 @@ export function removeBundleResourceRequestToJSON( ), ); } - export function removeBundleResourceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/removegroupcontaininggroup.ts b/src/models/operations/removegroupcontaininggroup.ts index f5d4bf6..26a3a8c 100644 --- a/src/models/operations/removegroupcontaininggroup.ts +++ b/src/models/operations/removegroupcontaininggroup.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RemoveGroupContainingGroupRequest = { /** - * The ID of the group. + * The ID of the member group to remove. */ groupId: string; /** @@ -33,7 +33,6 @@ export const RemoveGroupContainingGroupRequest$inboundSchema: z.ZodType< "containing_group_id": "containingGroupId", }); }); - /** @internal */ export type RemoveGroupContainingGroupRequest$Outbound = { group_id: string; @@ -55,20 +54,6 @@ export const RemoveGroupContainingGroupRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveGroupContainingGroupRequest$ { - /** @deprecated use `RemoveGroupContainingGroupRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveGroupContainingGroupRequest$inboundSchema; - /** @deprecated use `RemoveGroupContainingGroupRequest$outboundSchema` instead. */ - export const outboundSchema = - RemoveGroupContainingGroupRequest$outboundSchema; - /** @deprecated use `RemoveGroupContainingGroupRequest$Outbound` instead. */ - export type Outbound = RemoveGroupContainingGroupRequest$Outbound; -} - export function removeGroupContainingGroupRequestToJSON( removeGroupContainingGroupRequest: RemoveGroupContainingGroupRequest, ): string { @@ -78,7 +63,6 @@ export function removeGroupContainingGroupRequestToJSON( ), ); } - export function removeGroupContainingGroupRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/removegrouptag.ts b/src/models/operations/removegrouptag.ts index 6b71b73..3414799 100644 --- a/src/models/operations/removegrouptag.ts +++ b/src/models/operations/removegrouptag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const RemoveGroupTagRequest$inboundSchema: z.ZodType< "group_id": "groupId", }); }); - /** @internal */ export type RemoveGroupTagRequest$Outbound = { tag_id: string; @@ -55,19 +54,6 @@ export const RemoveGroupTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveGroupTagRequest$ { - /** @deprecated use `RemoveGroupTagRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveGroupTagRequest$inboundSchema; - /** @deprecated use `RemoveGroupTagRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveGroupTagRequest$outboundSchema; - /** @deprecated use `RemoveGroupTagRequest$Outbound` instead. */ - export type Outbound = RemoveGroupTagRequest$Outbound; -} - export function removeGroupTagRequestToJSON( removeGroupTagRequest: RemoveGroupTagRequest, ): string { @@ -75,7 +61,6 @@ export function removeGroupTagRequestToJSON( RemoveGroupTagRequest$outboundSchema.parse(removeGroupTagRequest), ); } - export function removeGroupTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/removeresourcetag.ts b/src/models/operations/removeresourcetag.ts index a309a7c..d985bf6 100644 --- a/src/models/operations/removeresourcetag.ts +++ b/src/models/operations/removeresourcetag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const RemoveResourceTagRequest$inboundSchema: z.ZodType< "resource_id": "resourceId", }); }); - /** @internal */ export type RemoveResourceTagRequest$Outbound = { tag_id: string; @@ -55,19 +54,6 @@ export const RemoveResourceTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveResourceTagRequest$ { - /** @deprecated use `RemoveResourceTagRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveResourceTagRequest$inboundSchema; - /** @deprecated use `RemoveResourceTagRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveResourceTagRequest$outboundSchema; - /** @deprecated use `RemoveResourceTagRequest$Outbound` instead. */ - export type Outbound = RemoveResourceTagRequest$Outbound; -} - export function removeResourceTagRequestToJSON( removeResourceTagRequest: RemoveResourceTagRequest, ): string { @@ -75,7 +61,6 @@ export function removeResourceTagRequestToJSON( RemoveResourceTagRequest$outboundSchema.parse(removeResourceTagRequest), ); } - export function removeResourceTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/removeusertag.ts b/src/models/operations/removeusertag.ts index 7e9622b..47bafac 100644 --- a/src/models/operations/removeusertag.ts +++ b/src/models/operations/removeusertag.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const RemoveUserTagRequest$inboundSchema: z.ZodType< "user_id": "userId", }); }); - /** @internal */ export type RemoveUserTagRequest$Outbound = { tag_id: string; @@ -55,19 +54,6 @@ export const RemoveUserTagRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveUserTagRequest$ { - /** @deprecated use `RemoveUserTagRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveUserTagRequest$inboundSchema; - /** @deprecated use `RemoveUserTagRequest$outboundSchema` instead. */ - export const outboundSchema = RemoveUserTagRequest$outboundSchema; - /** @deprecated use `RemoveUserTagRequest$Outbound` instead. */ - export type Outbound = RemoveUserTagRequest$Outbound; -} - export function removeUserTagRequestToJSON( removeUserTagRequest: RemoveUserTagRequest, ): string { @@ -75,7 +61,6 @@ export function removeUserTagRequestToJSON( RemoveUserTagRequest$outboundSchema.parse(removeUserTagRequest), ); } - export function removeUserTagRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/resourceuseraccessstatusretrieve.ts b/src/models/operations/resourceuseraccessstatusretrieve.ts index fc824da..4456ffd 100644 --- a/src/models/operations/resourceuseraccessstatusretrieve.ts +++ b/src/models/operations/resourceuseraccessstatusretrieve.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -50,7 +50,6 @@ export const ResourceUserAccessStatusRetrieveRequest$inboundSchema: z.ZodType< "page_size": "pageSize", }); }); - /** @internal */ export type ResourceUserAccessStatusRetrieveRequest$Outbound = { resource_id: string; @@ -80,21 +79,6 @@ export const ResourceUserAccessStatusRetrieveRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceUserAccessStatusRetrieveRequest$ { - /** @deprecated use `ResourceUserAccessStatusRetrieveRequest$inboundSchema` instead. */ - export const inboundSchema = - ResourceUserAccessStatusRetrieveRequest$inboundSchema; - /** @deprecated use `ResourceUserAccessStatusRetrieveRequest$outboundSchema` instead. */ - export const outboundSchema = - ResourceUserAccessStatusRetrieveRequest$outboundSchema; - /** @deprecated use `ResourceUserAccessStatusRetrieveRequest$Outbound` instead. */ - export type Outbound = ResourceUserAccessStatusRetrieveRequest$Outbound; -} - export function resourceUserAccessStatusRetrieveRequestToJSON( resourceUserAccessStatusRetrieveRequest: ResourceUserAccessStatusRetrieveRequest, @@ -105,7 +89,6 @@ export function resourceUserAccessStatusRetrieveRequestToJSON( ), ); } - export function resourceUserAccessStatusRetrieveRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/sessions.ts b/src/models/operations/sessions.ts index f3fcc1f..54ed4d3 100644 --- a/src/models/operations/sessions.ts +++ b/src/models/operations/sessions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -33,7 +33,6 @@ export const SessionsRequest$inboundSchema: z.ZodType< "user_id": "userId", }); }); - /** @internal */ export type SessionsRequest$Outbound = { resource_id: string; @@ -55,25 +54,11 @@ export const SessionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SessionsRequest$ { - /** @deprecated use `SessionsRequest$inboundSchema` instead. */ - export const inboundSchema = SessionsRequest$inboundSchema; - /** @deprecated use `SessionsRequest$outboundSchema` instead. */ - export const outboundSchema = SessionsRequest$outboundSchema; - /** @deprecated use `SessionsRequest$Outbound` instead. */ - export type Outbound = SessionsRequest$Outbound; -} - export function sessionsRequestToJSON( sessionsRequest: SessionsRequest, ): string { return JSON.stringify(SessionsRequest$outboundSchema.parse(sessionsRequest)); } - export function sessionsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setbundlevisibility.ts b/src/models/operations/setbundlevisibility.ts index 1d61267..be1ca78 100644 --- a/src/models/operations/setbundlevisibility.ts +++ b/src/models/operations/setbundlevisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetBundleVisibilityRequest$inboundSchema: z.ZodType< "VisibilityInfo": "visibilityInfo", }); }); - /** @internal */ export type SetBundleVisibilityRequest$Outbound = { bundle_id: string; @@ -53,19 +52,6 @@ export const SetBundleVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetBundleVisibilityRequest$ { - /** @deprecated use `SetBundleVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = SetBundleVisibilityRequest$inboundSchema; - /** @deprecated use `SetBundleVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = SetBundleVisibilityRequest$outboundSchema; - /** @deprecated use `SetBundleVisibilityRequest$Outbound` instead. */ - export type Outbound = SetBundleVisibilityRequest$Outbound; -} - export function setBundleVisibilityRequestToJSON( setBundleVisibilityRequest: SetBundleVisibilityRequest, ): string { @@ -73,7 +59,6 @@ export function setBundleVisibilityRequestToJSON( SetBundleVisibilityRequest$outboundSchema.parse(setBundleVisibilityRequest), ); } - export function setBundleVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgroupmessagechannels.ts b/src/models/operations/setgroupmessagechannels.ts index 70ff39a..6c707a3 100644 --- a/src/models/operations/setgroupmessagechannels.ts +++ b/src/models/operations/setgroupmessagechannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupMessageChannelsRequest$inboundSchema: z.ZodType< "MessageChannelIDList": "messageChannelIDList", }); }); - /** @internal */ export type SetGroupMessageChannelsRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupMessageChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupMessageChannelsRequest$ { - /** @deprecated use `SetGroupMessageChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupMessageChannelsRequest$inboundSchema; - /** @deprecated use `SetGroupMessageChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupMessageChannelsRequest$outboundSchema; - /** @deprecated use `SetGroupMessageChannelsRequest$Outbound` instead. */ - export type Outbound = SetGroupMessageChannelsRequest$Outbound; -} - export function setGroupMessageChannelsRequestToJSON( setGroupMessageChannelsRequest: SetGroupMessageChannelsRequest, ): string { @@ -75,7 +61,6 @@ export function setGroupMessageChannelsRequestToJSON( ), ); } - export function setGroupMessageChannelsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgrouponcallschedules.ts b/src/models/operations/setgrouponcallschedules.ts index b5cd28a..1f2de6a 100644 --- a/src/models/operations/setgrouponcallschedules.ts +++ b/src/models/operations/setgrouponcallschedules.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupOnCallSchedulesRequest$inboundSchema: z.ZodType< "OnCallScheduleIDList": "onCallScheduleIDList", }); }); - /** @internal */ export type SetGroupOnCallSchedulesRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupOnCallSchedulesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupOnCallSchedulesRequest$ { - /** @deprecated use `SetGroupOnCallSchedulesRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupOnCallSchedulesRequest$inboundSchema; - /** @deprecated use `SetGroupOnCallSchedulesRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupOnCallSchedulesRequest$outboundSchema; - /** @deprecated use `SetGroupOnCallSchedulesRequest$Outbound` instead. */ - export type Outbound = SetGroupOnCallSchedulesRequest$Outbound; -} - export function setGroupOnCallSchedulesRequestToJSON( setGroupOnCallSchedulesRequest: SetGroupOnCallSchedulesRequest, ): string { @@ -75,7 +61,6 @@ export function setGroupOnCallSchedulesRequestToJSON( ), ); } - export function setGroupOnCallSchedulesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgroupresources.ts b/src/models/operations/setgroupresources.ts index 0f93e60..e7f8c39 100644 --- a/src/models/operations/setgroupresources.ts +++ b/src/models/operations/setgroupresources.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupResourcesRequest$inboundSchema: z.ZodType< "UpdateGroupResourcesInfo": "updateGroupResourcesInfo", }); }); - /** @internal */ export type SetGroupResourcesRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupResourcesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupResourcesRequest$ { - /** @deprecated use `SetGroupResourcesRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupResourcesRequest$inboundSchema; - /** @deprecated use `SetGroupResourcesRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupResourcesRequest$outboundSchema; - /** @deprecated use `SetGroupResourcesRequest$Outbound` instead. */ - export type Outbound = SetGroupResourcesRequest$Outbound; -} - export function setGroupResourcesRequestToJSON( setGroupResourcesRequest: SetGroupResourcesRequest, ): string { @@ -73,7 +59,6 @@ export function setGroupResourcesRequestToJSON( SetGroupResourcesRequest$outboundSchema.parse(setGroupResourcesRequest), ); } - export function setGroupResourcesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgroupreviewers.ts b/src/models/operations/setgroupreviewers.ts index d94e56d..f434c89 100644 --- a/src/models/operations/setgroupreviewers.ts +++ b/src/models/operations/setgroupreviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupReviewersRequest$inboundSchema: z.ZodType< "ReviewerIDList": "reviewerIDList", }); }); - /** @internal */ export type SetGroupReviewersRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupReviewersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupReviewersRequest$ { - /** @deprecated use `SetGroupReviewersRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupReviewersRequest$inboundSchema; - /** @deprecated use `SetGroupReviewersRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupReviewersRequest$outboundSchema; - /** @deprecated use `SetGroupReviewersRequest$Outbound` instead. */ - export type Outbound = SetGroupReviewersRequest$Outbound; -} - export function setGroupReviewersRequestToJSON( setGroupReviewersRequest: SetGroupReviewersRequest, ): string { @@ -73,7 +59,6 @@ export function setGroupReviewersRequestToJSON( SetGroupReviewersRequest$outboundSchema.parse(setGroupReviewersRequest), ); } - export function setGroupReviewersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgroupreviewerstages.ts b/src/models/operations/setgroupreviewerstages.ts index 91d2689..5315907 100644 --- a/src/models/operations/setgroupreviewerstages.ts +++ b/src/models/operations/setgroupreviewerstages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupReviewerStagesRequest$inboundSchema: z.ZodType< "ReviewerStageList": "reviewerStageList", }); }); - /** @internal */ export type SetGroupReviewerStagesRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupReviewerStagesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupReviewerStagesRequest$ { - /** @deprecated use `SetGroupReviewerStagesRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupReviewerStagesRequest$inboundSchema; - /** @deprecated use `SetGroupReviewerStagesRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupReviewerStagesRequest$outboundSchema; - /** @deprecated use `SetGroupReviewerStagesRequest$Outbound` instead. */ - export type Outbound = SetGroupReviewerStagesRequest$Outbound; -} - export function setGroupReviewerStagesRequestToJSON( setGroupReviewerStagesRequest: SetGroupReviewerStagesRequest, ): string { @@ -75,7 +61,6 @@ export function setGroupReviewerStagesRequestToJSON( ), ); } - export function setGroupReviewerStagesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setgroupvisibility.ts b/src/models/operations/setgroupvisibility.ts index de1c038..3564910 100644 --- a/src/models/operations/setgroupvisibility.ts +++ b/src/models/operations/setgroupvisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetGroupVisibilityRequest$inboundSchema: z.ZodType< "VisibilityInfo": "visibilityInfo", }); }); - /** @internal */ export type SetGroupVisibilityRequest$Outbound = { group_id: string; @@ -53,19 +52,6 @@ export const SetGroupVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetGroupVisibilityRequest$ { - /** @deprecated use `SetGroupVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = SetGroupVisibilityRequest$inboundSchema; - /** @deprecated use `SetGroupVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = SetGroupVisibilityRequest$outboundSchema; - /** @deprecated use `SetGroupVisibilityRequest$Outbound` instead. */ - export type Outbound = SetGroupVisibilityRequest$Outbound; -} - export function setGroupVisibilityRequestToJSON( setGroupVisibilityRequest: SetGroupVisibilityRequest, ): string { @@ -73,7 +59,6 @@ export function setGroupVisibilityRequestToJSON( SetGroupVisibilityRequest$outboundSchema.parse(setGroupVisibilityRequest), ); } - export function setGroupVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setownerusers.ts b/src/models/operations/setownerusers.ts index e4c1090..a769f1a 100644 --- a/src/models/operations/setownerusers.ts +++ b/src/models/operations/setownerusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetOwnerUsersRequest$inboundSchema: z.ZodType< "UserIDList": "userIDList", }); }); - /** @internal */ export type SetOwnerUsersRequest$Outbound = { owner_id: string; @@ -53,19 +52,6 @@ export const SetOwnerUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetOwnerUsersRequest$ { - /** @deprecated use `SetOwnerUsersRequest$inboundSchema` instead. */ - export const inboundSchema = SetOwnerUsersRequest$inboundSchema; - /** @deprecated use `SetOwnerUsersRequest$outboundSchema` instead. */ - export const outboundSchema = SetOwnerUsersRequest$outboundSchema; - /** @deprecated use `SetOwnerUsersRequest$Outbound` instead. */ - export type Outbound = SetOwnerUsersRequest$Outbound; -} - export function setOwnerUsersRequestToJSON( setOwnerUsersRequest: SetOwnerUsersRequest, ): string { @@ -73,7 +59,6 @@ export function setOwnerUsersRequestToJSON( SetOwnerUsersRequest$outboundSchema.parse(setOwnerUsersRequest), ); } - export function setOwnerUsersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setresourcemessagechannels.ts b/src/models/operations/setresourcemessagechannels.ts index 83509a8..d5801b2 100644 --- a/src/models/operations/setresourcemessagechannels.ts +++ b/src/models/operations/setresourcemessagechannels.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetResourceMessageChannelsRequest$inboundSchema: z.ZodType< "MessageChannelIDList": "messageChannelIDList", }); }); - /** @internal */ export type SetResourceMessageChannelsRequest$Outbound = { resource_id: string; @@ -53,20 +52,6 @@ export const SetResourceMessageChannelsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetResourceMessageChannelsRequest$ { - /** @deprecated use `SetResourceMessageChannelsRequest$inboundSchema` instead. */ - export const inboundSchema = SetResourceMessageChannelsRequest$inboundSchema; - /** @deprecated use `SetResourceMessageChannelsRequest$outboundSchema` instead. */ - export const outboundSchema = - SetResourceMessageChannelsRequest$outboundSchema; - /** @deprecated use `SetResourceMessageChannelsRequest$Outbound` instead. */ - export type Outbound = SetResourceMessageChannelsRequest$Outbound; -} - export function setResourceMessageChannelsRequestToJSON( setResourceMessageChannelsRequest: SetResourceMessageChannelsRequest, ): string { @@ -76,7 +61,6 @@ export function setResourceMessageChannelsRequestToJSON( ), ); } - export function setResourceMessageChannelsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setresourcereviewers.ts b/src/models/operations/setresourcereviewers.ts index 8b05e93..4465d3f 100644 --- a/src/models/operations/setresourcereviewers.ts +++ b/src/models/operations/setresourcereviewers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetResourceReviewersRequest$inboundSchema: z.ZodType< "ReviewerIDList": "reviewerIDList", }); }); - /** @internal */ export type SetResourceReviewersRequest$Outbound = { resource_id: string; @@ -53,19 +52,6 @@ export const SetResourceReviewersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetResourceReviewersRequest$ { - /** @deprecated use `SetResourceReviewersRequest$inboundSchema` instead. */ - export const inboundSchema = SetResourceReviewersRequest$inboundSchema; - /** @deprecated use `SetResourceReviewersRequest$outboundSchema` instead. */ - export const outboundSchema = SetResourceReviewersRequest$outboundSchema; - /** @deprecated use `SetResourceReviewersRequest$Outbound` instead. */ - export type Outbound = SetResourceReviewersRequest$Outbound; -} - export function setResourceReviewersRequestToJSON( setResourceReviewersRequest: SetResourceReviewersRequest, ): string { @@ -75,7 +61,6 @@ export function setResourceReviewersRequestToJSON( ), ); } - export function setResourceReviewersRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setresourcereviewerstages.ts b/src/models/operations/setresourcereviewerstages.ts index 4d70c75..dde5779 100644 --- a/src/models/operations/setresourcereviewerstages.ts +++ b/src/models/operations/setresourcereviewerstages.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetResourceReviewerStagesRequest$inboundSchema: z.ZodType< "ReviewerStageList": "reviewerStageList", }); }); - /** @internal */ export type SetResourceReviewerStagesRequest$Outbound = { resource_id: string; @@ -53,19 +52,6 @@ export const SetResourceReviewerStagesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetResourceReviewerStagesRequest$ { - /** @deprecated use `SetResourceReviewerStagesRequest$inboundSchema` instead. */ - export const inboundSchema = SetResourceReviewerStagesRequest$inboundSchema; - /** @deprecated use `SetResourceReviewerStagesRequest$outboundSchema` instead. */ - export const outboundSchema = SetResourceReviewerStagesRequest$outboundSchema; - /** @deprecated use `SetResourceReviewerStagesRequest$Outbound` instead. */ - export type Outbound = SetResourceReviewerStagesRequest$Outbound; -} - export function setResourceReviewerStagesRequestToJSON( setResourceReviewerStagesRequest: SetResourceReviewerStagesRequest, ): string { @@ -75,7 +61,6 @@ export function setResourceReviewerStagesRequestToJSON( ), ); } - export function setResourceReviewerStagesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/setresourcescopedrolepermissions.ts b/src/models/operations/setresourcescopedrolepermissions.ts index a43d650..2cef6b9 100644 --- a/src/models/operations/setresourcescopedrolepermissions.ts +++ b/src/models/operations/setresourcescopedrolepermissions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetResourceScopedRolePermissionsRequest$inboundSchema: z.ZodType< "ScopedRolePermissionList": "scopedRolePermissionList", }); }); - /** @internal */ export type SetResourceScopedRolePermissionsRequest$Outbound = { resource_id: string; @@ -53,21 +52,6 @@ export const SetResourceScopedRolePermissionsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetResourceScopedRolePermissionsRequest$ { - /** @deprecated use `SetResourceScopedRolePermissionsRequest$inboundSchema` instead. */ - export const inboundSchema = - SetResourceScopedRolePermissionsRequest$inboundSchema; - /** @deprecated use `SetResourceScopedRolePermissionsRequest$outboundSchema` instead. */ - export const outboundSchema = - SetResourceScopedRolePermissionsRequest$outboundSchema; - /** @deprecated use `SetResourceScopedRolePermissionsRequest$Outbound` instead. */ - export type Outbound = SetResourceScopedRolePermissionsRequest$Outbound; -} - export function setResourceScopedRolePermissionsRequestToJSON( setResourceScopedRolePermissionsRequest: SetResourceScopedRolePermissionsRequest, @@ -78,7 +62,6 @@ export function setResourceScopedRolePermissionsRequestToJSON( ), ); } - export function setResourceScopedRolePermissionsRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/operations/setresourcevisibility.ts b/src/models/operations/setresourcevisibility.ts index 12f074f..2429df2 100644 --- a/src/models/operations/setresourcevisibility.ts +++ b/src/models/operations/setresourcevisibility.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const SetResourceVisibilityRequest$inboundSchema: z.ZodType< "VisibilityInfo": "visibilityInfo", }); }); - /** @internal */ export type SetResourceVisibilityRequest$Outbound = { resource_id: string; @@ -53,19 +52,6 @@ export const SetResourceVisibilityRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SetResourceVisibilityRequest$ { - /** @deprecated use `SetResourceVisibilityRequest$inboundSchema` instead. */ - export const inboundSchema = SetResourceVisibilityRequest$inboundSchema; - /** @deprecated use `SetResourceVisibilityRequest$outboundSchema` instead. */ - export const outboundSchema = SetResourceVisibilityRequest$outboundSchema; - /** @deprecated use `SetResourceVisibilityRequest$Outbound` instead. */ - export type Outbound = SetResourceVisibilityRequest$Outbound; -} - export function setResourceVisibilityRequestToJSON( setResourceVisibilityRequest: SetResourceVisibilityRequest, ): string { @@ -75,7 +61,6 @@ export function setResourceVisibilityRequestToJSON( ), ); } - export function setResourceVisibilityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateaccessrule.ts b/src/models/operations/updateaccessrule.ts index 1baa4d7..a27563a 100644 --- a/src/models/operations/updateaccessrule.ts +++ b/src/models/operations/updateaccessrule.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const UpdateAccessRuleRequest$inboundSchema: z.ZodType< "UpdateAccessRuleInfo": "updateAccessRuleInfo", }); }); - /** @internal */ export type UpdateAccessRuleRequest$Outbound = { access_rule_id: string; @@ -53,19 +52,6 @@ export const UpdateAccessRuleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateAccessRuleRequest$ { - /** @deprecated use `UpdateAccessRuleRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateAccessRuleRequest$inboundSchema; - /** @deprecated use `UpdateAccessRuleRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateAccessRuleRequest$outboundSchema; - /** @deprecated use `UpdateAccessRuleRequest$Outbound` instead. */ - export type Outbound = UpdateAccessRuleRequest$Outbound; -} - export function updateAccessRuleRequestToJSON( updateAccessRuleRequest: UpdateAccessRuleRequest, ): string { @@ -73,7 +59,6 @@ export function updateAccessRuleRequestToJSON( UpdateAccessRuleRequest$outboundSchema.parse(updateAccessRuleRequest), ); } - export function updateAccessRuleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updatebundle.ts b/src/models/operations/updatebundle.ts index 8612e91..cf21c6c 100644 --- a/src/models/operations/updatebundle.ts +++ b/src/models/operations/updatebundle.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const UpdateBundleRequest$inboundSchema: z.ZodType< "Bundle": "bundle", }); }); - /** @internal */ export type UpdateBundleRequest$Outbound = { bundle_id: string; @@ -53,19 +52,6 @@ export const UpdateBundleRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateBundleRequest$ { - /** @deprecated use `UpdateBundleRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateBundleRequest$inboundSchema; - /** @deprecated use `UpdateBundleRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateBundleRequest$outboundSchema; - /** @deprecated use `UpdateBundleRequest$Outbound` instead. */ - export type Outbound = UpdateBundleRequest$Outbound; -} - export function updateBundleRequestToJSON( updateBundleRequest: UpdateBundleRequest, ): string { @@ -73,7 +59,6 @@ export function updateBundleRequestToJSON( UpdateBundleRequest$outboundSchema.parse(updateBundleRequest), ); } - export function updateBundleRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updategroupuser.ts b/src/models/operations/updategroupuser.ts index 1a21b95..85eaa49 100644 --- a/src/models/operations/updategroupuser.ts +++ b/src/models/operations/updategroupuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const UpdateGroupUserRequestBody$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type UpdateGroupUserRequestBody$Outbound = { duration_minutes: number; @@ -67,19 +66,6 @@ export const UpdateGroupUserRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupUserRequestBody$ { - /** @deprecated use `UpdateGroupUserRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupUserRequestBody$inboundSchema; - /** @deprecated use `UpdateGroupUserRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupUserRequestBody$outboundSchema; - /** @deprecated use `UpdateGroupUserRequestBody$Outbound` instead. */ - export type Outbound = UpdateGroupUserRequestBody$Outbound; -} - export function updateGroupUserRequestBodyToJSON( updateGroupUserRequestBody: UpdateGroupUserRequestBody, ): string { @@ -87,7 +73,6 @@ export function updateGroupUserRequestBodyToJSON( UpdateGroupUserRequestBody$outboundSchema.parse(updateGroupUserRequestBody), ); } - export function updateGroupUserRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -114,7 +99,6 @@ export const UpdateGroupUserRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateGroupUserRequest$Outbound = { group_id: string; @@ -139,19 +123,6 @@ export const UpdateGroupUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateGroupUserRequest$ { - /** @deprecated use `UpdateGroupUserRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateGroupUserRequest$inboundSchema; - /** @deprecated use `UpdateGroupUserRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateGroupUserRequest$outboundSchema; - /** @deprecated use `UpdateGroupUserRequest$Outbound` instead. */ - export type Outbound = UpdateGroupUserRequest$Outbound; -} - export function updateGroupUserRequestToJSON( updateGroupUserRequest: UpdateGroupUserRequest, ): string { @@ -159,7 +130,6 @@ export function updateGroupUserRequestToJSON( UpdateGroupUserRequest$outboundSchema.parse(updateGroupUserRequest), ); } - export function updateGroupUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateidpgroupmappings.ts b/src/models/operations/updateidpgroupmappings.ts index 2531cd0..bde7515 100644 --- a/src/models/operations/updateidpgroupmappings.ts +++ b/src/models/operations/updateidpgroupmappings.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -38,7 +38,6 @@ export const Mapping$inboundSchema: z.ZodType = "hidden_from_end_user": "hiddenFromEndUser", }); }); - /** @internal */ export type Mapping$Outbound = { group_id?: string | undefined; @@ -62,23 +61,9 @@ export const Mapping$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Mapping$ { - /** @deprecated use `Mapping$inboundSchema` instead. */ - export const inboundSchema = Mapping$inboundSchema; - /** @deprecated use `Mapping$outboundSchema` instead. */ - export const outboundSchema = Mapping$outboundSchema; - /** @deprecated use `Mapping$Outbound` instead. */ - export type Outbound = Mapping$Outbound; -} - export function mappingToJSON(mapping: Mapping): string { return JSON.stringify(Mapping$outboundSchema.parse(mapping)); } - export function mappingFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const UpdateIdpGroupMappingsRequestBody$inboundSchema: z.ZodType< > = z.object({ mappings: z.array(z.lazy(() => Mapping$inboundSchema)), }); - /** @internal */ export type UpdateIdpGroupMappingsRequestBody$Outbound = { mappings: Array; @@ -112,20 +96,6 @@ export const UpdateIdpGroupMappingsRequestBody$outboundSchema: z.ZodType< mappings: z.array(z.lazy(() => Mapping$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateIdpGroupMappingsRequestBody$ { - /** @deprecated use `UpdateIdpGroupMappingsRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateIdpGroupMappingsRequestBody$inboundSchema; - /** @deprecated use `UpdateIdpGroupMappingsRequestBody$outboundSchema` instead. */ - export const outboundSchema = - UpdateIdpGroupMappingsRequestBody$outboundSchema; - /** @deprecated use `UpdateIdpGroupMappingsRequestBody$Outbound` instead. */ - export type Outbound = UpdateIdpGroupMappingsRequestBody$Outbound; -} - export function updateIdpGroupMappingsRequestBodyToJSON( updateIdpGroupMappingsRequestBody: UpdateIdpGroupMappingsRequestBody, ): string { @@ -135,7 +105,6 @@ export function updateIdpGroupMappingsRequestBodyToJSON( ), ); } - export function updateIdpGroupMappingsRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -160,7 +129,6 @@ export const UpdateIdpGroupMappingsRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateIdpGroupMappingsRequest$Outbound = { app_resource_id: string; @@ -182,19 +150,6 @@ export const UpdateIdpGroupMappingsRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateIdpGroupMappingsRequest$ { - /** @deprecated use `UpdateIdpGroupMappingsRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateIdpGroupMappingsRequest$inboundSchema; - /** @deprecated use `UpdateIdpGroupMappingsRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateIdpGroupMappingsRequest$outboundSchema; - /** @deprecated use `UpdateIdpGroupMappingsRequest$Outbound` instead. */ - export type Outbound = UpdateIdpGroupMappingsRequest$Outbound; -} - export function updateIdpGroupMappingsRequestToJSON( updateIdpGroupMappingsRequest: UpdateIdpGroupMappingsRequest, ): string { @@ -204,7 +159,6 @@ export function updateIdpGroupMappingsRequestToJSON( ), ); } - export function updateIdpGroupMappingsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/updateresourceuser.ts b/src/models/operations/updateresourceuser.ts index 19fc6d8..59b8414 100644 --- a/src/models/operations/updateresourceuser.ts +++ b/src/models/operations/updateresourceuser.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,7 +45,6 @@ export const UpdateResourceUserRequestBody$inboundSchema: z.ZodType< "access_level_remote_id": "accessLevelRemoteId", }); }); - /** @internal */ export type UpdateResourceUserRequestBody$Outbound = { duration_minutes: number; @@ -67,19 +66,6 @@ export const UpdateResourceUserRequestBody$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateResourceUserRequestBody$ { - /** @deprecated use `UpdateResourceUserRequestBody$inboundSchema` instead. */ - export const inboundSchema = UpdateResourceUserRequestBody$inboundSchema; - /** @deprecated use `UpdateResourceUserRequestBody$outboundSchema` instead. */ - export const outboundSchema = UpdateResourceUserRequestBody$outboundSchema; - /** @deprecated use `UpdateResourceUserRequestBody$Outbound` instead. */ - export type Outbound = UpdateResourceUserRequestBody$Outbound; -} - export function updateResourceUserRequestBodyToJSON( updateResourceUserRequestBody: UpdateResourceUserRequestBody, ): string { @@ -89,7 +75,6 @@ export function updateResourceUserRequestBodyToJSON( ), ); } - export function updateResourceUserRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -116,7 +101,6 @@ export const UpdateResourceUserRequest$inboundSchema: z.ZodType< "RequestBody": "requestBody", }); }); - /** @internal */ export type UpdateResourceUserRequest$Outbound = { resource_id: string; @@ -141,19 +125,6 @@ export const UpdateResourceUserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateResourceUserRequest$ { - /** @deprecated use `UpdateResourceUserRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateResourceUserRequest$inboundSchema; - /** @deprecated use `UpdateResourceUserRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateResourceUserRequest$outboundSchema; - /** @deprecated use `UpdateResourceUserRequest$Outbound` instead. */ - export type Outbound = UpdateResourceUserRequest$Outbound; -} - export function updateResourceUserRequestToJSON( updateResourceUserRequest: UpdateResourceUserRequest, ): string { @@ -161,7 +132,6 @@ export function updateResourceUserRequestToJSON( UpdateResourceUserRequest$outboundSchema.parse(updateResourceUserRequest), ); } - export function updateResourceUserRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/user.ts b/src/models/operations/user.ts index 39d3de0..e34f937 100644 --- a/src/models/operations/user.ts +++ b/src/models/operations/user.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -32,7 +32,6 @@ export const UserRequest$inboundSchema: z.ZodType< "user_id": "userId", }); }); - /** @internal */ export type UserRequest$Outbound = { user_id?: string | undefined; @@ -53,23 +52,9 @@ export const UserRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserRequest$ { - /** @deprecated use `UserRequest$inboundSchema` instead. */ - export const inboundSchema = UserRequest$inboundSchema; - /** @deprecated use `UserRequest$outboundSchema` instead. */ - export const outboundSchema = UserRequest$outboundSchema; - /** @deprecated use `UserRequest$Outbound` instead. */ - export type Outbound = UserRequest$Outbound; -} - export function userRequestToJSON(userRequest: UserRequest): string { return JSON.stringify(UserRequest$outboundSchema.parse(userRequest)); } - export function userRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/sdk/apps.ts b/src/sdk/apps.ts index f4c3672..8f414c9 100644 --- a/src/sdk/apps.ts +++ b/src/sdk/apps.ts @@ -12,6 +12,9 @@ import { unwrapAsync } from "../types/fp.js"; export class Apps extends ClientSDK { /** + * Get apps + * + * @remarks * Returns a list of `App` objects. */ async getApps( @@ -26,6 +29,9 @@ export class Apps extends ClientSDK { } /** + * Get app by ID + * + * @remarks * Returns an `App` object. */ async getApp( diff --git a/src/sdk/bundles.ts b/src/sdk/bundles.ts index 4350e9f..8529919 100644 --- a/src/sdk/bundles.ts +++ b/src/sdk/bundles.ts @@ -23,6 +23,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Bundles extends ClientSDK { /** + * Get bundles + * + * @remarks * Returns a list of `Bundle` objects. */ async getBundles( @@ -51,6 +54,9 @@ export class Bundles extends ClientSDK { } /** + * Get bundle by ID + * + * @remarks * Returns a `Bundle` object. */ async getBundle( diff --git a/src/sdk/delegations.ts b/src/sdk/delegations.ts new file mode 100644 index 0000000..763453f --- /dev/null +++ b/src/sdk/delegations.ts @@ -0,0 +1,76 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { delegationsCreateDelegation } from "../funcs/delegationsCreateDelegation.js"; +import { delegationsDeleteDelegation } from "../funcs/delegationsDeleteDelegation.js"; +import { delegationsGetDelegation } from "../funcs/delegationsGetDelegation.js"; +import { delegationsGetDelegations } from "../funcs/delegationsGetDelegations.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as components from "../models/components/index.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; + +export class Delegations extends ClientSDK { + /** + * Get delegations + * + * @remarks + * Returns a list of request reviewer delegations configured for your organization. + */ + async getDelegations( + request: operations.GetDelegationsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(delegationsGetDelegations( + this, + request, + options, + )); + } + + /** + * Creates a new request reviewer delegation to delegate access review requests from one user to another. + */ + async createDelegation( + request: components.CreateDelegationRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(delegationsCreateDelegation( + this, + request, + options, + )); + } + + /** + * Get delegation by ID + * + * @remarks + * Returns a specific delegation by its ID. + */ + async getDelegation( + request: operations.GetDelegationRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(delegationsGetDelegation( + this, + request, + options, + )); + } + + /** + * Deletes a delegation by its ID. + */ + async deleteDelegation( + request: operations.DeleteDelegationRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(delegationsDeleteDelegation( + this, + request, + options, + )); + } +} diff --git a/src/sdk/groupbindings.ts b/src/sdk/groupbindings.ts index 9a8da48..ea4f31f 100644 --- a/src/sdk/groupbindings.ts +++ b/src/sdk/groupbindings.ts @@ -15,6 +15,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class GroupBindings extends ClientSDK { /** + * Get group bindings + * + * @remarks * Returns a list of `GroupBinding` objects. */ async getGroupBindings( @@ -59,6 +62,9 @@ export class GroupBindings extends ClientSDK { } /** + * Get group binding by ID + * + * @remarks * Returns a `GroupBinding` object. */ async getGroupBinding( diff --git a/src/sdk/groups.ts b/src/sdk/groups.ts index 883cc7c..b46d7e8 100644 --- a/src/sdk/groups.ts +++ b/src/sdk/groups.ts @@ -20,6 +20,7 @@ import { groupsGetGroups } from "../funcs/groupsGetGroups.js"; import { groupsGetGroupTags } from "../funcs/groupsGetGroupTags.js"; import { groupsGetGroupUsers } from "../funcs/groupsGetGroupUsers.js"; import { groupsGetGroupVisibility } from "../funcs/groupsGetGroupVisibility.js"; +import { groupsGetUserGroups } from "../funcs/groupsGetUserGroups.js"; import { groupsRemoveGroupContainingGroup } from "../funcs/groupsRemoveGroupContainingGroup.js"; import { groupsSetGroupMessageChannels } from "../funcs/groupsSetGroupMessageChannels.js"; import { groupsSetGroupOnCallSchedules } from "../funcs/groupsSetGroupOnCallSchedules.js"; @@ -37,6 +38,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Groups extends ClientSDK { /** + * Get groups + * + * @remarks * Returns a list of groups for your organization. */ async getGroups( @@ -79,6 +83,9 @@ export class Groups extends ClientSDK { } /** + * Get group by ID + * + * @remarks * Returns a `Group` object. */ async getGroup( @@ -191,6 +198,9 @@ export class Groups extends ClientSDK { } /** + * Get nested groups + * + * @remarks * Gets the list of groups that the group gives access to. */ async getGroupContainingGroups( @@ -219,6 +229,9 @@ export class Groups extends ClientSDK { } /** + * Get nested group by ID + * + * @remarks * Gets a specific containing group for a group. */ async getGroupContainingGroup( @@ -421,4 +434,18 @@ export class Groups extends ClientSDK { options, )); } + + /** + * Returns all groups that the user is a member of. + */ + async getUserGroups( + request: operations.GetUserGroupsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(groupsGetUserGroups( + this, + request, + options, + )); + } } diff --git a/src/sdk/idpgroupmappings.ts b/src/sdk/idpgroupmappings.ts index f2b8098..512ea73 100644 --- a/src/sdk/idpgroupmappings.ts +++ b/src/sdk/idpgroupmappings.ts @@ -2,7 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { idpGroupMappingsCreateIdpGroupMapping } from "../funcs/idpGroupMappingsCreateIdpGroupMapping.js"; import { idpGroupMappingsDeleteIdpGroupMappings } from "../funcs/idpGroupMappingsDeleteIdpGroupMappings.js"; +import { idpGroupMappingsGetIdpGroupMapping } from "../funcs/idpGroupMappingsGetIdpGroupMapping.js"; import { idpGroupMappingsGetIdpGroupMappings } from "../funcs/idpGroupMappingsGetIdpGroupMappings.js"; import { idpGroupMappingsUpdateIdpGroupMappings } from "../funcs/idpGroupMappingsUpdateIdpGroupMappings.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; @@ -39,6 +41,38 @@ export class IdpGroupMappings extends ClientSDK { )); } + /** + * Gets an `IdpGroupMapping` object for an Okta app and group. + */ + async getIdpGroupMapping( + request: operations.GetIdpGroupMappingRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(idpGroupMappingsGetIdpGroupMapping( + this, + request, + options, + )); + } + + /** + * Creates or updates an individual `IdpGroupMapping` object (upsert operation). + * + * **Behavior:** + * - If the mapping doesn't exist, it will be created with the provided values + * - If the mapping exists, only the fields provided in the request will be updated + */ + async createIdpGroupMapping( + request: operations.CreateIdpGroupMappingRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(idpGroupMappingsCreateIdpGroupMapping( + this, + request, + options, + )); + } + /** * Deletes an `IdpGroupMapping` object. */ diff --git a/src/sdk/messagechannels.ts b/src/sdk/messagechannels.ts index afa0342..62ea87d 100644 --- a/src/sdk/messagechannels.ts +++ b/src/sdk/messagechannels.ts @@ -12,6 +12,9 @@ import { unwrapAsync } from "../types/fp.js"; export class MessageChannels extends ClientSDK { /** + * Get message channels + * + * @remarks * Returns a list of `MessageChannel` objects. */ async getMessageChannels( @@ -38,6 +41,9 @@ export class MessageChannels extends ClientSDK { } /** + * Get message channel by ID + * + * @remarks * Gets a `MessageChannel` object. */ async getMessageChannel( diff --git a/src/sdk/oncallschedules.ts b/src/sdk/oncallschedules.ts index db98986..02c9e16 100644 --- a/src/sdk/oncallschedules.ts +++ b/src/sdk/oncallschedules.ts @@ -12,6 +12,9 @@ import { unwrapAsync } from "../types/fp.js"; export class OnCallSchedules extends ClientSDK { /** + * Get on call schedules + * + * @remarks * Returns a list of `OnCallSchedule` objects. */ async getOnCallSchedules( @@ -38,6 +41,9 @@ export class OnCallSchedules extends ClientSDK { } /** + * Get on call schedule by ID + * + * @remarks * Gets a `OnCallSchedule` object. */ async getOnCallSchedule( diff --git a/src/sdk/owners.ts b/src/sdk/owners.ts index 24fe4e2..f5ac3a6 100644 --- a/src/sdk/owners.ts +++ b/src/sdk/owners.ts @@ -18,6 +18,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Owners extends ClientSDK { /** + * Get owners + * + * @remarks * Returns a list of `Owner` objects. */ async getOwners( @@ -60,6 +63,9 @@ export class Owners extends ClientSDK { } /** + * Get owner by ID + * + * @remarks * Returns an `Owner` object. */ async getOwner( diff --git a/src/sdk/requests.ts b/src/sdk/requests.ts index 26c0b71..762337b 100644 --- a/src/sdk/requests.ts +++ b/src/sdk/requests.ts @@ -4,7 +4,10 @@ import { requestsApproveRequest } from "../funcs/requestsApproveRequest.js"; import { requestsCreateRequest } from "../funcs/requestsCreateRequest.js"; +import { requestsCreateRequestComment } from "../funcs/requestsCreateRequestComment.js"; +import { requestsDenyRequest } from "../funcs/requestsDenyRequest.js"; import { requestsGetRequest } from "../funcs/requestsGetRequest.js"; +import { requestsGetRequestComments } from "../funcs/requestsGetRequestComments.js"; import { requestsGetRequests } from "../funcs/requestsGetRequests.js"; import { requestsGetRequestsRelay } from "../funcs/requestsGetRequestsRelay.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; @@ -15,6 +18,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Requests extends ClientSDK { /** + * Get requests + * + * @remarks * Returns a list of requests for your organization that is visible by the admin. */ async getRequests( @@ -43,6 +49,9 @@ export class Requests extends ClientSDK { } /** + * Get requests via Relay + * + * @remarks * Returns a paginated list of requests using Relay-style cursor pagination. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -59,6 +68,9 @@ export class Requests extends ClientSDK { } /** + * Get request by ID + * + * @remarks * Returns a request by ID. */ async getRequest( @@ -85,4 +97,46 @@ export class Requests extends ClientSDK { options, )); } + + /** + * Deny an access request + */ + async denyRequest( + request: operations.DenyRequestRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(requestsDenyRequest( + this, + request, + options, + )); + } + + /** + * Returns a list of comments for a specific request. + */ + async getRequestComments( + request: operations.GetRequestCommentsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(requestsGetRequestComments( + this, + request, + options, + )); + } + + /** + * Comment on an access request + */ + async createRequestComment( + request: operations.CreateRequestCommentRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(requestsCreateRequestComment( + this, + request, + options, + )); + } } diff --git a/src/sdk/resources.ts b/src/sdk/resources.ts index e58f662..b815ec7 100644 --- a/src/sdk/resources.ts +++ b/src/sdk/resources.ts @@ -19,6 +19,7 @@ import { resourcesGetResourceTags } from "../funcs/resourcesGetResourceTags.js"; import { resourcesGetResourceUser } from "../funcs/resourcesGetResourceUser.js"; import { resourcesGetResourceUsers } from "../funcs/resourcesGetResourceUsers.js"; import { resourcesGetResourceVisibility } from "../funcs/resourcesGetResourceVisibility.js"; +import { resourcesGetUserResources } from "../funcs/resourcesGetUserResources.js"; import { resourcesResourceUserAccessStatusRetrieve } from "../funcs/resourcesResourceUserAccessStatusRetrieve.js"; import { resourcesSetResourceMessageChannels } from "../funcs/resourcesSetResourceMessageChannels.js"; import { resourcesSetResourceReviewers } from "../funcs/resourcesSetResourceReviewers.js"; @@ -35,6 +36,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Resources extends ClientSDK { /** + * Get resources + * + * @remarks * Returns a list of resources for your organization. */ async getResources( @@ -79,6 +83,9 @@ export class Resources extends ClientSDK { } /** + * Get resource by ID + * + * @remarks * Retrieves a resource. */ async getResource( @@ -233,6 +240,9 @@ export class Resources extends ClientSDK { } /** + * Get resource users + * + * @remarks * Gets the list of users for this resource. */ async getResourceUsers( @@ -317,6 +327,9 @@ export class Resources extends ClientSDK { } /** + * Get resource user + * + * @remarks * Returns information about a specific user's access to a resource. */ async getResourceUser( @@ -387,4 +400,18 @@ export class Resources extends ClientSDK { options, )); } + + /** + * Gets the list of resources for this user. + */ + async getUserResources( + request: operations.GetUserResourcesRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(resourcesGetUserResources( + this, + request, + options, + )); + } } diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index c38332a..d5fbe48 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -7,6 +7,7 @@ import { AccessRules } from "./accessrules.js"; import { Apps } from "./apps.js"; import { Bundles } from "./bundles.js"; import { ConfigurationTemplates } from "./configurationtemplates.js"; +import { Delegations } from "./delegations.js"; import { Events } from "./events.js"; import { GroupBindings } from "./groupbindings.js"; import { Groups } from "./groups.js"; @@ -17,7 +18,6 @@ import { OnCallSchedules } from "./oncallschedules.js"; import { Owners } from "./owners.js"; import { Requests } from "./requests.js"; import { Resources } from "./resources.js"; -import { ScopedRolePermissions } from "./scopedrolepermissions.js"; import { Sessions } from "./sessions.js"; import { Tags } from "./tags.js"; import { Uars } from "./uars.js"; @@ -81,13 +81,6 @@ export class OpalMcp extends ClientSDK { return (this._nonHumanIdentities ??= new NonHumanIdentities(this._options)); } - private _scopedRolePermissions?: ScopedRolePermissions; - get scopedRolePermissions(): ScopedRolePermissions { - return (this._scopedRolePermissions ??= new ScopedRolePermissions( - this._options, - )); - } - private _sessions?: Sessions; get sessions(): Sessions { return (this._sessions ??= new Sessions(this._options)); @@ -122,4 +115,9 @@ export class OpalMcp extends ClientSDK { get uars(): Uars { return (this._uars ??= new Uars(this._options)); } + + private _delegations?: Delegations; + get delegations(): Delegations { + return (this._delegations ??= new Delegations(this._options)); + } } diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index b69fbea..4adf15f 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -21,6 +21,9 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Tags extends ClientSDK { /** + * Get tag by ID + * + * @remarks * UNSTABLE. May be removed at any time. Gets a tag with the given id. */ async getTagByID( @@ -77,6 +80,9 @@ export class Tags extends ClientSDK { } /** + * Get tags + * + * @remarks * Returns a list of tags created by your organization. */ async getTags( diff --git a/src/sdk/users.ts b/src/sdk/users.ts index 3c2a5fe..19c227d 100644 --- a/src/sdk/users.ts +++ b/src/sdk/users.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { usersGetRemoteUsers } from "../funcs/usersGetRemoteUsers.js"; import { usersGetUsers } from "../funcs/usersGetUsers.js"; import { usersGetUserTags } from "../funcs/usersGetUserTags.js"; import { usersUser } from "../funcs/usersUser.js"; @@ -52,6 +53,20 @@ export class Users extends ClientSDK { )); } + /** + * Returns a list of remote users for your organization. + */ + async getRemoteUsers( + request: operations.GetRemoteUsersRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(usersGetRemoteUsers( + this, + request, + options, + )); + } + /** * Returns all tags applied to the user. */ diff --git a/src/types/blobs.ts b/src/types/blobs.ts index 4ce8460..cce2892 100644 --- a/src/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/types/constdatetime.ts b/src/types/constdatetime.ts index eeff4dd..fe62144 100644 --- a/src/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, diff --git a/src/types/enums.ts b/src/types/enums.ts index 6fb6d91..aba0ffd 100644 --- a/src/types/enums.ts +++ b/src/types/enums.ts @@ -2,15 +2,44 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -declare const __brand: unique symbol; -export type Unrecognized = T & { [__brand]: "unrecognized" }; +import * as z from "zod/v3"; +import { Unrecognized, unrecognized } from "./unrecognized.js"; -export function catchUnrecognizedEnum(value: T): Unrecognized { - return value as Unrecognized; +export type ClosedEnum>> = + T[keyof T]; +export type OpenEnum>> = + | T[keyof T] + | Unrecognized; + +export function inboundSchema>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + const options = Object.values(enumObj); + return z.union([ + ...options.map(x => z.literal(x)), + z.string().transform(x => unrecognized(x)), + ] as any); } -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; +export function inboundSchemaInt>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + // For numeric enums, Object.values returns both numbers and string keys + const options = Object.values(enumObj).filter(v => typeof v === "number"); + return z.union([ + ...options.map(x => z.literal(x)), + z.number().int().transform(x => unrecognized(x)), + ] as any); +} + +export function outboundSchema>( + _: T, +): z.ZodType> { + return z.string() as any; +} + +export function outboundSchemaInt>( + _: T, +): z.ZodType> { + return z.number().int() as any; +} diff --git a/src/types/index.ts b/src/types/index.ts index e124e81..abf0b7a 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -3,9 +3,9 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; -export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; +export type { ClosedEnum, OpenEnum } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js"; export { createPageIterator } from "./operations.js"; export { RFCDate } from "./rfcdate.js"; +export * from "./unrecognized.js"; diff --git a/src/types/unrecognized.ts b/src/types/unrecognized.ts new file mode 100644 index 0000000..b7a2a13 --- /dev/null +++ b/src/types/unrecognized.ts @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +declare const __brand: unique symbol; +export type Unrecognized = T & { [__brand]: "unrecognized" }; + +function unrecognized(value: T): Unrecognized { + globalCount++; + return value as Unrecognized; +} + +let globalCount = 0; +let refCount = 0; +export function startCountingUnrecognized() { + refCount++; + const start = globalCount; + return { + /** + * Ends counting and returns the delta. + * @param delta - If provided, only this amount is added to the parent counter + * (used for nested unions where we only want to record the winning option's count). + * If not provided, records all counts since start(). + */ + end: (delta?: number) => { + const count = globalCount - start; + // Reset globalCount back to start, then add only the specified delta + globalCount = start + (delta ?? count); + if (--refCount === 0) globalCount = 0; + return count; + }, + }; +} + +export { unrecognized }; diff --git a/tsconfig.json b/tsconfig.json index 94d81a3..0ccdbe2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", + "incremental": false, "target": "ES2020", "lib": ["ES2022", "DOM", "DOM.Iterable"], "jsx": "react-jsx",