From 1488cd6d32518775bd2de36962ebba876c84d47b Mon Sep 17 00:00:00 2001 From: Rajpaul Bagga Date: Thu, 15 Oct 2026 15:19:19 -0400 Subject: [PATCH] API-6193: Public SDK Release October 14-15, 2026 Co-Authored-By: Claude Opus 5.5 --- .speakeasy/workflow.lock | 22 +- cvent-public-spec/openapi.yaml | 529 ++++++++++- packages/csharp/.speakeasy/gen.lock | 153 ++- packages/csharp/.speakeasy/gen.yaml | 2 +- packages/csharp/.speakeasy/tests.arazzo.yaml | 147 +++ packages/csharp/NUGET.md | 8 +- packages/csharp/README.md | 10 +- .../docs/Models/Components/AccountUser.md | 27 + .../Models/Components/AccountUserAddress.md | 16 + .../Components/AccountUserAuditDetails.md | 17 + .../Components/AccountUserContactDetails.md | 23 + .../Components/AccountUserCustomField.md | 14 + .../Components/AccountUserCustomFieldType.md | 23 + .../Components/AccountUserRoleReference.md | 10 + .../docs/Models/Components/AccountUsers.md | 11 + .../docs/Models/Components/EmailVerified.md | 20 + .../Models/Components/VisibilityAccess.md | 38 + .../Models/Requests/GetAccountUserRequest.md | 8 + .../Models/Requests/GetAccountUserResponse.md | 9 + .../Requests/ListAccountUsersRequest.md | 11 + .../Requests/ListAccountUsersResponse.md | 9 + packages/csharp/docs/sdks/users/README.md | 199 ++++ .../csharp/src/Cvent/SDK/Cvent.SDK.csproj | 2 +- .../src/Cvent/SDK/Hooks/OAuth2Scopes.cs | 4 +- .../SDK/Models/Components/AccountUser.cs | 144 +++ .../Models/Components/AccountUserAddress.cs | 62 ++ .../Components/AccountUserAuditDetails.cs | 69 ++ .../Components/AccountUserContactDetails.cs | 105 +++ .../Components/AccountUserCustomField.cs | 52 + .../Components/AccountUserCustomFieldType.cs | 61 ++ .../Components/AccountUserRoleReference.cs | 26 + .../SDK/Models/Components/AccountUsers.cs | 34 + .../SDK/Models/Components/EmailVerified.cs | 58 ++ .../SDK/Models/Components/VisibilityAccess.cs | 76 ++ .../Models/Requests/GetAccountUserRequest.cs | 22 + .../Models/Requests/GetAccountUserResponse.cs | 26 + .../Requests/ListAccountUsersRequest.cs | 61 ++ .../Requests/ListAccountUsersResponse.cs | 29 + packages/csharp/src/Cvent/SDK/SDKConfig.cs | 2 +- packages/csharp/src/Cvent/SDK/Users.cs | 396 ++++++++ .../csharp/src/Cvent/SDK/Utils/Constants.cs | 2 +- packages/java/.speakeasy/gen.lock | 167 +++- packages/java/.speakeasy/gen.yaml | 2 +- packages/java/.speakeasy/tests.arazzo.yaml | 147 +++ packages/java/README.md | 14 +- .../docs/models/components/AccountUser.md | 27 + .../models/components/AccountUserAddress.md | 16 + .../components/AccountUserAuditDetails.md | 17 + .../components/AccountUserContactDetails.md | 23 + .../components/AccountUserCustomField.md | 14 + .../components/AccountUserCustomFieldType.md | 23 + .../components/AccountUserRoleReference.md | 10 + .../docs/models/components/AccountUsers.md | 11 + .../docs/models/components/EmailVerified.md | 20 + .../models/components/VisibilityAccess.md | 38 + .../operations/GetAccountUserRequest.md | 8 + .../operations/GetAccountUserResponse.md | 11 + .../operations/ListAccountUsersRequest.md | 11 + .../operations/ListAccountUsersResponse.md | 11 + packages/java/docs/sdks/users/README.md | 274 ++++++ packages/java/gradle.properties | 2 +- .../src/main/java/com/cvent/AsyncUsers.java | 86 ++ .../main/java/com/cvent/SDKConfiguration.java | 2 +- .../java/src/main/java/com/cvent/Users.java | 89 ++ .../java/com/cvent/hooks/OAuth2Scopes.java | 4 +- .../cvent/models/components/AccountUser.java | 886 ++++++++++++++++++ .../models/components/AccountUserAddress.java | 334 +++++++ .../components/AccountUserAuditDetails.java | 378 ++++++++ .../components/AccountUserContactDetails.java | 613 ++++++++++++ .../components/AccountUserCustomField.java | 248 +++++ .../AccountUserCustomFieldType.java | 43 + .../components/AccountUserRoleReference.java | 93 ++ .../cvent/models/components/AccountUsers.java | 128 +++ .../models/components/EmailVerified.java | 42 + .../models/components/VisibilityAccess.java | 59 ++ .../operations/GetAccountUserRequest.java | 89 ++ .../GetAccountUserRequestBuilder.java | 60 ++ .../operations/GetAccountUserResponse.java | 207 ++++ .../operations/ListAccountUsersRequest.java | 291 ++++++ .../ListAccountUsersRequestBuilder.java | 107 +++ .../operations/ListAccountUsersResponse.java | 207 ++++ .../async/GetAccountUserRequestBuilder.java | 62 ++ .../async/GetAccountUserResponse.java | 208 ++++ .../async/ListAccountUsersRequestBuilder.java | 105 +++ .../async/ListAccountUsersResponse.java | 208 ++++ .../com/cvent/operations/GetAccountUser.java | 293 ++++++ .../cvent/operations/ListAccountUsers.java | 296 ++++++ packages/typescript/.speakeasy/gen.lock | 149 ++- packages/typescript/.speakeasy/gen.yaml | 2 +- .../typescript/.speakeasy/tests.arazzo.yaml | 147 +++ packages/typescript/README.md | 12 +- .../docs/models/components/accountuser.md | 97 ++ .../models/components/accountuseraddress.md | 31 + .../components/accountuserauditdetails.md | 33 + .../components/accountusercontactdetails.md | 53 ++ .../components/accountusercustomfield.md | 30 + .../components/accountusercustomfieldtype.md | 17 + .../components/accountuserrolereference.md | 19 + .../docs/models/components/accountusers.md | 103 ++ .../docs/models/components/emailverified.md | 17 + .../models/components/visibilityaccess.md | 31 + .../operations/getaccountuserrequest.md | 17 + .../operations/listaccountusersrequest.md | 22 + .../operations/listaccountusersresponse.md | 37 + packages/typescript/docs/sdks/users/README.md | 401 +++++++- packages/typescript/jsr.json | 2 +- packages/typescript/package.json | 2 +- .../src/funcs/usersGetAccountUser.ts | 185 ++++ .../src/funcs/usersListAccountUsers.ts | 249 +++++ packages/typescript/src/hooks/oauth2scopes.ts | 4 +- packages/typescript/src/lib/config.ts | 4 +- .../src/models/components/accountuser.ts | 177 ++++ .../models/components/accountuseraddress.ts | 67 ++ .../components/accountuserauditdetails.ts | 82 ++ .../components/accountusercontactdetails.ts | 106 +++ .../components/accountusercustomfield.ts | 81 ++ .../components/accountuserrolereference.ts | 37 + .../src/models/components/accountusers.ts | 44 + .../typescript/src/models/components/index.ts | 8 + .../src/models/components/visibilityaccess.ts | 60 ++ .../src/models/operations/getaccountuser.ts | 36 + .../typescript/src/models/operations/index.ts | 2 + .../src/models/operations/listaccountusers.ts | 111 +++ packages/typescript/src/sdk/users.ts | 38 + 124 files changed, 10951 insertions(+), 83 deletions(-) create mode 100644 packages/csharp/docs/Models/Components/AccountUser.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserAddress.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserAuditDetails.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserContactDetails.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserCustomField.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserCustomFieldType.md create mode 100644 packages/csharp/docs/Models/Components/AccountUserRoleReference.md create mode 100644 packages/csharp/docs/Models/Components/AccountUsers.md create mode 100644 packages/csharp/docs/Models/Components/EmailVerified.md create mode 100644 packages/csharp/docs/Models/Components/VisibilityAccess.md create mode 100644 packages/csharp/docs/Models/Requests/GetAccountUserRequest.md create mode 100644 packages/csharp/docs/Models/Requests/GetAccountUserResponse.md create mode 100644 packages/csharp/docs/Models/Requests/ListAccountUsersRequest.md create mode 100644 packages/csharp/docs/Models/Requests/ListAccountUsersResponse.md create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUser.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAddress.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAuditDetails.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserContactDetails.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomField.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomFieldType.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUserRoleReference.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/AccountUsers.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/EmailVerified.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Components/VisibilityAccess.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserRequest.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserResponse.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersRequest.cs create mode 100644 packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersResponse.cs create mode 100644 packages/java/docs/models/components/AccountUser.md create mode 100644 packages/java/docs/models/components/AccountUserAddress.md create mode 100644 packages/java/docs/models/components/AccountUserAuditDetails.md create mode 100644 packages/java/docs/models/components/AccountUserContactDetails.md create mode 100644 packages/java/docs/models/components/AccountUserCustomField.md create mode 100644 packages/java/docs/models/components/AccountUserCustomFieldType.md create mode 100644 packages/java/docs/models/components/AccountUserRoleReference.md create mode 100644 packages/java/docs/models/components/AccountUsers.md create mode 100644 packages/java/docs/models/components/EmailVerified.md create mode 100644 packages/java/docs/models/components/VisibilityAccess.md create mode 100644 packages/java/docs/models/operations/GetAccountUserRequest.md create mode 100644 packages/java/docs/models/operations/GetAccountUserResponse.md create mode 100644 packages/java/docs/models/operations/ListAccountUsersRequest.md create mode 100644 packages/java/docs/models/operations/ListAccountUsersResponse.md create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUser.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserAddress.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserAuditDetails.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserContactDetails.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserCustomField.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserCustomFieldType.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUserRoleReference.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/AccountUsers.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/EmailVerified.java create mode 100644 packages/java/src/main/java/com/cvent/models/components/VisibilityAccess.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequest.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequestBuilder.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/GetAccountUserResponse.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequest.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequestBuilder.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersResponse.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserRequestBuilder.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserResponse.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersRequestBuilder.java create mode 100644 packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersResponse.java create mode 100644 packages/java/src/main/java/com/cvent/operations/GetAccountUser.java create mode 100644 packages/java/src/main/java/com/cvent/operations/ListAccountUsers.java create mode 100644 packages/typescript/docs/models/components/accountuser.md create mode 100644 packages/typescript/docs/models/components/accountuseraddress.md create mode 100644 packages/typescript/docs/models/components/accountuserauditdetails.md create mode 100644 packages/typescript/docs/models/components/accountusercontactdetails.md create mode 100644 packages/typescript/docs/models/components/accountusercustomfield.md create mode 100644 packages/typescript/docs/models/components/accountusercustomfieldtype.md create mode 100644 packages/typescript/docs/models/components/accountuserrolereference.md create mode 100644 packages/typescript/docs/models/components/accountusers.md create mode 100644 packages/typescript/docs/models/components/emailverified.md create mode 100644 packages/typescript/docs/models/components/visibilityaccess.md create mode 100644 packages/typescript/docs/models/operations/getaccountuserrequest.md create mode 100644 packages/typescript/docs/models/operations/listaccountusersrequest.md create mode 100644 packages/typescript/docs/models/operations/listaccountusersresponse.md create mode 100644 packages/typescript/src/funcs/usersGetAccountUser.ts create mode 100644 packages/typescript/src/funcs/usersListAccountUsers.ts create mode 100644 packages/typescript/src/models/components/accountuser.ts create mode 100644 packages/typescript/src/models/components/accountuseraddress.ts create mode 100644 packages/typescript/src/models/components/accountuserauditdetails.ts create mode 100644 packages/typescript/src/models/components/accountusercontactdetails.ts create mode 100644 packages/typescript/src/models/components/accountusercustomfield.ts create mode 100644 packages/typescript/src/models/components/accountuserrolereference.ts create mode 100644 packages/typescript/src/models/components/accountusers.ts create mode 100644 packages/typescript/src/models/components/visibilityaccess.ts create mode 100644 packages/typescript/src/models/operations/getaccountuser.ts create mode 100644 packages/typescript/src/models/operations/listaccountusers.ts diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 91a105935..5b2f40d93 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.752.0 sources: Public: sourceNamespace: public - sourceRevisionDigest: sha256:ce2ec2ecf50f7b686887c12ab64f5332007f4dc0d74e68756f049c66d49aa950 - sourceBlobDigest: sha256:18a47a33b5de533581e6200f3bccaf58a5ca321d6531953ff9bc3b01aa282491 + sourceRevisionDigest: sha256:c3066b6cb34f4bf1759028b9a9fc8791a7f772ed44519cd394492562ef9091ba + sourceBlobDigest: sha256:8af95d5807621381ac3c0aa4523b063a72a9102123695f791c56a681bec17e49 tags: - latest - ea @@ -11,24 +11,18 @@ targets: public-csharp: source: Public sourceNamespace: public - sourceRevisionDigest: sha256:ce2ec2ecf50f7b686887c12ab64f5332007f4dc0d74e68756f049c66d49aa950 - sourceBlobDigest: sha256:18a47a33b5de533581e6200f3bccaf58a5ca321d6531953ff9bc3b01aa282491 - codeSamplesNamespace: csharp - codeSamplesRevisionDigest: sha256:83a812271bd5c6c4ac22abca4b05eec9817acd3cb4433dc5532909943b96e1d1 + sourceRevisionDigest: sha256:c3066b6cb34f4bf1759028b9a9fc8791a7f772ed44519cd394492562ef9091ba + sourceBlobDigest: sha256:8af95d5807621381ac3c0aa4523b063a72a9102123695f791c56a681bec17e49 public-java: source: Public sourceNamespace: public - sourceRevisionDigest: sha256:ce2ec2ecf50f7b686887c12ab64f5332007f4dc0d74e68756f049c66d49aa950 - sourceBlobDigest: sha256:18a47a33b5de533581e6200f3bccaf58a5ca321d6531953ff9bc3b01aa282491 - codeSamplesNamespace: java - codeSamplesRevisionDigest: sha256:a0f167e53271b6a7735434be71770a5b8fdf0b12453c966485d64b2929ee7681 + sourceRevisionDigest: sha256:c3066b6cb34f4bf1759028b9a9fc8791a7f772ed44519cd394492562ef9091ba + sourceBlobDigest: sha256:8af95d5807621381ac3c0aa4523b063a72a9102123695f791c56a681bec17e49 public-typescript: source: Public sourceNamespace: public - sourceRevisionDigest: sha256:ce2ec2ecf50f7b686887c12ab64f5332007f4dc0d74e68756f049c66d49aa950 - sourceBlobDigest: sha256:18a47a33b5de533581e6200f3bccaf58a5ca321d6531953ff9bc3b01aa282491 - codeSamplesNamespace: typescript - codeSamplesRevisionDigest: sha256:600fb15df4272e34e7a89199ce9585f2d8b653d932f771628c53bd62a31b2db7 + sourceRevisionDigest: sha256:c3066b6cb34f4bf1759028b9a9fc8791a7f772ed44519cd394492562ef9091ba + sourceBlobDigest: sha256:8af95d5807621381ac3c0aa4523b063a72a9102123695f791c56a681bec17e49 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.752.0 diff --git a/cvent-public-spec/openapi.yaml b/cvent-public-spec/openapi.yaml index a2722d098..7717594d8 100644 --- a/cvent-public-spec/openapi.yaml +++ b/cvent-public-spec/openapi.yaml @@ -18843,6 +18843,94 @@ paths: externalDocs: description: More about OAuth2 authorization code support for administrators url: '#oauth2-auth-code-planner-admin' + /users: + get: + summary: List Account Users + description: Gets a list of all users associated with your account. + operationId: listAccountUsers + tags: + - Users + security: + - OAuth2.authorizationCode: + - account/users:read + - OAuth2.clientCredentials: + - account/users:read + parameters: + - name: filter + in: query + required: false + style: form + explode: true + description: | + A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses. + + Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter. + + ## Supported Account Users Filters: + + | Field Path | Operators | + |--------------------|---------------------------------------------| + | role.id | `in`, `eq`, `ne` | + | id | `in`, `eq`, `ne` | + | active | `eq`, `ne` | + | lockedOut | `eq`, `ne` | + | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + schema: + type: string + example: active eq 'true' + examples: + role: + summary: Filter by a user's role + value: role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d') + active: + summary: Filter by active users + value: active eq 'true' + created: + summary: Filter by users created on or after a date + value: audit.created ge '2026-01-01T00:00:00.000Z' + combined: + summary: Combine multiple conditions + value: active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true') + - $ref: '#/components/parameters/limit' + - $ref: '#/components/parameters/token1' + - $ref: '#/components/parameters/accountUsersSort' + responses: + '200': + $ref: '#/components/responses/PaginatedAccountUsers' + '400': + $ref: '#/components/responses/BadRequest1' + '401': + $ref: '#/components/responses/Unauthorized1' + '403': + $ref: '#/components/responses/Forbidden1' + '429': + $ref: '#/components/responses/TooManyRequests1' + /users/{userId}: + get: + summary: Get Account User + description: Gets a single account user. + operationId: getAccountUser + tags: + - Users + security: + - OAuth2.authorizationCode: + - account/users:read + - OAuth2.clientCredentials: + - account/users:read + parameters: + - $ref: '#/components/parameters/userId' + responses: + '200': + $ref: '#/components/responses/AccountUser' + '401': + $ref: '#/components/responses/Unauthorized1' + '403': + $ref: '#/components/responses/Forbidden1' + '404': + $ref: '#/components/responses/NotFound1' + '429': + $ref: '#/components/responses/TooManyRequests1' /venues/{venueId}/attractions: get: operationId: listVenueAttractions @@ -21002,6 +21090,22 @@ components: required: true schema: type: string + accountUsersSort: + name: sort + in: query + required: false + description: | + Sorts items in the list of results. + + There are two orders: + - ascending: ASC + - descending: DESC + + The following fields are sortable: + - username + schema: + type: string + example: username DESC adminId: in: path name: adminId @@ -23486,6 +23590,12 @@ components: schema: $ref: '#/components/schemas/AccountUserGroup' responses: + AccountUser: + description: Successfully retrieved the specified account user. + content: + application/json: + schema: + $ref: '#/components/schemas/AccountUser' BadRequest1: description: Bad request content: @@ -23640,6 +23750,12 @@ components: application/json: schema: $ref: '#/components/schemas/ErrorResponse-12' + PaginatedAccountUsers: + description: Successfully retrieved a paginated list of account users. + content: + application/json: + schema: + $ref: '#/components/schemas/AccountUsers' PublicUsagePlanResponse: description: The Usage Tier assigned to the account content: @@ -23818,6 +23934,301 @@ components: type: boolean description: True indicates the event budget item is deleted. example: false + AccountUser: + title: Account User + description: Represents a Cvent core account user. + required: + - role + type: object + allOf: + - $ref: '#/components/schemas/AccountUserBase' + properties: + role: + $ref: '#/components/schemas/AccountUserRoleReference' + AccountUserAddress: + title: Account User Address + description: Represents the address of a Cvent core account user. + type: object + properties: + address1: + type: string + description: First address line. + example: 1765 Greensboro Station Pl + address2: + type: string + description: Second address line. + example: 7th Floor + address3: + type: string + description: Third address line. + example: '' + city: + type: string + description: Address city. + example: McLean + countryCode: + $ref: '#/components/schemas/CountryCode' + regionCode: + $ref: '#/components/schemas/RegionCode' + postalCode: + type: string + description: Address postal code. + example: '22102' + AccountUserAuditDetails: + title: Account User Audit Details + description: The audit details of a Cvent core account user. + required: + - lockedOutDate + - termsOfUseAcceptedDate + - lastLoginDate + - passwordLastModifiedDate + - created + - createdBy + - lastModified + - lastModifiedBy + type: object + allOf: + - $ref: '#/components/schemas/Audit' + readOnly: true + properties: + lockedOutDate: + type: string + format: date-time + description: The ISO 8601 zoned date time when the user was locked out. + readOnly: true + example: '2017-01-02T02:00:00Z' + termsOfUseAcceptedDate: + type: string + format: date-time + description: The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). + readOnly: true + example: '2017-01-02T02:00:00Z' + lastLoginDate: + type: string + format: date-time + description: The ISO 8601 zoned date time when the user last logged in. + readOnly: true + example: '2017-01-02T02:00:00Z' + passwordLastModifiedDate: + type: string + format: date-time + description: The ISO 8601 zoned date time when the user's password was last modified. + readOnly: true + example: '2017-01-02T02:00:00Z' + AccountUserBase: + title: Account User Base + description: Represents the base definition of an account user in Cvent core. + required: + - id + - username + - contact + - active + - termsOfUseAccepted + - lockedOut + - visibilityAccess + - usernameVerified + - emailVerified + - failedLoginCount + - locale + - timezone + - audit + type: object + properties: + id: + type: string + description: The identifier of the Account User. + example: 501fbc6a-cfd4-468f-a2f7-14e521d33c71 + readOnly: true + format: uuid + platformUserId: + description: The account user's platform identifier. + readOnly: true + type: string + allOf: + - $ref: '#/components/schemas/PlatformUserId' + username: + type: string + description: The account user's username used to log into the account. + example: jsmith@example.com + federatedSsoLoginName: + type: string + description: The account user's federated SSO login name. + example: jsmith@example.com + contact: + $ref: '#/components/schemas/AccountUserContactDetails' + locale: + $ref: '#/components/schemas/Locale' + timezone: + type: string + description: The IANA timezone of the user. + example: America/New_York + active: + type: boolean + example: false + description: True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. + readOnly: true + usernameVerified: + type: boolean + example: true + description: True indicates the account user's username has been verified. + readOnly: true + emailVerified: + type: string + description: "The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in." + enum: + - UNVERIFIED + - VERIFIED + - UNVERIFIED_BLOCK_LOGIN + example: VERIFIED + readOnly: true + lockedOut: + type: boolean + example: false + description: True indicates the account user is locked. + readOnly: true + termsOfUseAccepted: + type: boolean + example: true + description: True indicates the account user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). + readOnly: true + failedLoginCount: + type: integer + description: The number of failed login attempts. + readOnly: true + example: 1 + markDocumentsAsInternal: + type: boolean + default: false + description: True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. + visibilityAccess: + type: array + items: + $ref: '#/components/schemas/VisibilityAccess' + uniqueItems: true + description: |- + The visibility access of the user. + + `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + + `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + + `EVENT` - The user has the ability to view all Events within their account. + + `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + + `RFI` - The user has the ability to view all RFIs within their account. + + `RFP` - The user has the ability to view all RFPs within their account. + + `SURVEY` - The user has the ability to view all Surveys within their account. + maxItems: 8 + audit: + $ref: '#/components/schemas/AccountUserAuditDetails' + customFields: + type: array + items: + $ref: '#/components/schemas/AccountUserCustomField' + description: The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). + readOnly: true + maxItems: 200 + example: + - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + name: What is your favorite color? + type: Choice - Multiple Answers + values: + - Choice C + - Choice A + order: 1 + AccountUserContactDetails: + title: Account User Contact Details + description: The contact details of a Cvent core account user. + type: object + required: + - firstName + - lastName + - email + properties: + honorificPrefix: + $ref: '#/components/schemas/HonorificPrefix' + firstName: + $ref: '#/components/schemas/FirstName' + middleName: + $ref: '#/components/schemas/MiddleName' + lastName: + $ref: '#/components/schemas/LastName' + title: + $ref: '#/components/schemas/Title' + organization: + $ref: '#/components/schemas/Organization-1' + email: + $ref: '#/components/schemas/Email' + homePhone: + $ref: '#/components/schemas/PhoneNumber' + homeFax: + $ref: '#/components/schemas/PhoneNumber' + mobilePhone: + $ref: '#/components/schemas/PhoneNumber' + workPhone: + $ref: '#/components/schemas/PhoneNumber' + workFax: + $ref: '#/components/schemas/PhoneNumber' + pager: + $ref: '#/components/schemas/PhoneNumber' + address: + $ref: '#/components/schemas/AccountUserAddress' + AccountUserCustomField: + title: Account User Custom Field + description: Represents an account user's answer to a custom field. + type: object + required: + - id + - values + properties: + id: + type: string + description: The unique ID representing this custom field. + example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + format: uuid + name: + type: string + description: The actual text of the custom field. + example: What is your favorite color? + readOnly: true + type: + type: string + description: The type of data collected by this custom field. + readOnly: true + allOf: + - $ref: '#/components/schemas/AccountUserCustomFieldType' + values: + type: array + items: + type: string + description: A custom field answer value. + maxLength: 16000 + uniqueItems: true + description: The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. + example: + - Choice C + - Choice A + maxItems: 100 + order: + type: integer + description: The order of this custom field relative to other custom fields. + example: 1 + readOnly: true + AccountUserCustomFieldType: + title: Account User Custom Field Type + description: The type of data collected by an account user custom field. + type: string + enum: + - Open Ended Text - Date/Time + - Open Ended Text - One Line + - Open Ended Text - Comment Box + - Choice - Single Answer + - Choice - Multiple Answers + - Auto-Increment + example: Choice - Single Answer AccountUserGroup: title: Account User Group description: A collection of account users which is used to help manage access and visibility to various other Cvent domain entities like events, surveys, account emails, and more. For example, a user group can be associated to specific events to allow the users within that group to view the events within Cvent's platform. @@ -23849,6 +24260,38 @@ components: description: The description of the user group. example: MyUserGroupDescription maxLength: 300 + AccountUserRoleId: + title: Account User Role Id + description: Represents the unique ID of an account user role. + type: string + format: uuid + example: 946505f6-6b29-421a-bda2-0815fcdea73c + AccountUserRoleReference: + title: Account User Role Reference + description: A model used to reference a Cvent core account user role by its ID. + required: + - id + type: object + properties: + id: + $ref: '#/components/schemas/AccountUserRoleId' + AccountUsers: + title: Account Users + description: A paginated result for a list of account users. + required: + - paging + - data + type: object + properties: + paging: + $ref: '#/components/schemas/Paging' + data: + type: array + items: + $ref: '#/components/schemas/AccountUser' + description: The list of Account Users retrieved for the specified page. + readOnly: true + maxItems: 200 ActivityAd: type: object title: ActivityAd @@ -32399,6 +32842,11 @@ components: - ZA - ZM - ZW + CountryCode: + title: Country Code + type: string + example: US + description: The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. create-appointment-request: title: Create Appointment Request description: A request to create an appointment @@ -34405,6 +34853,11 @@ components: minItems: 1 maxItems: 25 description: Collection of E-literature documents sent to lead. + Email: + title: Email + description: User associated email. + type: string + example: jack.tripper@example.com email-history-paginated-response: title: Email History Paginated Response description: The response from a request to get the list of email history. This includes the paging object as well as the collection of email history. @@ -38862,6 +39315,11 @@ components: type: string example: property eq 'value' description: Filter included in the request. + FirstName: + title: First Name + description: User's first name. + type: string + example: Jack FlightDetail: title: FlightDetail description: Representation of a flight's details. @@ -39201,6 +39659,11 @@ components: type: array items: $ref: '#/components/schemas/VideoClip' + HonorificPrefix: + title: Honorific Prefix + description: Honorific prefix to use before users name. + type: string + example: Mr. hook: title: Hook description: A hook with a callback URI. @@ -40496,6 +40959,11 @@ components: description: The ISO 8601 zoned date time when this record was updated. readOnly: true example: '2019-02-12T03:00:00Z' + LastName: + title: Last Name + description: User's last name. + type: string + example: Tripper launch-feature-type.json: title: LaunchFeatureType description: These are the types of features used in the event container events that can be launched. @@ -42193,6 +42661,11 @@ components: readOnly: true description: The ISO 8601 zoned date time when this record was modified. example: '2021-12-16T00:59:14.570Z' + MiddleName: + title: Middle Name + description: User's middle name. + type: string + example: John Mutability: title: Mutability description: This is used to denote the mutability of the attribute. @@ -42843,6 +43316,11 @@ components: format: uuid description: Unique identifier for the organization. example: 50dc08af-24a9-4d01-84be-3d43133dc945 + Organization-1: + title: Organization + description: Organization in which the user is employed. + type: string + example: Cvent OrganizationType-1: title: OrganizationType description: Organization type. @@ -43698,6 +44176,11 @@ components: type: string description: Denotes the method of payment. example: Visa + PhoneNumber: + title: Phone Number + description: Phone number associated to given user. + type: string + example: '+17035551234' PhoneNumber1: title: Phone Number description: Phone Number @@ -44088,6 +44571,11 @@ components: format: date-time description: The ISO 8601 formatted date and time at which the reference document will expire if an explicit expiration is defined. example: '2025-12-31T23:59:59Z' + PlatformUserId: + title: Platform User Id + description: Custom identifier used for tracking Okta association. + type: string + example: 00ad83olslLwIeKcW1m8 player: title: Player description: A Webcast player details. @@ -46029,6 +46517,11 @@ components: type: string description: Region where the live stream originates. Although, the value is consumed for IVS livestreams the requested origin is actually ignored due to IVS' global data plane. example: Oregon + RegionCode: + title: Region Code + type: string + example: VA + description: The region, province, or state code. Visit [Cvent's Region Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. registration-pack-request: title: RegistrationPack type: object @@ -52171,6 +52664,11 @@ components: type: string description: "DEFINED: Appointments of this type can be created at time intervals and locations created by the planner. FLEXIBLE: Appointments of this type can be created any time on the schedule in a custom location of the host's choosing or within time intervals and locations created by the planner." example: DEFINED + Title: + title: Title + description: Position held by the current user. + type: string + example: Senior Software Engineer TokenizedCreditCard: description: Credit card info. title: Tokenized Credit Card @@ -56244,6 +56742,33 @@ components: description: The reporting field value. example: '12' readOnly: true + VisibilityAccess: + title: Visibility Access + description: |- + Enumerated type to outline what the user has access to. + + `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + + `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + + `EVENT` - The user has the ability to view all Events within their account. + + `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + + `RFI` - The user has the ability to view all RFIs within their account. + + `RFP` - The user has the ability to view all RFPs within their account. + + `SURVEY` - The user has the ability to view all Surveys within their account. + type: string + enum: + - DOCUMENT + - EMARKETING_CAMPAIGN + - EVENT + - MEETING_REQUEST + - RFI + - RFP + - SURVEY VolumeDiscount: title: Volume Discount description: Representation of a volume based discount. @@ -56656,7 +57181,7 @@ components: account/user-groups:read: Allows the reading of user groups account/user-groups:write: Allows the writing of user groups account/users:delete: Allows the deletion of User - account/users:read: Allows the reading of User, User Group + account/users:read: Allows the reading of account users account/users:write: Allows the creation/updating of User appointments/appointment-attendees:read: Allows the reading of appointment attendees and their related entities. appointments/appointment-events:read: Allows the reading of appointment events and their related entities. @@ -56886,7 +57411,7 @@ components: account/user-groups:read: Allows the reading of user groups account/user-groups:write: Allows the writing of user groups account/users:delete: Allows the deletion of User - account/users:read: Allows the reading of User, User Group + account/users:read: Allows the reading of account users account/users:write: Allows the creation/updating of User appointments/appointment-attendees:read: Allows the reading of appointment attendees and their related entities. appointments/appointment-events:read: Allows the reading of appointment events and their related entities. diff --git a/packages/csharp/.speakeasy/gen.lock b/packages/csharp/.speakeasy/gen.lock index 39a54f29f..daac96633 100644 --- a/packages/csharp/.speakeasy/gen.lock +++ b/packages/csharp/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 3f6b1580-b75b-44d2-a95a-1b74729f1d26 management: - docChecksum: 8e90e333b47f5f578a3170e752d227a7 + docChecksum: 1fd9ebcd59841afef8d06776d975d698 docVersion: ea speakeasyVersion: 1.752.0 generationVersion: 2.859.2 - releaseVersion: 1.6.4 - configChecksum: dfa4bffdee48062a86d34af319e73f0c + releaseVersion: 1.6.5 + configChecksum: ccac38de202a8bfd2884f256f1cf8bee published: true persistentEdits: generation_id: c50843e4-e393-4964-8f45-57aa92ab8994 @@ -46,7 +46,7 @@ trackedFiles: pristine_git_object: ec6bbb4bbe2f8ad9230b01a2da715a63475f5e3d NUGET.md: id: f4c8a442a6e5 - last_write_checksum: sha1:c2f9e20ea13c7ebd9f3939654e82ec35c2bcbdf2 + last_write_checksum: sha1:8394dd45665433d0526e382fd14cbd8af551389a pristine_git_object: 7a318ebe39215ade31d133b8f5920eb190ea74e3 USAGE.md: id: 3aed33ce6e6f @@ -74,10 +74,26 @@ trackedFiles: id: d5768916a6fb last_write_checksum: sha1:f8f2baac7bd75d3f34e2cfb9bb8ff17e0f295e17 pristine_git_object: c796cd3d5b953035f82fdc2452b99d988704f8d4 + docs/Models/Components/AccountUser.md: + last_write_checksum: sha1:bb02d7a1245792f0d39e4a4729a83d7758c1e649 + docs/Models/Components/AccountUserAddress.md: + last_write_checksum: sha1:2b0d82b87bf5b069170d42cbc035afd0d779078a + docs/Models/Components/AccountUserAuditDetails.md: + last_write_checksum: sha1:aeec4f9f7e9cf7b3f53c0a86f48d7140de0f30a8 + docs/Models/Components/AccountUserContactDetails.md: + last_write_checksum: sha1:4955c4fe9f3f7f8e313081eca31dd621cee0c1e9 + docs/Models/Components/AccountUserCustomField.md: + last_write_checksum: sha1:718d86e8aad2eeb78e8734aee325d1b91e4b99de + docs/Models/Components/AccountUserCustomFieldType.md: + last_write_checksum: sha1:ad51955575b2e9e016d515af1626ac112c0d8b9d docs/Models/Components/AccountUserGroup.md: last_write_checksum: sha1:77e1c45a8c4d350bf7492cf482418d20a91c1963 docs/Models/Components/AccountUserGroupInput.md: last_write_checksum: sha1:1e0f001fb42664789651a292edf9a9e4d8d21bb7 + docs/Models/Components/AccountUserRoleReference.md: + last_write_checksum: sha1:435f8ed0bb62cbbc28e5f574f5b2f319b051ca53 + docs/Models/Components/AccountUsers.md: + last_write_checksum: sha1:b5550b635374a07d70a75937f08980b64bcc6eb2 docs/Models/Components/Action.md: last_write_checksum: sha1:987caa3d5a68a6f27955aa3b172585dc9a810983 docs/Models/Components/ActivityAd.md: @@ -1618,6 +1634,8 @@ trackedFiles: id: f262524bb67d last_write_checksum: sha1:78a80dfdb0f38f44cb16625b7b8c65da999220ad pristine_git_object: 230536eb0a4fab7644525b98873b39896ee86193 + docs/Models/Components/EmailVerified.md: + last_write_checksum: sha1:1edda539551e1753c6da1c81b9b9b3e94fa31732 docs/Models/Components/EncodingProfile.md: last_write_checksum: sha1:662aa4b698d4ea76daef2b0b28d56c15ba857260 docs/Models/Components/EntityType1.md: @@ -4664,6 +4682,8 @@ trackedFiles: last_write_checksum: sha1:d19f4fe778f0c7d950b872ca28d4fa841ea09341 docs/Models/Components/VirtualCardReportingFieldAndValue.md: last_write_checksum: sha1:3ab60c7d832d2aac675890924e78c2a7ac35ab5d + docs/Models/Components/VisibilityAccess.md: + last_write_checksum: sha1:d65eee8c6b9a5a5fa13963ab09acf21c0e7a262e docs/Models/Components/VolumeDiscountThresholdType.md: last_write_checksum: sha1:0a5130d845898dc84d004b9dfdec99cb024ad87d docs/Models/Components/Voucher.md: @@ -5614,6 +5634,10 @@ trackedFiles: id: 51ccfe9985a4 last_write_checksum: sha1:1168e8b6ab790c91a14dfcb2e0caf74bdf7968b7 pristine_git_object: 675141c3d20ac944ec1adba27e31737bf3b7b0ea + docs/Models/Requests/GetAccountUserRequest.md: + last_write_checksum: sha1:be2eea6c7614373afc53977776b2a9b2ee9d5912 + docs/Models/Requests/GetAccountUserResponse.md: + last_write_checksum: sha1:704311dddeb1ee78490c976dc48761c0891468a7 docs/Models/Requests/GetAccountVendorsRequest.md: last_write_checksum: sha1:87771bbd88051e1bb94807f958577ba57172cea3 docs/Models/Requests/GetAccountVendorsResponse.md: @@ -6822,6 +6846,10 @@ trackedFiles: id: 02c5a44b53d5 last_write_checksum: sha1:10f4d3bf2fdf65ec374bc28b74c5aeea805eb1c0 pristine_git_object: bf9bfb3be159c67dddc859f4331011630a6c8faa + docs/Models/Requests/ListAccountUsersRequest.md: + last_write_checksum: sha1:5e26b5b28c474974f346933ff9dc182277816ff6 + docs/Models/Requests/ListAccountUsersResponse.md: + last_write_checksum: sha1:f481d069cec36ad6f16ff3c3e21dbdd2b4456751 docs/Models/Requests/ListAdmissionItemsPostFiltersRequest.md: id: 7bbcd4ddeee1 last_write_checksum: sha1:30503e80088b70e56130a956bd65c4bfe3be2987 @@ -8476,7 +8504,7 @@ trackedFiles: pristine_git_object: 22de2e20b2824fdf3c333e848e587d6e2ba5b189 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:acaac9d0eb1ad67a2dcfd6bf2f711bc750390d57 + last_write_checksum: sha1:70e40c4e6f8d9f15dd0b7b016d42e22f08489a09 pristine_git_object: ae4345de8bbb2321bc1f484c5b5b9f21568a81f3 docs/sdks/userscim/README.md: id: 50529a579425 @@ -8568,7 +8596,7 @@ trackedFiles: pristine_git_object: 977cd7381c7598682830d6e4a64a85cb14130b98 src/Cvent/SDK/Cvent.SDK.csproj: id: 7a55759bc2f0 - last_write_checksum: sha1:97cc9c6f969afa9a78d6b52e7e4a795c2e998a59 + last_write_checksum: sha1:568bdf6cb37c2df087aceadb55c8a1b97356650e pristine_git_object: 711013944bc0505858b0b7cf177f166071b47593 src/Cvent/SDK/CventSDK.cs: id: f7e1ad22cd8f @@ -8632,7 +8660,7 @@ trackedFiles: pristine_git_object: 1937b5a9d23d666c998441dff6dfeb35f548e5a6 src/Cvent/SDK/Hooks/OAuth2Scopes.cs: id: ea272e98d50c - last_write_checksum: sha1:5b16030e03011546a803c3923562900f30a75126 + last_write_checksum: sha1:91a2532c1fdea22d27e67a24d34bc571df83dc8f pristine_git_object: 55a8b501e50769ad517eb3b3fb5ed1cafcd038cc src/Cvent/SDK/Hooks/SDKHooks.cs: id: 0038e747490d @@ -8680,10 +8708,26 @@ trackedFiles: id: a63268c177fa last_write_checksum: sha1:e238239f527b4b96d45d978d0c299f5aa595676d pristine_git_object: 464af42f0c8134f898ff68861303d589dfbc7556 + src/Cvent/SDK/Models/Components/AccountUser.cs: + last_write_checksum: sha1:ff373d2e8c9e294b3b56928167a85d56a526ed54 + src/Cvent/SDK/Models/Components/AccountUserAddress.cs: + last_write_checksum: sha1:5cb86f57d929c10fbd450d4e02da02183be4f368 + src/Cvent/SDK/Models/Components/AccountUserAuditDetails.cs: + last_write_checksum: sha1:54aeae6f64da0f810b7027c555d471bd9bd9d49c + src/Cvent/SDK/Models/Components/AccountUserContactDetails.cs: + last_write_checksum: sha1:5edfcecad1f5713442c9ed3f59fecbfb0dcbe6cb + src/Cvent/SDK/Models/Components/AccountUserCustomField.cs: + last_write_checksum: sha1:822c7c86d676e805fd9f4bbeee7c383b903618bf + src/Cvent/SDK/Models/Components/AccountUserCustomFieldType.cs: + last_write_checksum: sha1:a730e4ba1ca1e30862e4279d321be768205b9c1d src/Cvent/SDK/Models/Components/AccountUserGroup.cs: last_write_checksum: sha1:cf77d76119aa19746b25de6b279f06edcd698efc src/Cvent/SDK/Models/Components/AccountUserGroupInput.cs: last_write_checksum: sha1:7081253f8fede0483677e5c3b9d1de367d6fce5d + src/Cvent/SDK/Models/Components/AccountUserRoleReference.cs: + last_write_checksum: sha1:89646cf1bf41d6aa289235701ffc1001762cd828 + src/Cvent/SDK/Models/Components/AccountUsers.cs: + last_write_checksum: sha1:b5aa60483435ddc5476a0e053e08172aa85e74d1 src/Cvent/SDK/Models/Components/Action.cs: last_write_checksum: sha1:44d416d06cedf8d675d1c93a9562c2fd9f29f137 src/Cvent/SDK/Models/Components/ActivityAd.cs: @@ -10224,6 +10268,8 @@ trackedFiles: id: d4f44f9abdf8 last_write_checksum: sha1:79516bee373d3713db0bd9da6dd09981fe7f0397 pristine_git_object: febe34b952b92aa4997dc14ab249957e5779be77 + src/Cvent/SDK/Models/Components/EmailVerified.cs: + last_write_checksum: sha1:0cf04f0af013751f4fdb36e41690d8f64ebec9d4 src/Cvent/SDK/Models/Components/EncodingProfile.cs: last_write_checksum: sha1:529f1fae761ef71aaaa860b03bfb82fa0898ebac src/Cvent/SDK/Models/Components/EntityType1.cs: @@ -13270,6 +13316,8 @@ trackedFiles: last_write_checksum: sha1:1c42ff3b21cc0644ef7fc40e4cabea7d601abb72 src/Cvent/SDK/Models/Components/VirtualCardReportingFieldAndValue.cs: last_write_checksum: sha1:a6c91cfd4f09031fd4d98f61187063a66df182af + src/Cvent/SDK/Models/Components/VisibilityAccess.cs: + last_write_checksum: sha1:8de69364d422b681ee1e381be29b89ee9f4394b7 src/Cvent/SDK/Models/Components/VolumeDiscountThresholdType.cs: last_write_checksum: sha1:e2174174d0e05463ccd853313bd0ca2c92201fad src/Cvent/SDK/Models/Components/Voucher.cs: @@ -14232,6 +14280,10 @@ trackedFiles: id: cf414f374518 last_write_checksum: sha1:22b2972be9145d741498fcc2dc747ff917687de9 pristine_git_object: c328e98272441b53a2a13f003cf88ead1abbb64a + src/Cvent/SDK/Models/Requests/GetAccountUserRequest.cs: + last_write_checksum: sha1:7c1bb4c08b3c59fe53971850648452013a5643c2 + src/Cvent/SDK/Models/Requests/GetAccountUserResponse.cs: + last_write_checksum: sha1:b223779ae7e0e480d4983e05a55b83cc1ff4a52a src/Cvent/SDK/Models/Requests/GetAccountVendorsRequest.cs: last_write_checksum: sha1:7f77b35dc5589031c21f6f9d5aa15132fd0ee953 src/Cvent/SDK/Models/Requests/GetAccountVendorsResponse.cs: @@ -15440,6 +15492,10 @@ trackedFiles: id: a5d8e61ea5a2 last_write_checksum: sha1:ffc346029a4bfe7a150cce4af4514fd4424c1f6b pristine_git_object: 3ea3265bca16036b7f9bf5a42a51115aaf9de4cc + src/Cvent/SDK/Models/Requests/ListAccountUsersRequest.cs: + last_write_checksum: sha1:520a4e9df513894e7ebaafef900dc258299cb047 + src/Cvent/SDK/Models/Requests/ListAccountUsersResponse.cs: + last_write_checksum: sha1:bbf494c5e1c4c388a522192e2de787b56e917f01 src/Cvent/SDK/Models/Requests/ListAdmissionItemsPostFiltersRequest.cs: id: 0f91c67a12c4 last_write_checksum: sha1:9277cc5d2ee16ae77822090912e23bcf27a60d17 @@ -16924,7 +16980,7 @@ trackedFiles: last_write_checksum: sha1:729557ecc2fc3c7455b0449a5706b0d91c274dad src/Cvent/SDK/SDKConfig.cs: id: 7ad7086454a8 - last_write_checksum: sha1:9212685c2ea8fb662a76c79245295be30c8304df + last_write_checksum: sha1:16594dd306ba66ea39982e677edac07bf02e4d2c pristine_git_object: 796c23cd551fbe87f613d89d60ed25ac5fe0c54b src/Cvent/SDK/Seating.cs: id: 01c249fc2746 @@ -16970,7 +17026,7 @@ trackedFiles: pristine_git_object: 65ecc73aaa7b7e5c08403afc919813034ca19d90 src/Cvent/SDK/Users.cs: id: 9ede83a21d40 - last_write_checksum: sha1:9cd2c3cca2de596ee15a364d2ac26e249da34aee + last_write_checksum: sha1:7fa02dc9f01673fd1169ed33c543a6ac71716c9d pristine_git_object: e42fc3d5237f4fe4db02a3e0469cfe5e248712d2 src/Cvent/SDK/Utils/AnyDeserializer.cs: id: 1d517da993f5 @@ -16982,7 +17038,7 @@ trackedFiles: pristine_git_object: a75f770b33edd25c0fa4d4a77ab523da12d269ba src/Cvent/SDK/Utils/Constants.cs: id: 231d94d8a5dc - last_write_checksum: sha1:5155cb65b4455c69b30f148b263de3c74b36e534 + last_write_checksum: sha1:0a15bf594f24de50a2e23efb14e9c60f339a63c4 pristine_git_object: 0a54932893793a10e459afbc15920803cff3ed1e src/Cvent/SDK/Utils/CventSDKHttpClient.cs: id: 374fee4fdbaf @@ -23151,6 +23207,77 @@ examples: responses: "401": application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + listAccountUsers: + role: + parameters: + query: + filter: "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + active: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + created: + parameters: + query: + filter: "audit.created ge '2026-01-01T00:00:00.000Z'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + combined: + parameters: + query: + filter: "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + speakeasy-default-list-account-users: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + getAccountUser: + speakeasy-default-get-account-user: + parameters: + path: + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c" + responses: + "200": + application/json: {"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": [], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}} + "401": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} examplesVersion: 1.0.2 generatedTests: getAccountUserGroups: "2026-02-27T14:14:25-04:00" @@ -23586,3 +23713,9 @@ generatedTests: updateVenueAttraction: "2026-10-13T09:34:02-03:00" associateAttractionImage: "2026-10-13T09:34:02-03:00" getAttractionImages: "2026-10-13T09:34:02-03:00" + listAccountUsers-role: "2026-10-15T14:35:09-04:00" + listAccountUsers-active: "2026-10-15T14:35:09-04:00" + listAccountUsers-created: "2026-10-15T14:35:09-04:00" + listAccountUsers-combined: "2026-10-15T14:35:09-04:00" + listAccountUsers: "2026-10-15T14:35:09-04:00" + getAccountUser: "2026-10-15T14:35:09-04:00" diff --git a/packages/csharp/.speakeasy/gen.yaml b/packages/csharp/.speakeasy/gen.yaml index d6b8cbe01..ace859c21 100644 --- a/packages/csharp/.speakeasy/gen.yaml +++ b/packages/csharp/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false csharp: - version: 1.6.4 + version: 1.6.5 additionalDependencies: [] author: Cvent baseErrorName: CventSDKException diff --git a/packages/csharp/.speakeasy/tests.arazzo.yaml b/packages/csharp/.speakeasy/tests.arazzo.yaml index 162aab6f1..cd02decde 100644 --- a/packages/csharp/.speakeasy/tests.arazzo.yaml +++ b/packages/csharp/.speakeasy/tests.arazzo.yaml @@ -12058,3 +12058,150 @@ workflows: type: simple x-speakeasy-test-group: Venue Content x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-role + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-active + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-created + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: audit.created ge '2026-01-01T00:00:00.000Z' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-combined + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: getAccountUser + steps: + - stepId: test + operationId: getAccountUser + parameters: + - name: userId + in: path + value: ff8af134-3505-4d67-aaea-1975d8e1327c + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":[],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true diff --git a/packages/csharp/NUGET.md b/packages/csharp/NUGET.md index 89eda3a9f..0d349c5d5 100644 --- a/packages/csharp/NUGET.md +++ b/packages/csharp/NUGET.md @@ -326,10 +326,10 @@ catch (System.Net.Http.HttpRequestException ex) * [`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`. * Inheriting from [`CventSDKException`](./src/Cvent/SDK/Models/Errors/CventSDKException.cs): - * [`ErrorResponse`](./src/Cvent/SDK/Models/Errors/ErrorResponse.cs): Represents an error response with additional details of cascading error messages. Applicable to 18 of 497 methods.* - * [`ErrorResponse17`](./src/Cvent/SDK/Models/Errors/ErrorResponse17.cs): The error response. Applicable to 11 of 497 methods.* - * [`SegmentsErrorResponse`](./src/Cvent/SDK/Models/Errors/SegmentsErrorResponse.cs): Segments error response details. Status code `400`. Applicable to 2 of 497 methods.* - * [`Oauth2TokenPostResponse0Exception`](./src/Cvent/SDK/Models/Errors/Oauth2TokenPostResponse0Exception.cs): A bad token response. Status code `400`. Applicable to 1 of 497 methods.* + * [`ErrorResponse`](./src/Cvent/SDK/Models/Errors/ErrorResponse.cs): Represents an error response with additional details of cascading error messages. Applicable to 18 of 499 methods.* + * [`ErrorResponse17`](./src/Cvent/SDK/Models/Errors/ErrorResponse17.cs): The error response. Applicable to 11 of 499 methods.* + * [`SegmentsErrorResponse`](./src/Cvent/SDK/Models/Errors/SegmentsErrorResponse.cs): Segments error response details. Status code `400`. Applicable to 2 of 499 methods.* + * [`Oauth2TokenPostResponse0Exception`](./src/Cvent/SDK/Models/Errors/Oauth2TokenPostResponse0Exception.cs): A bad token response. Status code `400`. Applicable to 1 of 499 methods.* * [`ResponseValidationError`](./src/Cvent/SDK/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type. \* Refer to the [relevant documentation](#available-resources-and-operations) to determine whether an exception applies to a specific operation. diff --git a/packages/csharp/README.md b/packages/csharp/README.md index 5401f8564..c46e36cb5 100644 --- a/packages/csharp/README.md +++ b/packages/csharp/README.md @@ -763,6 +763,8 @@ var res = await sdk.Authentication.Oauth2TokenAsync( * [DeleteAccountUserGroup](docs/sdks/users/README.md#deleteaccountusergroup) - Delete Account User Group * [AddUserToAccountUserGroup](docs/sdks/users/README.md#addusertoaccountusergroup) - Associate User to Group * [DeleteUserFromAccountUserGroup](docs/sdks/users/README.md#deleteuserfromaccountusergroup) - Delete User from Group +* [ListAccountUsers](docs/sdks/users/README.md#listaccountusers) - List Account Users +* [GetAccountUser](docs/sdks/users/README.md#getaccountuser) - Get Account User ### [VenueAvailability](docs/sdks/venueavailability/README.md) @@ -1056,10 +1058,10 @@ catch (System.Net.Http.HttpRequestException ex) * [`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`. * Inheriting from [`CventSDKException`](./src/Cvent/SDK/Models/Errors/CventSDKException.cs): - * [`ErrorResponse`](./src/Cvent/SDK/Models/Errors/ErrorResponse.cs): Represents an error response with additional details of cascading error messages. Applicable to 18 of 497 methods.* - * [`ErrorResponse17`](./src/Cvent/SDK/Models/Errors/ErrorResponse17.cs): The error response. Applicable to 11 of 497 methods.* - * [`SegmentsErrorResponse`](./src/Cvent/SDK/Models/Errors/SegmentsErrorResponse.cs): Segments error response details. Status code `400`. Applicable to 2 of 497 methods.* - * [`Oauth2TokenPostResponse0Exception`](./src/Cvent/SDK/Models/Errors/Oauth2TokenPostResponse0Exception.cs): A bad token response. Status code `400`. Applicable to 1 of 497 methods.* + * [`ErrorResponse`](./src/Cvent/SDK/Models/Errors/ErrorResponse.cs): Represents an error response with additional details of cascading error messages. Applicable to 18 of 499 methods.* + * [`ErrorResponse17`](./src/Cvent/SDK/Models/Errors/ErrorResponse17.cs): The error response. Applicable to 11 of 499 methods.* + * [`SegmentsErrorResponse`](./src/Cvent/SDK/Models/Errors/SegmentsErrorResponse.cs): Segments error response details. Status code `400`. Applicable to 2 of 499 methods.* + * [`Oauth2TokenPostResponse0Exception`](./src/Cvent/SDK/Models/Errors/Oauth2TokenPostResponse0Exception.cs): A bad token response. Status code `400`. Applicable to 1 of 499 methods.* * [`ResponseValidationError`](./src/Cvent/SDK/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type. diff --git a/packages/csharp/docs/Models/Components/AccountUser.md b/packages/csharp/docs/Models/Components/AccountUser.md new file mode 100644 index 000000000..95b4c8ebf --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUser.md @@ -0,0 +1,27 @@ +# AccountUser + +Represents a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Id` | *string* | :heavy_check_mark: | The identifier of the Account User. | 501fbc6a-cfd4-468f-a2f7-14e521d33c71 | +| `PlatformUserId` | *string* | :heavy_minus_sign: | The account user's platform identifier. | 00ad83olslLwIeKcW1m8 | +| `Username` | *string* | :heavy_check_mark: | The account user's username used to log into the account. | jsmith@example.com | +| `FederatedSsoLoginName` | *string* | :heavy_minus_sign: | The account user's federated SSO login name. | jsmith@example.com | +| `Contact` | [AccountUserContactDetails](../../Models/Components/AccountUserContactDetails.md) | :heavy_check_mark: | The contact details of a Cvent core account user. | | +| `Locale` | *string* | :heavy_check_mark: | Locale code | en-US | +| `Timezone` | *string* | :heavy_check_mark: | The IANA timezone of the user. | America/New_York | +| `Active` | *bool* | :heavy_check_mark: | True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. | false | +| `UsernameVerified` | *bool* | :heavy_check_mark: | True indicates the account user's username has been verified. | true | +| `EmailVerified` | [EmailVerified](../../Models/Components/EmailVerified.md) | :heavy_check_mark: | The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. | VERIFIED | +| `LockedOut` | *bool* | :heavy_check_mark: | True indicates the account user is locked. | false | +| `TermsOfUseAccepted` | *bool* | :heavy_check_mark: | True indicates the account user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | true | +| `FailedLoginCount` | *long* | :heavy_check_mark: | The number of failed login attempts. | 1 | +| `MarkDocumentsAsInternal` | *bool* | :heavy_minus_sign: | True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. | | +| `VisibilityAccess` | List<[VisibilityAccess](../../Models/Components/VisibilityAccess.md)> | :heavy_check_mark: | The visibility access of the user.

`DOCUMENT` - The user has the ability to view all documents uploaded within their account.

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account.

`EVENT` - The user has the ability to view all Events within their account.

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account.

`RFI` - The user has the ability to view all RFIs within their account.

`RFP` - The user has the ability to view all RFPs within their account.

`SURVEY` - The user has the ability to view all Surveys within their account. | | +| `Audit` | [AccountUserAuditDetails](../../Models/Components/AccountUserAuditDetails.md) | :heavy_check_mark: | The audit details of a Cvent core account user. | | +| `CustomFields` | List<[AccountUserCustomField](../../Models/Components/AccountUserCustomField.md)> | :heavy_minus_sign: | The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). | [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "What is your favorite color?",
"type": "Choice - Multiple Answers",
"values": [
"Choice C",
"Choice A"
],
"order": 1
}
] | +| `Role` | [AccountUserRoleReference](../../Models/Components/AccountUserRoleReference.md) | :heavy_check_mark: | A model used to reference a Cvent core account user role by its ID. | | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserAddress.md b/packages/csharp/docs/Models/Components/AccountUserAddress.md new file mode 100644 index 000000000..628dfb2d0 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserAddress.md @@ -0,0 +1,16 @@ +# AccountUserAddress + +Represents the address of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Address1` | *string* | :heavy_minus_sign: | First address line. | 1765 Greensboro Station Pl | +| `Address2` | *string* | :heavy_minus_sign: | Second address line. | 7th Floor | +| `Address3` | *string* | :heavy_minus_sign: | Third address line. | | +| `City` | *string* | :heavy_minus_sign: | Address city. | McLean | +| `CountryCode` | *string* | :heavy_minus_sign: | The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. | US | +| `RegionCode` | *string* | :heavy_minus_sign: | The region, province, or state code. Visit [Cvent's Region Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. | VA | +| `PostalCode` | *string* | :heavy_minus_sign: | Address postal code. | 22102 | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserAuditDetails.md b/packages/csharp/docs/Models/Components/AccountUserAuditDetails.md new file mode 100644 index 000000000..2416f0792 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserAuditDetails.md @@ -0,0 +1,17 @@ +# AccountUserAuditDetails + +The audit details of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `Created` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was created. | 2017-01-02T02:00:00Z | +| `CreatedBy` | *string* | :heavy_check_mark: | The identifier of the user that created this record. | hporter | +| `LastModified` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was updated. | 2019-02-12T03:00:00Z | +| `LastModifiedBy` | *string* | :heavy_check_mark: | The identifier of the user that last updated this record. | hporter | +| `LockedOutDate` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when the user was locked out. | 2017-01-02T02:00:00Z | +| `TermsOfUseAcceptedDate` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | 2017-01-02T02:00:00Z | +| `LastLoginDate` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when the user last logged in. | 2017-01-02T02:00:00Z | +| `PasswordLastModifiedDate` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | The ISO 8601 zoned date time when the user's password was last modified. | 2017-01-02T02:00:00Z | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserContactDetails.md b/packages/csharp/docs/Models/Components/AccountUserContactDetails.md new file mode 100644 index 000000000..ae5ce6265 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserContactDetails.md @@ -0,0 +1,23 @@ +# AccountUserContactDetails + +The contact details of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `HonorificPrefix` | *string* | :heavy_minus_sign: | Honorific prefix to use before users name. | Mr. | +| `FirstName` | *string* | :heavy_check_mark: | User's first name. | Jack | +| `MiddleName` | *string* | :heavy_minus_sign: | User's middle name. | John | +| `LastName` | *string* | :heavy_check_mark: | User's last name. | Tripper | +| `Title` | *string* | :heavy_minus_sign: | Position held by the current user. | Senior Software Engineer | +| `Organization` | *string* | :heavy_minus_sign: | Organization in which the user is employed. | Cvent | +| `Email` | *string* | :heavy_check_mark: | User associated email. | jack.tripper@example.com | +| `HomePhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `HomeFax` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `MobilePhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `WorkPhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `WorkFax` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `Pager` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `Address` | [AccountUserAddress](../../Models/Components/AccountUserAddress.md) | :heavy_minus_sign: | Represents the address of a Cvent core account user. | | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserCustomField.md b/packages/csharp/docs/Models/Components/AccountUserCustomField.md new file mode 100644 index 000000000..743f26459 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserCustomField.md @@ -0,0 +1,14 @@ +# AccountUserCustomField + +Represents an account user's answer to a custom field. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Id` | *string* | :heavy_check_mark: | The unique ID representing this custom field. | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | +| `Name` | *string* | :heavy_minus_sign: | The actual text of the custom field. | What is your favorite color? | +| `Type` | [AccountUserCustomFieldType](../../Models/Components/AccountUserCustomFieldType.md) | :heavy_minus_sign: | The type of data collected by this custom field. | Choice - Single Answer | +| `Values` | List<*string*> | :heavy_check_mark: | The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. | [
"Choice C",
"Choice A"
] | +| `Order` | *long* | :heavy_minus_sign: | The order of this custom field relative to other custom fields. | 1 | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserCustomFieldType.md b/packages/csharp/docs/Models/Components/AccountUserCustomFieldType.md new file mode 100644 index 000000000..dd0a54879 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserCustomFieldType.md @@ -0,0 +1,23 @@ +# AccountUserCustomFieldType + +The type of data collected by this custom field. + +## Example Usage + +```csharp +using Cvent.SDK.Models.Components; + +var value = AccountUserCustomFieldType.OpenEndedTextDateTime; +``` + + +## Values + +| Name | Value | +| ----------------------------- | ----------------------------- | +| `OpenEndedTextDateTime` | Open Ended Text - Date/Time | +| `OpenEndedTextOneLine` | Open Ended Text - One Line | +| `OpenEndedTextCommentBox` | Open Ended Text - Comment Box | +| `ChoiceSingleAnswer` | Choice - Single Answer | +| `ChoiceMultipleAnswers` | Choice - Multiple Answers | +| `AutoIncrement` | Auto-Increment | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUserRoleReference.md b/packages/csharp/docs/Models/Components/AccountUserRoleReference.md new file mode 100644 index 000000000..8eb24c623 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUserRoleReference.md @@ -0,0 +1,10 @@ +# AccountUserRoleReference + +A model used to reference a Cvent core account user role by its ID. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `Id` | *string* | :heavy_check_mark: | Represents the unique ID of an account user role. | 946505f6-6b29-421a-bda2-0815fcdea73c | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/AccountUsers.md b/packages/csharp/docs/Models/Components/AccountUsers.md new file mode 100644 index 000000000..02dc2d770 --- /dev/null +++ b/packages/csharp/docs/Models/Components/AccountUsers.md @@ -0,0 +1,11 @@ +# AccountUsers + +A paginated result for a list of account users. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `Paging` | [Paging](../../Models/Components/Paging.md) | :heavy_check_mark: | Represents pagination information for a collection of resources. | +| `Data` | List<[AccountUser](../../Models/Components/AccountUser.md)> | :heavy_check_mark: | The list of Account Users retrieved for the specified page. | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/EmailVerified.md b/packages/csharp/docs/Models/Components/EmailVerified.md new file mode 100644 index 000000000..b8fba7801 --- /dev/null +++ b/packages/csharp/docs/Models/Components/EmailVerified.md @@ -0,0 +1,20 @@ +# EmailVerified + +The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + +## Example Usage + +```csharp +using Cvent.SDK.Models.Components; + +var value = EmailVerified.Unverified; +``` + + +## Values + +| Name | Value | +| ---------------------- | ---------------------- | +| `Unverified` | UNVERIFIED | +| `Verified` | VERIFIED | +| `UnverifiedBlockLogin` | UNVERIFIED_BLOCK_LOGIN | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Components/VisibilityAccess.md b/packages/csharp/docs/Models/Components/VisibilityAccess.md new file mode 100644 index 000000000..6e4765c1c --- /dev/null +++ b/packages/csharp/docs/Models/Components/VisibilityAccess.md @@ -0,0 +1,38 @@ +# VisibilityAccess + +Enumerated type to outline what the user has access to. + + `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + + `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + + `EVENT` - The user has the ability to view all Events within their account. + + `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + + `RFI` - The user has the ability to view all RFIs within their account. + + `RFP` - The user has the ability to view all RFPs within their account. + + `SURVEY` - The user has the ability to view all Surveys within their account. + +## Example Usage + +```csharp +using Cvent.SDK.Models.Components; + +var value = VisibilityAccess.Document; +``` + + +## Values + +| Name | Value | +| -------------------- | -------------------- | +| `Document` | DOCUMENT | +| `EmarketingCampaign` | EMARKETING_CAMPAIGN | +| `Event` | EVENT | +| `MeetingRequest` | MEETING_REQUEST | +| `Rfi` | RFI | +| `Rfp` | RFP | +| `Survey` | SURVEY | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Requests/GetAccountUserRequest.md b/packages/csharp/docs/Models/Requests/GetAccountUserRequest.md new file mode 100644 index 000000000..577c589b9 --- /dev/null +++ b/packages/csharp/docs/Models/Requests/GetAccountUserRequest.md @@ -0,0 +1,8 @@ +# GetAccountUserRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `UserId` | *string* | :heavy_check_mark: | The Account User's Id.
| ff8af134-3505-4d67-aaea-1975d8e1327c | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Requests/GetAccountUserResponse.md b/packages/csharp/docs/Models/Requests/GetAccountUserResponse.md new file mode 100644 index 000000000..b69515f34 --- /dev/null +++ b/packages/csharp/docs/Models/Requests/GetAccountUserResponse.md @@ -0,0 +1,9 @@ +# GetAccountUserResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `HttpMeta` | [HTTPMetadata](../../Models/Components/HTTPMetadata.md) | :heavy_check_mark: | N/A | +| `AccountUser` | [AccountUser](../../Models/Components/AccountUser.md) | :heavy_minus_sign: | Successfully retrieved the specified account user. | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Requests/ListAccountUsersRequest.md b/packages/csharp/docs/Models/Requests/ListAccountUsersRequest.md new file mode 100644 index 000000000..3be7fc232 --- /dev/null +++ b/packages/csharp/docs/Models/Requests/ListAccountUsersRequest.md @@ -0,0 +1,11 @@ +# ListAccountUsersRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Filter` | *string* | :heavy_minus_sign: | A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses.

Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter.

## Supported Account Users Filters:

\| Field Path \| Operators \|
\|--------------------\|---------------------------------------------\|
\| role.id \| `in`, `eq`, `ne` \|
\| id \| `in`, `eq`, `ne` \|
\| active \| `eq`, `ne` \|
\| lockedOut \| `eq`, `ne` \|
\| audit.created \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
\| audit.lastModified \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
| active eq 'true' | +| `Limit` | *long* | :heavy_minus_sign: | The maximum number of records to return per page. | 100 | +| `Token` | *string* | :heavy_minus_sign: | The pagination token returned from a previous call.
This will override any other pageable parameters provided.
| 1a2b3c4d5e6f7g8h9i10j11k | +| `Sort` | *string* | :heavy_minus_sign: | Sorts items in the list of results.

There are two orders:
- ascending: ASC
- descending: DESC

The following fields are sortable:
- username
| username DESC | \ No newline at end of file diff --git a/packages/csharp/docs/Models/Requests/ListAccountUsersResponse.md b/packages/csharp/docs/Models/Requests/ListAccountUsersResponse.md new file mode 100644 index 000000000..74f948c1e --- /dev/null +++ b/packages/csharp/docs/Models/Requests/ListAccountUsersResponse.md @@ -0,0 +1,9 @@ +# ListAccountUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `HttpMeta` | [HTTPMetadata](../../Models/Components/HTTPMetadata.md) | :heavy_check_mark: | N/A | +| `AccountUsers` | [AccountUsers](../../Models/Components/AccountUsers.md) | :heavy_minus_sign: | Successfully retrieved a paginated list of account users. | \ No newline at end of file diff --git a/packages/csharp/docs/sdks/users/README.md b/packages/csharp/docs/sdks/users/README.md index 667c1634c..3ab787c44 100644 --- a/packages/csharp/docs/sdks/users/README.md +++ b/packages/csharp/docs/sdks/users/README.md @@ -13,6 +13,8 @@ Operations for managing account users and user groups, including creation, retri * [DeleteAccountUserGroup](#deleteaccountusergroup) - Delete Account User Group * [AddUserToAccountUserGroup](#addusertoaccountusergroup) - Associate User to Group * [DeleteUserFromAccountUserGroup](#deleteuserfromaccountusergroup) - Delete User from Group +* [ListAccountUsers](#listaccountusers) - List Account Users +* [GetAccountUser](#getaccountuser) - Get Account User ## GetAccountUserGroups @@ -354,4 +356,201 @@ var res = await sdk.Users.DeleteUserFromAccountUserGroupAsync(req); | Error Type | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | | Cvent.SDK.Models.Errors.ErrorResponse12 | 400, 401, 403, 404, 429 | application/json | +| Cvent.SDK.Models.Errors.APIException | 4XX, 5XX | \*/\* | + +## ListAccountUsers + +Gets a list of all users associated with your account. + +### Example Usage: active + + +```csharp +using Cvent.SDK; +using Cvent.SDK.Models.Components; +using Cvent.SDK.Models.Requests; + +var sdk = new CventSDK(security: new Security() { + OAuth2ClientCredentials = new SchemeOAuth2ClientCredentials() { + ClientID = "", + ClientSecret = "", + TokenURL = "", + Scopes = "", + }, +}); + +ListAccountUsersRequest req = new ListAccountUsersRequest() { + Filter = "active eq 'true'", + Token = "1a2b3c4d5e6f7g8h9i10j11k", + Sort = "username DESC", +}; + +ListAccountUsersResponse? res = await sdk.Users.ListAccountUsersAsync(req); + +while(res != null) +{ + // handle items + + res = await res.Next!(); +} +``` +### Example Usage: combined + + +```csharp +using Cvent.SDK; +using Cvent.SDK.Models.Components; +using Cvent.SDK.Models.Requests; + +var sdk = new CventSDK(security: new Security() { + OAuth2ClientCredentials = new SchemeOAuth2ClientCredentials() { + ClientID = "", + ClientSecret = "", + TokenURL = "", + Scopes = "", + }, +}); + +ListAccountUsersRequest req = new ListAccountUsersRequest() { + Filter = "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')", + Token = "1a2b3c4d5e6f7g8h9i10j11k", + Sort = "username DESC", +}; + +ListAccountUsersResponse? res = await sdk.Users.ListAccountUsersAsync(req); + +while(res != null) +{ + // handle items + + res = await res.Next!(); +} +``` +### Example Usage: created + + +```csharp +using Cvent.SDK; +using Cvent.SDK.Models.Components; +using Cvent.SDK.Models.Requests; + +var sdk = new CventSDK(security: new Security() { + OAuth2ClientCredentials = new SchemeOAuth2ClientCredentials() { + ClientID = "", + ClientSecret = "", + TokenURL = "", + Scopes = "", + }, +}); + +ListAccountUsersRequest req = new ListAccountUsersRequest() { + Filter = "audit.created ge '2026-01-01T00:00:00.000Z'", + Token = "1a2b3c4d5e6f7g8h9i10j11k", + Sort = "username DESC", +}; + +ListAccountUsersResponse? res = await sdk.Users.ListAccountUsersAsync(req); + +while(res != null) +{ + // handle items + + res = await res.Next!(); +} +``` +### Example Usage: role + + +```csharp +using Cvent.SDK; +using Cvent.SDK.Models.Components; +using Cvent.SDK.Models.Requests; + +var sdk = new CventSDK(security: new Security() { + OAuth2ClientCredentials = new SchemeOAuth2ClientCredentials() { + ClientID = "", + ClientSecret = "", + TokenURL = "", + Scopes = "", + }, +}); + +ListAccountUsersRequest req = new ListAccountUsersRequest() { + Filter = "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')", + Token = "1a2b3c4d5e6f7g8h9i10j11k", + Sort = "username DESC", +}; + +ListAccountUsersResponse? res = await sdk.Users.ListAccountUsersAsync(req); + +while(res != null) +{ + // handle items + + res = await res.Next!(); +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [ListAccountUsersRequest](../../Models/Requests/ListAccountUsersRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[ListAccountUsersResponse](../../Models/Requests/ListAccountUsersResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| Cvent.SDK.Models.Errors.ErrorResponse12 | 400, 401, 403, 429 | application/json | +| Cvent.SDK.Models.Errors.APIException | 4XX, 5XX | \*/\* | + +## GetAccountUser + +Gets a single account user. + +### Example Usage + + +```csharp +using Cvent.SDK; +using Cvent.SDK.Models.Components; +using Cvent.SDK.Models.Requests; + +var sdk = new CventSDK(security: new Security() { + OAuth2ClientCredentials = new SchemeOAuth2ClientCredentials() { + ClientID = "", + ClientSecret = "", + TokenURL = "", + Scopes = "", + }, +}); + +GetAccountUserRequest req = new GetAccountUserRequest() { + UserId = "ff8af134-3505-4d67-aaea-1975d8e1327c", +}; + +var res = await sdk.Users.GetAccountUserAsync(req); + +// handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [GetAccountUserRequest](../../Models/Requests/GetAccountUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetAccountUserResponse](../../Models/Requests/GetAccountUserResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| Cvent.SDK.Models.Errors.ErrorResponse12 | 401, 403, 404, 429 | application/json | | Cvent.SDK.Models.Errors.APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Cvent.SDK.csproj b/packages/csharp/src/Cvent/SDK/Cvent.SDK.csproj index 8ef3d3a91..635c693c1 100644 --- a/packages/csharp/src/Cvent/SDK/Cvent.SDK.csproj +++ b/packages/csharp/src/Cvent/SDK/Cvent.SDK.csproj @@ -3,7 +3,7 @@ true Cvent.SDK - 1.6.4 + 1.6.5 net8.0 Cvent Copyright (c) Cvent 2026 diff --git a/packages/csharp/src/Cvent/SDK/Hooks/OAuth2Scopes.cs b/packages/csharp/src/Cvent/SDK/Hooks/OAuth2Scopes.cs index 7d61bfa89..36fd83589 100644 --- a/packages/csharp/src/Cvent/SDK/Hooks/OAuth2Scopes.cs +++ b/packages/csharp/src/Cvent/SDK/Hooks/OAuth2Scopes.cs @@ -56,7 +56,7 @@ public enum OAuth2AuthorizationCodeOAuth2Scope [JsonProperty("account/users:delete")] AccountUsersDelete, /// - /// Allows the reading of User, User Group. + /// Allows the reading of account users. /// [JsonProperty("account/users:read")] AccountUsersRead, @@ -1213,7 +1213,7 @@ public enum OAuth2ClientCredentialsOAuth2Scope [JsonProperty("account/users:delete")] AccountUsersDelete, /// - /// Allows the reading of User, User Group. + /// Allows the reading of account users. /// [JsonProperty("account/users:read")] AccountUsersRead, diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUser.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUser.cs new file mode 100644 index 000000000..ef0c7f518 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUser.cs @@ -0,0 +1,144 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// Represents a Cvent core account user. + /// + public class AccountUser + { + /// + /// The identifier of the Account User. + /// + [JsonProperty("id")] + public string Id { get; set; } = default!; + + /// + /// The account user's platform identifier. + /// + [JsonProperty("platformUserId")] + public string? PlatformUserId { get; set; } + + /// + /// The account user's username used to log into the account. + /// + [JsonProperty("username")] + public string Username { get; set; } = default!; + + /// + /// The account user's federated SSO login name. + /// + [JsonProperty("federatedSsoLoginName")] + public string? FederatedSsoLoginName { get; set; } + + /// + /// The contact details of a Cvent core account user. + /// + [JsonProperty("contact")] + public AccountUserContactDetails Contact { get; set; } = default!; + + /// + /// Locale code. + /// + [JsonProperty("locale")] + public string Locale { get; set; } = default!; + + /// + /// The IANA timezone of the user. + /// + [JsonProperty("timezone")] + public string Timezone { get; set; } = default!; + + /// + /// True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. + /// + [JsonProperty("active")] + public bool Active { get; set; } = default!; + + /// + /// True indicates the account user's username has been verified. + /// + [JsonProperty("usernameVerified")] + public bool UsernameVerified { get; set; } = default!; + + /// + /// The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + /// + [JsonProperty("emailVerified")] + public EmailVerified EmailVerified { get; set; } = default!; + + /// + /// True indicates the account user is locked. + /// + [JsonProperty("lockedOut")] + public bool LockedOut { get; set; } = default!; + + /// + /// True indicates the account user has accepted Cvent's Terms of Use. + /// + [JsonProperty("termsOfUseAccepted")] + public bool TermsOfUseAccepted { get; set; } = default!; + + /// + /// The number of failed login attempts. + /// + [JsonProperty("failedLoginCount")] + public long FailedLoginCount { get; set; } = default!; + + /// + /// True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. + /// + [JsonProperty("markDocumentsAsInternal")] + public bool? MarkDocumentsAsInternal { get; set; } = false; + + /// + /// The visibility access of the user.
+ ///
+ /// `DOCUMENT` - The user has the ability to view all documents uploaded within their account.
+ ///
+ /// `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account.
+ ///
+ /// `EVENT` - The user has the ability to view all Events within their account.
+ ///
+ /// `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account.
+ ///
+ /// `RFI` - The user has the ability to view all RFIs within their account.
+ ///
+ /// `RFP` - The user has the ability to view all RFPs within their account.
+ ///
+ /// `SURVEY` - The user has the ability to view all Surveys within their account. + ///
+ [JsonProperty("visibilityAccess")] + public List VisibilityAccess { get; set; } = default!; + + /// + /// The audit details of a Cvent core account user. + /// + [JsonProperty("audit")] + public AccountUserAuditDetails Audit { get; set; } = default!; + + /// + /// The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). + /// + [JsonProperty("customFields")] + public List? CustomFields { get; set; } + + /// + /// A model used to reference a Cvent core account user role by its ID. + /// + [JsonProperty("role")] + public AccountUserRoleReference Role { get; set; } = default!; + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAddress.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAddress.cs new file mode 100644 index 000000000..2bc16dab1 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAddress.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + + /// + /// Represents the address of a Cvent core account user. + /// + public class AccountUserAddress + { + /// + /// First address line. + /// + [JsonProperty("address1")] + public string? Address1 { get; set; } + + /// + /// Second address line. + /// + [JsonProperty("address2")] + public string? Address2 { get; set; } + + /// + /// Third address line. + /// + [JsonProperty("address3")] + public string? Address3 { get; set; } + + /// + /// Address city. + /// + [JsonProperty("city")] + public string? City { get; set; } + + /// + /// The ISO 3166-1 alpha-2 code which represents the Country. Visit Cvent's Country Code API Standards to learn more. + /// + [JsonProperty("countryCode")] + public string? CountryCode { get; set; } + + /// + /// The region, province, or state code. Visit Cvent's Region Code API Standards to learn more. + /// + [JsonProperty("regionCode")] + public string? RegionCode { get; set; } + + /// + /// Address postal code. + /// + [JsonProperty("postalCode")] + public string? PostalCode { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAuditDetails.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAuditDetails.cs new file mode 100644 index 000000000..504880033 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserAuditDetails.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System; + + /// + /// The audit details of a Cvent core account user. + /// + public class AccountUserAuditDetails + { + /// + /// The ISO 8601 zoned date time when this record was created. + /// + [JsonProperty("created")] + public DateTime Created { get; set; } = default!; + + /// + /// The identifier of the user that created this record. + /// + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// The ISO 8601 zoned date time when this record was updated. + /// + [JsonProperty("lastModified")] + public DateTime LastModified { get; set; } = default!; + + /// + /// The identifier of the user that last updated this record. + /// + [JsonProperty("lastModifiedBy")] + public string LastModifiedBy { get; set; } = default!; + + /// + /// The ISO 8601 zoned date time when the user was locked out. + /// + [JsonProperty("lockedOutDate")] + public DateTime LockedOutDate { get; set; } = default!; + + /// + /// The ISO 8601 zoned date time when the user has accepted Cvent's Terms of Use. + /// + [JsonProperty("termsOfUseAcceptedDate")] + public DateTime TermsOfUseAcceptedDate { get; set; } = default!; + + /// + /// The ISO 8601 zoned date time when the user last logged in. + /// + [JsonProperty("lastLoginDate")] + public DateTime LastLoginDate { get; set; } = default!; + + /// + /// The ISO 8601 zoned date time when the user's password was last modified. + /// + [JsonProperty("passwordLastModifiedDate")] + public DateTime PasswordLastModifiedDate { get; set; } = default!; + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserContactDetails.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserContactDetails.cs new file mode 100644 index 000000000..97f3e9c3d --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserContactDetails.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + + /// + /// The contact details of a Cvent core account user. + /// + public class AccountUserContactDetails + { + /// + /// Honorific prefix to use before users name. + /// + [JsonProperty("honorificPrefix")] + public string? HonorificPrefix { get; set; } + + /// + /// User's first name. + /// + [JsonProperty("firstName")] + public string FirstName { get; set; } = default!; + + /// + /// User's middle name. + /// + [JsonProperty("middleName")] + public string? MiddleName { get; set; } + + /// + /// User's last name. + /// + [JsonProperty("lastName")] + public string LastName { get; set; } = default!; + + /// + /// Position held by the current user. + /// + [JsonProperty("title")] + public string? Title { get; set; } + + /// + /// Organization in which the user is employed. + /// + [JsonProperty("organization")] + public string? Organization { get; set; } + + /// + /// User associated email. + /// + [JsonProperty("email")] + public string Email { get; set; } = default!; + + /// + /// Phone number associated to given user. + /// + [JsonProperty("homePhone")] + public string? HomePhone { get; set; } + + /// + /// Phone number associated to given user. + /// + [JsonProperty("homeFax")] + public string? HomeFax { get; set; } + + /// + /// Phone number associated to given user. + /// + [JsonProperty("mobilePhone")] + public string? MobilePhone { get; set; } + + /// + /// Phone number associated to given user. + /// + [JsonProperty("workPhone")] + public string? WorkPhone { get; set; } + + /// + /// Phone number associated to given user. + /// + [JsonProperty("workFax")] + public string? WorkFax { get; set; } + + /// + /// Phone number associated to given user. + /// + [JsonProperty("pager")] + public string? Pager { get; set; } + + /// + /// Represents the address of a Cvent core account user. + /// + [JsonProperty("address")] + public AccountUserAddress? Address { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomField.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomField.cs new file mode 100644 index 000000000..9fd378c1d --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomField.cs @@ -0,0 +1,52 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// Represents an account user's answer to a custom field. + /// + public class AccountUserCustomField + { + /// + /// The unique ID representing this custom field. + /// + [JsonProperty("id")] + public string Id { get; set; } = default!; + + /// + /// The actual text of the custom field. + /// + [JsonProperty("name")] + public string? Name { get; set; } + + /// + /// The type of data collected by this custom field. + /// + [JsonProperty("type")] + public AccountUserCustomFieldType? Type { get; set; } + + /// + /// The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. + /// + [JsonProperty("values")] + public List Values { get; set; } = default!; + + /// + /// The order of this custom field relative to other custom fields. + /// + [JsonProperty("order")] + public long? Order { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomFieldType.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomFieldType.cs new file mode 100644 index 000000000..2c26b6ebe --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserCustomFieldType.cs @@ -0,0 +1,61 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System; + + /// + /// The type of data collected by this custom field. + /// + public enum AccountUserCustomFieldType + { + [JsonProperty("Open Ended Text - Date/Time")] OpenEndedTextDateTime, + [JsonProperty("Open Ended Text - One Line")] OpenEndedTextOneLine, + [JsonProperty("Open Ended Text - Comment Box")] OpenEndedTextCommentBox, + [JsonProperty("Choice - Single Answer")] ChoiceSingleAnswer, + [JsonProperty("Choice - Multiple Answers")] ChoiceMultipleAnswers, + [JsonProperty("Auto-Increment")] AutoIncrement, + } + + public static class AccountUserCustomFieldTypeExtension + { + public static string Value(this AccountUserCustomFieldType value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString()) [0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static AccountUserCustomFieldType ToEnum(this string value) + { + foreach (var field in typeof(AccountUserCustomFieldType).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is AccountUserCustomFieldType) + { + return (AccountUserCustomFieldType)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum AccountUserCustomFieldType"); + } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserRoleReference.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserRoleReference.cs new file mode 100644 index 000000000..ce4881957 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUserRoleReference.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + + /// + /// A model used to reference a Cvent core account user role by its ID. + /// + public class AccountUserRoleReference + { + /// + /// Represents the unique ID of an account user role. + /// + [JsonProperty("id")] + public string Id { get; set; } = default!; + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/AccountUsers.cs b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUsers.cs new file mode 100644 index 000000000..2669c33d4 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/AccountUsers.cs @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + + /// + /// A paginated result for a list of account users. + /// + public class AccountUsers + { + /// + /// Represents pagination information for a collection of resources. + /// + [JsonProperty("paging")] + public Paging Paging { get; set; } = default!; + + /// + /// The list of Account Users retrieved for the specified page. + /// + [JsonProperty("data")] + public List Data { get; set; } = default!; + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/EmailVerified.cs b/packages/csharp/src/Cvent/SDK/Models/Components/EmailVerified.cs new file mode 100644 index 000000000..b57221642 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/EmailVerified.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System; + + /// + /// The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + /// + public enum EmailVerified + { + [JsonProperty("UNVERIFIED")] Unverified, + [JsonProperty("VERIFIED")] Verified, + [JsonProperty("UNVERIFIED_BLOCK_LOGIN")] UnverifiedBlockLogin, + } + + public static class EmailVerifiedExtension + { + public static string Value(this EmailVerified value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString()) [0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static EmailVerified ToEnum(this string value) + { + foreach (var field in typeof(EmailVerified).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is EmailVerified) + { + return (EmailVerified)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum EmailVerified"); + } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Components/VisibilityAccess.cs b/packages/csharp/src/Cvent/SDK/Models/Components/VisibilityAccess.cs new file mode 100644 index 000000000..9efb71d6f --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Components/VisibilityAccess.cs @@ -0,0 +1,76 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Components +{ + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System; + + /// + /// Enumerated type to outline what the user has access to.
+ ///
+ /// `DOCUMENT` - The user has the ability to view all documents uploaded within their account.
+ ///
+ /// `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account.
+ ///
+ /// `EVENT` - The user has the ability to view all Events within their account.
+ ///
+ /// `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account.
+ ///
+ /// `RFI` - The user has the ability to view all RFIs within their account.
+ ///
+ /// `RFP` - The user has the ability to view all RFPs within their account.
+ ///
+ /// `SURVEY` - The user has the ability to view all Surveys within their account. + ///
+ public enum VisibilityAccess + { + [JsonProperty("DOCUMENT")] Document, + [JsonProperty("EMARKETING_CAMPAIGN")] EmarketingCampaign, + [JsonProperty("EVENT")] Event, + [JsonProperty("MEETING_REQUEST")] MeetingRequest, + [JsonProperty("RFI")] Rfi, + [JsonProperty("RFP")] Rfp, + [JsonProperty("SURVEY")] Survey, + } + + public static class VisibilityAccessExtension + { + public static string Value(this VisibilityAccess value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString()) [0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static VisibilityAccess ToEnum(this string value) + { + foreach (var field in typeof(VisibilityAccess).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is VisibilityAccess) + { + return (VisibilityAccess)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum VisibilityAccess"); + } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserRequest.cs b/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserRequest.cs new file mode 100644 index 000000000..f1f3af094 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserRequest.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Requests +{ + using Cvent.SDK.Utils; + + public class GetAccountUserRequest + { + /// + /// The Account User's Id. + /// + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=userId")] + public string UserId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserResponse.cs b/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserResponse.cs new file mode 100644 index 000000000..0c227ace4 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Requests/GetAccountUserResponse.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Requests +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + + public class GetAccountUserResponse + { + [JsonProperty("-")] + public HTTPMetadata HttpMeta { get; set; } = default!; + + /// + /// Successfully retrieved the specified account user. + /// + public AccountUser? AccountUser { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersRequest.cs b/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersRequest.cs new file mode 100644 index 000000000..66a2e929f --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersRequest.cs @@ -0,0 +1,61 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Requests +{ + using Cvent.SDK.Utils; + + public class ListAccountUsersRequest + { + /// + /// A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses.
+ ///
+ /// Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter.
+ ///
+ /// ## Supported Account Users Filters:
+ ///
+ /// | Field Path | Operators |
+ /// |--------------------|---------------------------------------------|
+ /// | role.id | `in`, `eq`, `ne` |
+ /// | id | `in`, `eq`, `ne` |
+ /// | active | `eq`, `ne` |
+ /// | lockedOut | `eq`, `ne` |
+ /// | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` |
+ /// | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + ///
+ [SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter")] + public string? Filter { get; set; } + + /// + /// The maximum number of records to return per page. + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit")] + public long? Limit { get; set; } = 100; + + /// + /// The pagination token returned from a previous call.
+ /// This will override any other pageable parameters provided. + ///
+ [SpeakeasyMetadata("queryParam:style=form,explode=true,name=token")] + public string? Token { get; set; } + + /// + /// Sorts items in the list of results.
+ ///
+ /// There are two orders:
+ /// - ascending: ASC
+ /// - descending: DESC
+ ///
+ /// The following fields are sortable:
+ /// - username. + ///
+ [SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort")] + public string? Sort { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersResponse.cs b/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersResponse.cs new file mode 100644 index 000000000..dedd8d484 --- /dev/null +++ b/packages/csharp/src/Cvent/SDK/Models/Requests/ListAccountUsersResponse.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Cvent.SDK.Models.Requests +{ + using Cvent.SDK.Models.Components; + using Cvent.SDK.Utils; + using Newtonsoft.Json; + using System; + using System.Threading.Tasks; + + public class ListAccountUsersResponse + { + public Func>? Next { get; set; } + [JsonProperty("-")] + public HTTPMetadata HttpMeta { get; set; } = default!; + + /// + /// Successfully retrieved a paginated list of account users. + /// + public AccountUsers? AccountUsers { get; set; } + } +} \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/SDKConfig.cs b/packages/csharp/src/Cvent/SDK/SDKConfig.cs index cd594676f..2122e75ec 100644 --- a/packages/csharp/src/Cvent/SDK/SDKConfig.cs +++ b/packages/csharp/src/Cvent/SDK/SDKConfig.cs @@ -46,7 +46,7 @@ public SDKConfig(ICventSDKHttpClient? client = null) Client = client ?? new CventSDKHttpClient(); ServerUrl = ""; ServerIndex = 0; - UserAgent = "speakeasy-sdk/csharp 1.6.4 2.859.2 ea Cvent.SDK"; + UserAgent = "speakeasy-sdk/csharp 1.6.5 2.859.2 ea Cvent.SDK"; SecuritySource = null; Hooks = new SDKHooks(); RetryConfig = null; diff --git a/packages/csharp/src/Cvent/SDK/Users.cs b/packages/csharp/src/Cvent/SDK/Users.cs index a37a80ecb..1c87c4fdc 100644 --- a/packages/csharp/src/Cvent/SDK/Users.cs +++ b/packages/csharp/src/Cvent/SDK/Users.cs @@ -159,6 +159,43 @@ public Task DeleteUserFromAccountUserGro DeleteUserFromAccountUserGroupRequest request, RetryConfig? retryConfig = null ); + + /// + /// List Account Users. + /// + /// + /// Gets a list of all users associated with your account. + /// + /// A parameter. + /// The retry configuration to use for this operation. + /// An awaitable task that returns a response envelope when completed. + /// The HTTP request failed due to network issues. + /// The response body could not be deserialized. + /// Bad request. Thrown when the API returns a 400, 401, 403 or 429 response. + /// Default API Exception. Thrown when the API returns a 4XX or 5XX response. + public Task ListAccountUsersAsync( + ListAccountUsersRequest? request = null, + RetryConfig? retryConfig = null + ); + + /// + /// Get Account User. + /// + /// + /// Gets a single account user. + /// + /// A parameter. + /// The retry configuration to use for this operation. + /// An awaitable task that returns a response envelope when completed. + /// The required parameter is null. + /// The HTTP request failed due to network issues. + /// The response body could not be deserialized. + /// Bad or expired token. Thrown when the API returns a 401, 403, 404 or 429 response. + /// Default API Exception. Thrown when the API returns a 4XX or 5XX response. + public Task GetAccountUserAsync( + GetAccountUserRequest request, + RetryConfig? retryConfig = null + ); } /// @@ -1319,5 +1356,364 @@ public async Task DeleteUserFromAccountU throw new Models.Errors.APIException("Unknown status code received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); } + + /// + /// List Account Users. + /// + /// + /// Gets a list of all users associated with your account. + /// + /// A parameter. + /// The retry configuration to use for this operation. + /// An awaitable task that returns a response envelope when completed. + /// The HTTP request failed due to network issues. + /// The response body could not be deserialized. + /// Bad request. Thrown when the API returns a 400, 401, 403 or 429 response. + /// Default API Exception. Thrown when the API returns a 4XX or 5XX response. + public async Task ListAccountUsersAsync( + ListAccountUsersRequest? request = null, + RetryConfig? retryConfig = null + ) + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); + var urlString = URLBuilder.Build(baseUrl, "/users", request, null); + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent); + + if (!httpRequest.Headers.Contains("Accept")) + { + httpRequest.Headers.Add("Accept", "application/json"); + } + + if (SDKConfiguration.SecuritySource != null) + { + httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest); + } + + var hookCtx = new HookContext(SDKConfiguration, baseUrl, "listAccountUsers", new List { "account/users:read" }, SDKConfiguration.SecuritySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + if (retryConfig == null) + { + if (this.SDKConfiguration.RetryConfig != null) + { + retryConfig = this.SDKConfiguration.RetryConfig; + } + else + { + var backoff = new BackoffStrategy( + initialIntervalMs: 2000L, + maxIntervalMs: 16000L, + maxElapsedTimeMs: 40000L, + exponent: 2 + ); + retryConfig = new RetryConfig( + strategy: RetryConfig.RetryStrategy.BACKOFF, + backoff: backoff, + retryConnectionErrors: true + ); + } + } + + List statusCodes = new List { + "502", + "503", + "504", + }; + + Func> retrySend = async () => + { + var _httpRequest = await SDKConfiguration.Client.CloneAsync(httpRequest); + return await SDKConfiguration.Client.SendAsync(_httpRequest); + }; + var retries = new Cvent.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await retries.Run(); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception _hookError) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + Func> nextFunc = async delegate() + { + var body = JObject.Parse(await httpResponse.Content.ReadAsStringAsync()); + var nextCursorToken = body.SelectToken("$.paging.nextToken"); + + if (nextCursorToken == null) + { + return null; + } + + var nextCursor = nextCursorToken.Value(); + if (string.IsNullOrWhiteSpace(nextCursor)) + { + return null; + } + + var newRequest = new ListAccountUsersRequest { + Filter = request?.Filter, + Limit = request?.Limit, + Token = nextCursor, + Sort = request?.Sort + }; + + return await ListAccountUsersAsync( + request: newRequest, + retryConfig: retryConfig + ); + }; + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if (responseStatusCode == 200) + { + if (Utilities.IsContentTypeMatch("application/json", contentType)) + { + var httpResponseBody = await httpResponse.Content.ReadAsStringAsync(); + AccountUsers obj; + try + { + obj = ResponseBodyDeserializer.DeserializeNotNull(httpResponseBody, NullValueHandling.Include); + } + catch (Exception ex) + { + throw new ResponseValidationException("Failed to deserialize response body into AccountUsers.", httpRequest, httpResponse, httpResponseBody, ex); + } + + var response = new ListAccountUsersResponse() { + HttpMeta = new Models.Components.HTTPMetadata() { + Response = httpResponse, + Request = httpRequest + }, + Next = nextFunc + }; + response.AccountUsers = obj; + return response; + } + + throw new Models.Errors.APIException("Unknown content type received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (new List { 400, 401, 403, 429 }.Contains(responseStatusCode)) + { + if (Utilities.IsContentTypeMatch("application/json", contentType)) + { + var httpResponseBody = await httpResponse.Content.ReadAsStringAsync(); + Models.Errors.ErrorResponse12Payload payload; + try + { + payload = ResponseBodyDeserializer.DeserializeNotNull(httpResponseBody, NullValueHandling.Include); + } + catch (Exception ex) + { + throw new ResponseValidationException("Failed to deserialize response body into Models.Errors.ErrorResponse12Payload.", httpRequest, httpResponse, httpResponseBody, ex); + } + + throw new Models.Errors.ErrorResponse12(payload, httpRequest, httpResponse, httpResponseBody); + } + + throw new Models.Errors.APIException("Unknown content type received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.APIException("API error occurred", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new Models.Errors.APIException("API error occurred", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + + throw new Models.Errors.APIException("Unknown status code received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + + /// + /// Get Account User. + /// + /// + /// Gets a single account user. + /// + /// A parameter. + /// The retry configuration to use for this operation. + /// An awaitable task that returns a response envelope when completed. + /// The required parameter is null. + /// The HTTP request failed due to network issues. + /// The response body could not be deserialized. + /// Bad or expired token. Thrown when the API returns a 401, 403, 404 or 429 response. + /// Default API Exception. Thrown when the API returns a 4XX or 5XX response. + public async Task GetAccountUserAsync( + GetAccountUserRequest request, + RetryConfig? retryConfig = null + ) + { + if (request == null) throw new ArgumentNullException(nameof(request)); + + string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); + var urlString = URLBuilder.Build(baseUrl, "/users/{userId}", request, null); + + var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString); + httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent); + + if (!httpRequest.Headers.Contains("Accept")) + { + httpRequest.Headers.Add("Accept", "application/json"); + } + + if (SDKConfiguration.SecuritySource != null) + { + httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest); + } + + var hookCtx = new HookContext(SDKConfiguration, baseUrl, "getAccountUser", new List { "account/users:read" }, SDKConfiguration.SecuritySource); + + httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); + if (retryConfig == null) + { + if (this.SDKConfiguration.RetryConfig != null) + { + retryConfig = this.SDKConfiguration.RetryConfig; + } + else + { + var backoff = new BackoffStrategy( + initialIntervalMs: 2000L, + maxIntervalMs: 16000L, + maxElapsedTimeMs: 40000L, + exponent: 2 + ); + retryConfig = new RetryConfig( + strategy: RetryConfig.RetryStrategy.BACKOFF, + backoff: backoff, + retryConnectionErrors: true + ); + } + } + + List statusCodes = new List { + "502", + "503", + "504", + }; + + Func> retrySend = async () => + { + var _httpRequest = await SDKConfiguration.Client.CloneAsync(httpRequest); + return await SDKConfiguration.Client.SendAsync(_httpRequest); + }; + var retries = new Cvent.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes); + + HttpResponseMessage httpResponse; + try + { + httpResponse = await retries.Run(); + int _statusCode = (int)httpResponse.StatusCode; + + if (_statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + } + } + catch (Exception _hookError) + { + var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError); + if (_httpResponse != null) + { + httpResponse = _httpResponse; + } + else + { + throw; + } + } + + httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); + + var contentType = httpResponse.Content.Headers.ContentType?.MediaType; + int responseStatusCode = (int)httpResponse.StatusCode; + if (responseStatusCode == 200) + { + if (Utilities.IsContentTypeMatch("application/json", contentType)) + { + var httpResponseBody = await httpResponse.Content.ReadAsStringAsync(); + AccountUser obj; + try + { + obj = ResponseBodyDeserializer.DeserializeNotNull(httpResponseBody, NullValueHandling.Ignore); + } + catch (Exception ex) + { + throw new ResponseValidationException("Failed to deserialize response body into AccountUser.", httpRequest, httpResponse, httpResponseBody, ex); + } + + var response = new GetAccountUserResponse() { + HttpMeta = new Models.Components.HTTPMetadata() { + Response = httpResponse, + Request = httpRequest + } + }; + response.AccountUser = obj; + return response; + } + + throw new Models.Errors.APIException("Unknown content type received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (new List { 401, 403, 404, 429 }.Contains(responseStatusCode)) + { + if (Utilities.IsContentTypeMatch("application/json", contentType)) + { + var httpResponseBody = await httpResponse.Content.ReadAsStringAsync(); + Models.Errors.ErrorResponse12Payload payload; + try + { + payload = ResponseBodyDeserializer.DeserializeNotNull(httpResponseBody, NullValueHandling.Ignore); + } + catch (Exception ex) + { + throw new ResponseValidationException("Failed to deserialize response body into Models.Errors.ErrorResponse12Payload.", httpRequest, httpResponse, httpResponseBody, ex); + } + + throw new Models.Errors.ErrorResponse12(payload, httpRequest, httpResponse, httpResponseBody); + } + + throw new Models.Errors.APIException("Unknown content type received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.APIException("API error occurred", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + else if (responseStatusCode >= 500 && responseStatusCode < 600) + { + throw new Models.Errors.APIException("API error occurred", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } + + throw new Models.Errors.APIException("Unknown status code received", httpRequest, httpResponse, await httpResponse.Content.ReadAsStringAsync()); + } } } \ No newline at end of file diff --git a/packages/csharp/src/Cvent/SDK/Utils/Constants.cs b/packages/csharp/src/Cvent/SDK/Utils/Constants.cs index a93faf56c..02c2cae1a 100644 --- a/packages/csharp/src/Cvent/SDK/Utils/Constants.cs +++ b/packages/csharp/src/Cvent/SDK/Utils/Constants.cs @@ -22,7 +22,7 @@ public static class Constants /// /// The version of the SDK. /// - public const string SdkVersion = "1.6.4"; + public const string SdkVersion = "1.6.5"; /// /// The version of the SDK generator used to create this SDK. diff --git a/packages/java/.speakeasy/gen.lock b/packages/java/.speakeasy/gen.lock index 3b6d4e1ad..23815a318 100644 --- a/packages/java/.speakeasy/gen.lock +++ b/packages/java/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 795b0bc6-b124-44d6-a714-d4fdbc56212b management: - docChecksum: 8e90e333b47f5f578a3170e752d227a7 + docChecksum: 1fd9ebcd59841afef8d06776d975d698 docVersion: ea speakeasyVersion: 1.752.0 generationVersion: 2.859.2 - releaseVersion: 1.6.4 - configChecksum: 2e4340a514a79824b1b0d18254ecaa14 + releaseVersion: 1.6.5 + configChecksum: 13c49748b11983b6e3f2a36dbb7526ab published: true persistentEdits: generation_id: 6ad3309a-d2a1-4e74-a3ae-065e16d1999e @@ -68,10 +68,26 @@ trackedFiles: id: f19e5a08ad28 last_write_checksum: sha1:29d0006a4bf9cc01b8cf46cea1b6c9c3e3dcff6d pristine_git_object: a6cca402644bca708edf6956fa7106cc7011ecfd + docs/models/components/AccountUser.md: + last_write_checksum: sha1:1d66d91e9397eed7535815969283cf69eea7952a + docs/models/components/AccountUserAddress.md: + last_write_checksum: sha1:2b0684ef27dced07a99c9fef5027d5e9b2f6d738 + docs/models/components/AccountUserAuditDetails.md: + last_write_checksum: sha1:0630452c1d7af5ca73daac0855f494b645f77f8f + docs/models/components/AccountUserContactDetails.md: + last_write_checksum: sha1:0083f2e37d30406adbd2382f006c86b4f0b2df24 + docs/models/components/AccountUserCustomField.md: + last_write_checksum: sha1:c52ed4005cb0126316a556476bcaf22faed45369 + docs/models/components/AccountUserCustomFieldType.md: + last_write_checksum: sha1:fbfc7228e48e1cbb2d86f6bec5678fee9f412f63 docs/models/components/AccountUserGroup.md: last_write_checksum: sha1:7500f4e4f1c06d1f77ba5e7143a0226e965597a1 docs/models/components/AccountUserGroupInput.md: last_write_checksum: sha1:3ff84862eb249d524c449f1c800e33765fbd38f1 + docs/models/components/AccountUserRoleReference.md: + last_write_checksum: sha1:4d1e09694edd3e64bc98d9ef84ee7a5ec92840be + docs/models/components/AccountUsers.md: + last_write_checksum: sha1:168782025e17bf7875699ff3735b3412852ede94 docs/models/components/Action.md: last_write_checksum: sha1:1b1804bda4c60796ade7f5fcd656da3262b7ef50 docs/models/components/ActivityAd.md: @@ -1612,6 +1628,8 @@ trackedFiles: id: 745603104c89 last_write_checksum: sha1:7602d27bcbb268269837248085f225ea82677f02 pristine_git_object: 0bf065af618f7d86562443e7f251dab35148e8f6 + docs/models/components/EmailVerified.md: + last_write_checksum: sha1:13ad8ee2997a754bc92d8107a607eb3a2f7c9271 docs/models/components/EncodingProfile.md: last_write_checksum: sha1:7000b3a400c711d0adcfd5567040ad3e0e8de119 docs/models/components/EntityType1.md: @@ -4654,6 +4672,8 @@ trackedFiles: last_write_checksum: sha1:533f46ef48f5f8a7132e78d074aa9973be943b6e docs/models/components/VirtualCardReportingFieldAndValue.md: last_write_checksum: sha1:0a93e00d3f670841680ee4d4b15220055a536a7a + docs/models/components/VisibilityAccess.md: + last_write_checksum: sha1:36d1c78af21236ac6b9f0696d1e4f48620b91a8b docs/models/components/VolumeDiscountThresholdType.md: last_write_checksum: sha1:d29e1be653ad006b43bbea50c2186af5ce095cee docs/models/components/Voucher.md: @@ -5604,6 +5624,10 @@ trackedFiles: id: 33aefc29c994 last_write_checksum: sha1:7795aa2c40f93dcaf4d9deaf03bf12db77b2e642 pristine_git_object: 63a06080a790915e7e1500e7903db1bad01ae0b6 + docs/models/operations/GetAccountUserRequest.md: + last_write_checksum: sha1:082cea662ad618c57af12352f2df8be3764d64a1 + docs/models/operations/GetAccountUserResponse.md: + last_write_checksum: sha1:0ff58fc0271ff7baca119e37eeb4cd2a5abd761f docs/models/operations/GetAccountVendorsRequest.md: last_write_checksum: sha1:f5c61ceb4bff4d7e7dacef82f81786dab726a328 docs/models/operations/GetAccountVendorsResponse.md: @@ -6812,6 +6836,10 @@ trackedFiles: id: 2fe15ed14fcc last_write_checksum: sha1:791e3258d12b6f7f6b3ff8d7e7d6b0673e611f52 pristine_git_object: 42b07a66cce65d14e7fcf538d5534fcde59f1e37 + docs/models/operations/ListAccountUsersRequest.md: + last_write_checksum: sha1:e063f588d58700e6540ece3fdffd1072d033bcf3 + docs/models/operations/ListAccountUsersResponse.md: + last_write_checksum: sha1:4dc4662a3ad5305c9165faf9ab0e40b0dbb30f71 docs/models/operations/ListAdmissionItemsPostFiltersRequest.md: id: 3008095bb372 last_write_checksum: sha1:da4c61363a13b3fc56fc10b93021e0c8a502f6b6 @@ -8466,7 +8494,7 @@ trackedFiles: pristine_git_object: 6a5db84c5ca533f0a9a08dd4989072329ecdd05f docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:bd858ca49c1e5f54e59173e1d85aeff93cdd710b + last_write_checksum: sha1:cc9607f8956050f2830b28c4242399374773be00 pristine_git_object: e340e49b38b5531e795df74195ccaed5136eb492 docs/sdks/userscim/README.md: id: 50529a579425 @@ -8494,7 +8522,7 @@ trackedFiles: pristine_git_object: cda742065b0bb30407900c4d39885b8db164b9b4 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:131fbd5aa264288b616d56750d00b175a9a5e000 + last_write_checksum: sha1:76c6307c00a5545cad6f462e0cc10e5776d938f3 pristine_git_object: 6da141a8453a679109d12dba513b6d08b9e37fd5 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 @@ -8722,7 +8750,7 @@ trackedFiles: pristine_git_object: 6bdbc98baa94e9bfaaf5e1bde2be6387a6a2ef1c src/main/java/com/cvent/AsyncUsers.java: id: 4e8ed6210374 - last_write_checksum: sha1:f67eaf66fb81db4b618ef9851e0bf8621d6b5309 + last_write_checksum: sha1:be6259440168e762eeda9a2ecea286caaaf26821 pristine_git_object: abd63df68ae7b0a8072397adaea22c85664088b4 src/main/java/com/cvent/AsyncVenueAvailability.java: last_write_checksum: sha1:f99a3af5bebb908f69ac41f76605c1e830a58e8a @@ -8892,7 +8920,7 @@ trackedFiles: last_write_checksum: sha1:0396671d6b0de814aaa27700f35eed30523c66ed src/main/java/com/cvent/SDKConfiguration.java: id: cdb9837839f5 - last_write_checksum: sha1:38150fd0846c5240f9d6d0d244246b5188951080 + last_write_checksum: sha1:978a92830e650d414756fa99244a034134ba5db3 pristine_git_object: 4b98b23f51bc18bad5890089f44055b6187ed9f0 src/main/java/com/cvent/Seating.java: id: 70583b24bb9b @@ -8942,7 +8970,7 @@ trackedFiles: pristine_git_object: a5f2ceb9c8cf5738568c77be2dd4f0b5622a8ab1 src/main/java/com/cvent/Users.java: id: 87e36a69a330 - last_write_checksum: sha1:7b4b2764cc99a72e5c05e002731ef19d8216648b + last_write_checksum: sha1:1795ec19d95287838cc31b3381daeac7e7289b7e pristine_git_object: ec5e517b038178f3843175814d6d968f294277ab src/main/java/com/cvent/VenueAvailability.java: last_write_checksum: sha1:c8a3baed0cefa7fb9122cd1b092ba2fbbac6c1ce @@ -8966,7 +8994,7 @@ trackedFiles: pristine_git_object: babc77d8af94b46530cb1522e0d790ed3821cbbf src/main/java/com/cvent/hooks/OAuth2Scopes.java: id: 796ee1ea9f11 - last_write_checksum: sha1:2f59694435ec356ab713c881043e785f6280008c + last_write_checksum: sha1:505d56d57851a11de0290e5e3b9604973a2086e6 pristine_git_object: 5e0d00a270318551de3675f94ccb2e418a47126e src/main/java/com/cvent/models/callbacks/CreateContactHookContactTransactionCallbackResponse.java: id: 36b27dee8ec2 @@ -8994,10 +9022,26 @@ trackedFiles: id: f62d268bf28c last_write_checksum: sha1:3f75b643f79ef932578c1d805d98f2654b0f81e6 pristine_git_object: c5b4706d39939d1a730a5bd70a0d1e0510645ef0 + src/main/java/com/cvent/models/components/AccountUser.java: + last_write_checksum: sha1:bd71f3ec19b04bf753d79e3c3979b4f7eeb7a9ad + src/main/java/com/cvent/models/components/AccountUserAddress.java: + last_write_checksum: sha1:06f16447dc7aa0b92a8f98e83f08cb79bf7711fa + src/main/java/com/cvent/models/components/AccountUserAuditDetails.java: + last_write_checksum: sha1:322d7a0610d471caf7c6e7594ea3c0482a03950d + src/main/java/com/cvent/models/components/AccountUserContactDetails.java: + last_write_checksum: sha1:553ffb51cc86ce4e45fe7f7341be0d41fe88840a + src/main/java/com/cvent/models/components/AccountUserCustomField.java: + last_write_checksum: sha1:1d56ed771151445c5dcae22e9082ca57e0fa02df + src/main/java/com/cvent/models/components/AccountUserCustomFieldType.java: + last_write_checksum: sha1:c09b502ae1cd2e79540a624e3bb5c5cc9495d1b0 src/main/java/com/cvent/models/components/AccountUserGroup.java: last_write_checksum: sha1:6e0e11aa29f0341d46da42b09ffe0d923f74c286 src/main/java/com/cvent/models/components/AccountUserGroupInput.java: last_write_checksum: sha1:b17a0b3b8fa5e94846f912134fc2fa58af613367 + src/main/java/com/cvent/models/components/AccountUserRoleReference.java: + last_write_checksum: sha1:ed9809afbedcb8063205073114628cc54f035c9f + src/main/java/com/cvent/models/components/AccountUsers.java: + last_write_checksum: sha1:5d32f01e9da74e587986cf1416f760a6324152c2 src/main/java/com/cvent/models/components/Action.java: last_write_checksum: sha1:68646d944845e7b02b5aae66f940cd73dcfec876 src/main/java/com/cvent/models/components/ActivityAd.java: @@ -10546,6 +10590,8 @@ trackedFiles: id: 433d2d39ab33 last_write_checksum: sha1:0ef6bf05c216738f3d1f405733177c9fec7183fb pristine_git_object: 992e1f817daa73f624c0b90abefd94808cd5bd8e + src/main/java/com/cvent/models/components/EmailVerified.java: + last_write_checksum: sha1:ea3224c73cd5d077b0a1d7a96310e341cc092b5e src/main/java/com/cvent/models/components/EncodingProfile.java: last_write_checksum: sha1:3f59a0ad21953578fe7ca7216423a753e73387bb src/main/java/com/cvent/models/components/EntityType1.java: @@ -13616,6 +13662,8 @@ trackedFiles: last_write_checksum: sha1:c1bd0f02d5b44b37c1fd10e8099ec44728fb5808 src/main/java/com/cvent/models/components/VirtualCardReportingFieldAndValue.java: last_write_checksum: sha1:5999f57881d65c1759cb16f4d98a09664cc49d67 + src/main/java/com/cvent/models/components/VisibilityAccess.java: + last_write_checksum: sha1:0d311b5223becaa6d53647092f4f0bffd38b8522 src/main/java/com/cvent/models/components/VolumeDiscountThresholdType.java: last_write_checksum: sha1:8625d7f52f398d7ba2f9272824abd5a8c58a5a54 src/main/java/com/cvent/models/components/Voucher.java: @@ -14188,6 +14236,8 @@ trackedFiles: id: 34381bc7ce60 last_write_checksum: sha1:78b58c05f79eb0b0a850002e8ced24447f0625c7 pristine_git_object: 5b0264f07ebbaf29b3e6187077b5bfb7f9183466 + src/main/java/com/cvent/models/operations//async/GetAccountUserRequestBuilder.java: + last_write_checksum: sha1:b238f9cebdc0677ccf807133a9ff51cc8e1744ec src/main/java/com/cvent/models/operations//async/GetAccountVendorsRequestBuilder.java: last_write_checksum: sha1:dc6097b7fd7a674fe1b06f4f1526b16110a8a26c src/main/java/com/cvent/models/operations//async/GetAirActualDetailRequestBuilder.java: @@ -14802,6 +14852,8 @@ trackedFiles: id: 48bce702dbdf last_write_checksum: sha1:d9841b3ba998cd647d993acbc191da5c61672f25 pristine_git_object: 3c2862967b9ab27116d492946a57f3d07101f39d + src/main/java/com/cvent/models/operations//async/ListAccountUsersRequestBuilder.java: + last_write_checksum: sha1:df9f67a876b1a7aa70948be543e8d95b29771ad9 src/main/java/com/cvent/models/operations//async/ListAdmissionItemsPostFiltersRequestBuilder.java: id: ccdbc9340207 last_write_checksum: sha1:163b322c0c7dd96593583e8baf6ac53c8922257e @@ -16904,6 +16956,12 @@ trackedFiles: id: a4fe7d7c04b9 last_write_checksum: sha1:39913c142d0381077d7bb8d389aa41a66a70af8b pristine_git_object: f53ccab1bfbc2add52cdaf8d6fabb717d871e880 + src/main/java/com/cvent/models/operations/GetAccountUserRequest.java: + last_write_checksum: sha1:b595dd6fd3948258d43c86f4cbf45a7c87771f87 + src/main/java/com/cvent/models/operations/GetAccountUserRequestBuilder.java: + last_write_checksum: sha1:e1ee915e82fa73551f4662feebab47825359371d + src/main/java/com/cvent/models/operations/GetAccountUserResponse.java: + last_write_checksum: sha1:116b9ba57b2e2bad8dbaaa687378b6e9a5cc404e src/main/java/com/cvent/models/operations/GetAccountVendorsRequest.java: last_write_checksum: sha1:e129ea350c9ff327def9650c7462d81eea795f7b src/main/java/com/cvent/models/operations/GetAccountVendorsRequestBuilder.java: @@ -18726,6 +18784,12 @@ trackedFiles: id: 75346c9a9bd7 last_write_checksum: sha1:baddc0c75c241e2c99781e721f8e3dab81fbf676 pristine_git_object: 246ad9961fd4a8ed91af86b4deeab96c0b64ac12 + src/main/java/com/cvent/models/operations/ListAccountUsersRequest.java: + last_write_checksum: sha1:31d261f31621694798d920e0703814c8e3369b42 + src/main/java/com/cvent/models/operations/ListAccountUsersRequestBuilder.java: + last_write_checksum: sha1:610930d96c25d4d22e97e78eff7198833978b4de + src/main/java/com/cvent/models/operations/ListAccountUsersResponse.java: + last_write_checksum: sha1:7f0589479b5493da550e4e69d4ba21f11e6ee177 src/main/java/com/cvent/models/operations/ListAdmissionItemsPostFiltersRequest.java: id: e569dfa574a7 last_write_checksum: sha1:2f8d43bd3a613acd8e921c155900e8ad76269908 @@ -21416,6 +21480,8 @@ trackedFiles: id: 6ca56774b317 last_write_checksum: sha1:9ad804be7b2341f2588ae7b0ec4a6f9bb3f9cdc1 pristine_git_object: c1fd4835fcabd606807aba2b9588e0d50ed5941c + src/main/java/com/cvent/models/operations/async/GetAccountUserResponse.java: + last_write_checksum: sha1:49c57526873940f6c1b0e45b7c45d5c515a40472 src/main/java/com/cvent/models/operations/async/GetAccountVendorsResponse.java: last_write_checksum: sha1:22859cb63ab69646393b3f448ee0ccb160714161 src/main/java/com/cvent/models/operations/async/GetAirActualDetailResponse.java: @@ -22030,6 +22096,8 @@ trackedFiles: id: 290e1e7bc033 last_write_checksum: sha1:d9b5b3f238532fdc0decb0abd67e05a3c4500a2d pristine_git_object: 5a4b41c5befcad81b3f2d5084a49bc28214d6af2 + src/main/java/com/cvent/models/operations/async/ListAccountUsersResponse.java: + last_write_checksum: sha1:1d6aff46f7af09c83a989132c07879090ed5227f src/main/java/com/cvent/models/operations/async/ListAdmissionItemsPostFiltersResponse.java: id: 4b317bed527d last_write_checksum: sha1:0cdacc28a9d2f3863985da600a9f6c0da74e6903 @@ -23248,6 +23316,8 @@ trackedFiles: last_write_checksum: sha1:11a8cc481cfeb5274491dca0abff9580f490b7f0 src/main/java/com/cvent/operations/GetAccountTransactions.java: last_write_checksum: sha1:bf59145129f061bbf0e47da71b583659f8616ed0 + src/main/java/com/cvent/operations/GetAccountUser.java: + last_write_checksum: sha1:2c800ffa096f64a8d7a56d77f8f8026b9e0e3cc8 src/main/java/com/cvent/operations/GetAccountUserGroup.java: id: 7e7a8ecc2b54 last_write_checksum: sha1:4a8851bd3fa78262fad16dba836be6d0a640ab75 @@ -23870,6 +23940,8 @@ trackedFiles: id: 0688671ba327 last_write_checksum: sha1:1a6eb4513db53db0896f9d9293bc1b6dc6aa8e55 pristine_git_object: 27be9d50d3cb8d5505e084bc74f9890b61fe9d26 + src/main/java/com/cvent/operations/ListAccountUsers.java: + last_write_checksum: sha1:28f2733c7d65c4eea6c6a39aad6d6f86cf3ef788 src/main/java/com/cvent/operations/ListAdmissionItems.java: id: 07ad58b76f86 last_write_checksum: sha1:1df98b81c2d28ff2ac20dead1db6a5d69c44c66b @@ -31001,6 +31073,77 @@ examples: responses: "401": application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + listAccountUsers: + role: + parameters: + query: + filter: "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + active: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + created: + parameters: + query: + filter: "audit.created ge '2026-01-01T00:00:00.000Z'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + combined: + parameters: + query: + filter: "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + speakeasy-default-list-account-users: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + getAccountUser: + speakeasy-default-get-account-user: + parameters: + path: + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c" + responses: + "200": + application/json: {"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": [], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}} + "401": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} examplesVersion: 1.0.2 generatedTests: getAccountUserGroups: "2025-12-09T16:04:38-06:00" @@ -31436,3 +31579,9 @@ generatedTests: updateVenueAttraction: "2026-10-13T09:35:22-03:00" associateAttractionImage: "2026-10-13T09:35:22-03:00" getAttractionImages: "2026-10-13T09:35:22-03:00" + listAccountUsers-role: "2026-10-15T14:36:51-04:00" + listAccountUsers-active: "2026-10-15T14:36:51-04:00" + listAccountUsers-created: "2026-10-15T14:36:51-04:00" + listAccountUsers-combined: "2026-10-15T14:36:51-04:00" + listAccountUsers: "2026-10-15T14:36:51-04:00" + getAccountUser: "2026-10-15T14:36:51-04:00" diff --git a/packages/java/.speakeasy/gen.yaml b/packages/java/.speakeasy/gen.yaml index 041d369b6..265ab6cfe 100644 --- a/packages/java/.speakeasy/gen.yaml +++ b/packages/java/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false java: - version: 1.6.4 + version: 1.6.5 additionalDependencies: [] additionalPlugins: [] artifactID: sdk diff --git a/packages/java/.speakeasy/tests.arazzo.yaml b/packages/java/.speakeasy/tests.arazzo.yaml index 06b77f8cb..251e7133b 100644 --- a/packages/java/.speakeasy/tests.arazzo.yaml +++ b/packages/java/.speakeasy/tests.arazzo.yaml @@ -12058,3 +12058,150 @@ workflows: type: simple x-speakeasy-test-group: Venue Content x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-role + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-active + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-created + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: audit.created ge '2026-01-01T00:00:00.000Z' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-combined + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: getAccountUser + steps: + - stepId: test + operationId: getAccountUser + parameters: + - name: userId + in: path + value: ff8af134-3505-4d67-aaea-1975d8e1327c + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":[],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true diff --git a/packages/java/README.md b/packages/java/README.md index 53a9fe822..41cb8c06c 100644 --- a/packages/java/README.md +++ b/packages/java/README.md @@ -44,7 +44,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.cvent:sdk:1.6.4' +implementation 'com.cvent:sdk:1.6.5' ``` Maven: @@ -52,7 +52,7 @@ Maven: com.cvent sdk - 1.6.4 + 1.6.5 ``` @@ -950,6 +950,8 @@ public class Application { * [deleteAccountUserGroup](docs/sdks/users/README.md#deleteaccountusergroup) - Delete Account User Group * [addUserToAccountUserGroup](docs/sdks/users/README.md#addusertoaccountusergroup) - Associate User to Group * [deleteUserFromAccountUserGroup](docs/sdks/users/README.md#deleteuserfromaccountusergroup) - Delete User from Group +* [listAccountUsers](docs/sdks/users/README.md#listaccountusers) - List Account Users +* [getAccountUser](docs/sdks/users/README.md#getaccountuser) - Get Account User ### [VenueAvailability](docs/sdks/venueavailability/README.md) @@ -1368,10 +1370,10 @@ public class Application { many more subclasses in the JDK platform). **Inherit from [`CventSDKError`](./src/main/java/models/errors/CventSDKError.java)**: -* [`com.cvent.models.errors.ErrorResponse`](./src/main/java/models/errors/com.cvent.models.errors.ErrorResponse.java): Represents an error response with additional details of cascading error messages. Applicable to 18 of 497 methods.* -* [`com.cvent.models.errors.ErrorResponse17`](./src/main/java/models/errors/com.cvent.models.errors.ErrorResponse17.java): The error response. Applicable to 11 of 497 methods.* -* [`com.cvent.models.errors.SegmentsErrorResponse`](./src/main/java/models/errors/com.cvent.models.errors.SegmentsErrorResponse.java): Segments error response details. Status code `400`. Applicable to 2 of 497 methods.* -* [`com.cvent.models.errors.Oauth2TokenPostResponse0Exception`](./src/main/java/models/errors/com.cvent.models.errors.Oauth2TokenPostResponse0Exception.java): A bad token response. Status code `400`. Applicable to 1 of 497 methods.* +* [`com.cvent.models.errors.ErrorResponse`](./src/main/java/models/errors/com.cvent.models.errors.ErrorResponse.java): Represents an error response with additional details of cascading error messages. Applicable to 18 of 499 methods.* +* [`com.cvent.models.errors.ErrorResponse17`](./src/main/java/models/errors/com.cvent.models.errors.ErrorResponse17.java): The error response. Applicable to 11 of 499 methods.* +* [`com.cvent.models.errors.SegmentsErrorResponse`](./src/main/java/models/errors/com.cvent.models.errors.SegmentsErrorResponse.java): Segments error response details. Status code `400`. Applicable to 2 of 499 methods.* +* [`com.cvent.models.errors.Oauth2TokenPostResponse0Exception`](./src/main/java/models/errors/com.cvent.models.errors.Oauth2TokenPostResponse0Exception.java): A bad token response. Status code `400`. Applicable to 1 of 499 methods.* diff --git a/packages/java/docs/models/components/AccountUser.md b/packages/java/docs/models/components/AccountUser.md new file mode 100644 index 000000000..2d82e95ce --- /dev/null +++ b/packages/java/docs/models/components/AccountUser.md @@ -0,0 +1,27 @@ +# AccountUser + +Represents a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | The identifier of the Account User. | 501fbc6a-cfd4-468f-a2f7-14e521d33c71 | +| `platformUserId` | *Optional\* | :heavy_minus_sign: | The account user's platform identifier. | 00ad83olslLwIeKcW1m8 | +| `username` | *String* | :heavy_check_mark: | The account user's username used to log into the account. | jsmith@example.com | +| `federatedSsoLoginName` | *Optional\* | :heavy_minus_sign: | The account user's federated SSO login name. | jsmith@example.com | +| `contact` | [AccountUserContactDetails](../../models/components/AccountUserContactDetails.md) | :heavy_check_mark: | The contact details of a Cvent core account user. | | +| `locale` | *String* | :heavy_check_mark: | Locale code | en-US | +| `timezone` | *String* | :heavy_check_mark: | The IANA timezone of the user. | America/New_York | +| `active` | *boolean* | :heavy_check_mark: | True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. | false | +| `usernameVerified` | *boolean* | :heavy_check_mark: | True indicates the account user's username has been verified. | true | +| `emailVerified` | [EmailVerified](../../models/components/EmailVerified.md) | :heavy_check_mark: | The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. | VERIFIED | +| `lockedOut` | *boolean* | :heavy_check_mark: | True indicates the account user is locked. | false | +| `termsOfUseAccepted` | *boolean* | :heavy_check_mark: | True indicates the account user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | true | +| `failedLoginCount` | *long* | :heavy_check_mark: | The number of failed login attempts. | 1 | +| `markDocumentsAsInternal` | *Optional\* | :heavy_minus_sign: | True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. | | +| `visibilityAccess` | List\<[VisibilityAccess](../../models/components/VisibilityAccess.md)> | :heavy_check_mark: | The visibility access of the user.

`DOCUMENT` - The user has the ability to view all documents uploaded within their account.

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account.

`EVENT` - The user has the ability to view all Events within their account.

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account.

`RFI` - The user has the ability to view all RFIs within their account.

`RFP` - The user has the ability to view all RFPs within their account.

`SURVEY` - The user has the ability to view all Surveys within their account. | | +| `audit` | [AccountUserAuditDetails](../../models/components/AccountUserAuditDetails.md) | :heavy_check_mark: | The audit details of a Cvent core account user. | | +| `customFields` | List\<[AccountUserCustomField](../../models/components/AccountUserCustomField.md)> | :heavy_minus_sign: | The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). | [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "What is your favorite color?",
"type": "Choice - Multiple Answers",
"values": [
"Choice C",
"Choice A"
],
"order": 1
}
] | +| `role` | [AccountUserRoleReference](../../models/components/AccountUserRoleReference.md) | :heavy_check_mark: | A model used to reference a Cvent core account user role by its ID. | | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserAddress.md b/packages/java/docs/models/components/AccountUserAddress.md new file mode 100644 index 000000000..a75dd0e64 --- /dev/null +++ b/packages/java/docs/models/components/AccountUserAddress.md @@ -0,0 +1,16 @@ +# AccountUserAddress + +Represents the address of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `address1` | *Optional\* | :heavy_minus_sign: | First address line. | 1765 Greensboro Station Pl | +| `address2` | *Optional\* | :heavy_minus_sign: | Second address line. | 7th Floor | +| `address3` | *Optional\* | :heavy_minus_sign: | Third address line. | | +| `city` | *Optional\* | :heavy_minus_sign: | Address city. | McLean | +| `countryCode` | *Optional\* | :heavy_minus_sign: | The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. | US | +| `regionCode` | *Optional\* | :heavy_minus_sign: | The region, province, or state code. Visit [Cvent's Region Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. | VA | +| `postalCode` | *Optional\* | :heavy_minus_sign: | Address postal code. | 22102 | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserAuditDetails.md b/packages/java/docs/models/components/AccountUserAuditDetails.md new file mode 100644 index 000000000..7d8af503a --- /dev/null +++ b/packages/java/docs/models/components/AccountUserAuditDetails.md @@ -0,0 +1,17 @@ +# AccountUserAuditDetails + +The audit details of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `created` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was created. | 2017-01-02T02:00:00Z | +| `createdBy` | *String* | :heavy_check_mark: | The identifier of the user that created this record. | hporter | +| `lastModified` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was updated. | 2019-02-12T03:00:00Z | +| `lastModifiedBy` | *String* | :heavy_check_mark: | The identifier of the user that last updated this record. | hporter | +| `lockedOutDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when the user was locked out. | 2017-01-02T02:00:00Z | +| `termsOfUseAcceptedDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | 2017-01-02T02:00:00Z | +| `lastLoginDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when the user last logged in. | 2017-01-02T02:00:00Z | +| `passwordLastModifiedDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The ISO 8601 zoned date time when the user's password was last modified. | 2017-01-02T02:00:00Z | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserContactDetails.md b/packages/java/docs/models/components/AccountUserContactDetails.md new file mode 100644 index 000000000..afbc51a6d --- /dev/null +++ b/packages/java/docs/models/components/AccountUserContactDetails.md @@ -0,0 +1,23 @@ +# AccountUserContactDetails + +The contact details of a Cvent core account user. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `honorificPrefix` | *Optional\* | :heavy_minus_sign: | Honorific prefix to use before users name. | Mr. | +| `firstName` | *String* | :heavy_check_mark: | User's first name. | Jack | +| `middleName` | *Optional\* | :heavy_minus_sign: | User's middle name. | John | +| `lastName` | *String* | :heavy_check_mark: | User's last name. | Tripper | +| `title` | *Optional\* | :heavy_minus_sign: | Position held by the current user. | Senior Software Engineer | +| `organization` | *Optional\* | :heavy_minus_sign: | Organization in which the user is employed. | Cvent | +| `email` | *String* | :heavy_check_mark: | User associated email. | jack.tripper@example.com | +| `homePhone` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `homeFax` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `mobilePhone` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `workPhone` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `workFax` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `pager` | *Optional\* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `address` | [Optional\](../../models/components/AccountUserAddress.md) | :heavy_minus_sign: | Represents the address of a Cvent core account user. | | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserCustomField.md b/packages/java/docs/models/components/AccountUserCustomField.md new file mode 100644 index 000000000..9c2175e73 --- /dev/null +++ b/packages/java/docs/models/components/AccountUserCustomField.md @@ -0,0 +1,14 @@ +# AccountUserCustomField + +Represents an account user's answer to a custom field. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | The unique ID representing this custom field. | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | +| `name` | *Optional\* | :heavy_minus_sign: | The actual text of the custom field. | What is your favorite color? | +| `type` | [Optional\](../../models/components/AccountUserCustomFieldType.md) | :heavy_minus_sign: | The type of data collected by this custom field. | Choice - Single Answer | +| `values` | List\<*String*> | :heavy_check_mark: | The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. | [
"Choice C",
"Choice A"
] | +| `order` | *Optional\* | :heavy_minus_sign: | The order of this custom field relative to other custom fields. | 1 | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserCustomFieldType.md b/packages/java/docs/models/components/AccountUserCustomFieldType.md new file mode 100644 index 000000000..c9791167e --- /dev/null +++ b/packages/java/docs/models/components/AccountUserCustomFieldType.md @@ -0,0 +1,23 @@ +# AccountUserCustomFieldType + +The type of data collected by this custom field. + +## Example Usage + +```java +import com.cvent.models.components.AccountUserCustomFieldType; + +AccountUserCustomFieldType value = AccountUserCustomFieldType.OPEN_ENDED_TEXT_DATE_TIME; +``` + + +## Values + +| Name | Value | +| ----------------------------- | ----------------------------- | +| `OPEN_ENDED_TEXT_DATE_TIME` | Open Ended Text - Date/Time | +| `OPEN_ENDED_TEXT_ONE_LINE` | Open Ended Text - One Line | +| `OPEN_ENDED_TEXT_COMMENT_BOX` | Open Ended Text - Comment Box | +| `CHOICE_SINGLE_ANSWER` | Choice - Single Answer | +| `CHOICE_MULTIPLE_ANSWERS` | Choice - Multiple Answers | +| `AUTO_INCREMENT` | Auto-Increment | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUserRoleReference.md b/packages/java/docs/models/components/AccountUserRoleReference.md new file mode 100644 index 000000000..f90a6a7c8 --- /dev/null +++ b/packages/java/docs/models/components/AccountUserRoleReference.md @@ -0,0 +1,10 @@ +# AccountUserRoleReference + +A model used to reference a Cvent core account user role by its ID. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | Represents the unique ID of an account user role. | 946505f6-6b29-421a-bda2-0815fcdea73c | \ No newline at end of file diff --git a/packages/java/docs/models/components/AccountUsers.md b/packages/java/docs/models/components/AccountUsers.md new file mode 100644 index 000000000..21fc49eb6 --- /dev/null +++ b/packages/java/docs/models/components/AccountUsers.md @@ -0,0 +1,11 @@ +# AccountUsers + +A paginated result for a list of account users. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `paging` | [Paging](../../models/components/Paging.md) | :heavy_check_mark: | Represents pagination information for a collection of resources. | +| `data` | List\<[AccountUser](../../models/components/AccountUser.md)> | :heavy_check_mark: | The list of Account Users retrieved for the specified page. | \ No newline at end of file diff --git a/packages/java/docs/models/components/EmailVerified.md b/packages/java/docs/models/components/EmailVerified.md new file mode 100644 index 000000000..24e276dc9 --- /dev/null +++ b/packages/java/docs/models/components/EmailVerified.md @@ -0,0 +1,20 @@ +# EmailVerified + +The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + +## Example Usage + +```java +import com.cvent.models.components.EmailVerified; + +EmailVerified value = EmailVerified.UNVERIFIED; +``` + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `UNVERIFIED` | UNVERIFIED | +| `VERIFIED` | VERIFIED | +| `UNVERIFIED_BLOCK_LOGIN` | UNVERIFIED_BLOCK_LOGIN | \ No newline at end of file diff --git a/packages/java/docs/models/components/VisibilityAccess.md b/packages/java/docs/models/components/VisibilityAccess.md new file mode 100644 index 000000000..c614d42e0 --- /dev/null +++ b/packages/java/docs/models/components/VisibilityAccess.md @@ -0,0 +1,38 @@ +# VisibilityAccess + +Enumerated type to outline what the user has access to. + + `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + + `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + + `EVENT` - The user has the ability to view all Events within their account. + + `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + + `RFI` - The user has the ability to view all RFIs within their account. + + `RFP` - The user has the ability to view all RFPs within their account. + + `SURVEY` - The user has the ability to view all Surveys within their account. + +## Example Usage + +```java +import com.cvent.models.components.VisibilityAccess; + +VisibilityAccess value = VisibilityAccess.DOCUMENT; +``` + + +## Values + +| Name | Value | +| --------------------- | --------------------- | +| `DOCUMENT` | DOCUMENT | +| `EMARKETING_CAMPAIGN` | EMARKETING_CAMPAIGN | +| `EVENT` | EVENT | +| `MEETING_REQUEST` | MEETING_REQUEST | +| `RFI` | RFI | +| `RFP` | RFP | +| `SURVEY` | SURVEY | \ No newline at end of file diff --git a/packages/java/docs/models/operations/GetAccountUserRequest.md b/packages/java/docs/models/operations/GetAccountUserRequest.md new file mode 100644 index 000000000..66d43c572 --- /dev/null +++ b/packages/java/docs/models/operations/GetAccountUserRequest.md @@ -0,0 +1,8 @@ +# GetAccountUserRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `userId` | *String* | :heavy_check_mark: | The Account User's Id.
| ff8af134-3505-4d67-aaea-1975d8e1327c | \ No newline at end of file diff --git a/packages/java/docs/models/operations/GetAccountUserResponse.md b/packages/java/docs/models/operations/GetAccountUserResponse.md new file mode 100644 index 000000000..d23e2c3a0 --- /dev/null +++ b/packages/java/docs/models/operations/GetAccountUserResponse.md @@ -0,0 +1,11 @@ +# GetAccountUserResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `accountUser` | [Optional\](../../models/components/AccountUser.md) | :heavy_minus_sign: | Successfully retrieved the specified account user. | \ No newline at end of file diff --git a/packages/java/docs/models/operations/ListAccountUsersRequest.md b/packages/java/docs/models/operations/ListAccountUsersRequest.md new file mode 100644 index 000000000..65bc65102 --- /dev/null +++ b/packages/java/docs/models/operations/ListAccountUsersRequest.md @@ -0,0 +1,11 @@ +# ListAccountUsersRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filter` | *Optional\* | :heavy_minus_sign: | A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses.

Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter.

## Supported Account Users Filters:

\| Field Path \| Operators \|
\|--------------------\|---------------------------------------------\|
\| role.id \| `in`, `eq`, `ne` \|
\| id \| `in`, `eq`, `ne` \|
\| active \| `eq`, `ne` \|
\| lockedOut \| `eq`, `ne` \|
\| audit.created \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
\| audit.lastModified \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
| active eq 'true' | +| `limit` | *Optional\* | :heavy_minus_sign: | The maximum number of records to return per page. | 100 | +| `token` | *Optional\* | :heavy_minus_sign: | The pagination token returned from a previous call.
This will override any other pageable parameters provided.
| 1a2b3c4d5e6f7g8h9i10j11k | +| `sort` | *Optional\* | :heavy_minus_sign: | Sorts items in the list of results.

There are two orders:
- ascending: ASC
- descending: DESC

The following fields are sortable:
- username
| username DESC | \ No newline at end of file diff --git a/packages/java/docs/models/operations/ListAccountUsersResponse.md b/packages/java/docs/models/operations/ListAccountUsersResponse.md new file mode 100644 index 000000000..d5d0283f9 --- /dev/null +++ b/packages/java/docs/models/operations/ListAccountUsersResponse.md @@ -0,0 +1,11 @@ +# ListAccountUsersResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `accountUsers` | [Optional\](../../models/components/AccountUsers.md) | :heavy_minus_sign: | Successfully retrieved a paginated list of account users. | \ No newline at end of file diff --git a/packages/java/docs/sdks/users/README.md b/packages/java/docs/sdks/users/README.md index 377012b8c..499cb102d 100644 --- a/packages/java/docs/sdks/users/README.md +++ b/packages/java/docs/sdks/users/README.md @@ -13,6 +13,8 @@ Operations for managing account users and user groups, including creation, retri * [deleteAccountUserGroup](#deleteaccountusergroup) - Delete Account User Group * [addUserToAccountUserGroup](#addusertoaccountusergroup) - Associate User to Group * [deleteUserFromAccountUserGroup](#deleteuserfromaccountusergroup) - Delete User from Group +* [listAccountUsers](#listaccountusers) - List Account Users +* [getAccountUser](#getaccountuser) - Get Account User ## getAccountUserGroups @@ -474,4 +476,276 @@ public class Application { | Error Type | Status Code | Content Type | | ----------------------------- | ----------------------------- | ----------------------------- | | models/errors/ErrorResponse12 | 400, 401, 403, 404, 429 | application/json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## listAccountUsers + +Gets a list of all users associated with your account. + +### Example Usage: active + + +```java +package hello.world; + +import com.cvent.CventSDK; +import com.cvent.models.components.SchemeOAuth2ClientCredentials; +import com.cvent.models.components.Security; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ErrorResponse12, Exception { + + CventSDK sdk = CventSDK.builder() + .security(Security.builder() + .oAuth2ClientCredentials(SchemeOAuth2ClientCredentials.builder() + .clientID("") + .clientSecret("") + .tokenURL("https://api-platform.cvent.com/ea/oauth2/token") + .scopes(List.of(System.getenv().getOrDefault("SCOPES", ""))) + .build()) + .build()) + .build(); + + ListAccountUsersRequest req = ListAccountUsersRequest.builder() + .filter("active eq 'true'") + .token("1a2b3c4d5e6f7g8h9i10j11k") + .sort("username DESC") + .build(); + + + sdk.users().listAccountUsers() + .callAsStream() + .forEach((ListAccountUsersResponse item) -> { + // handle page + }); + + } +} +``` +### Example Usage: combined + + +```java +package hello.world; + +import com.cvent.CventSDK; +import com.cvent.models.components.SchemeOAuth2ClientCredentials; +import com.cvent.models.components.Security; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ErrorResponse12, Exception { + + CventSDK sdk = CventSDK.builder() + .security(Security.builder() + .oAuth2ClientCredentials(SchemeOAuth2ClientCredentials.builder() + .clientID("") + .clientSecret("") + .tokenURL("https://api-platform.cvent.com/ea/oauth2/token") + .scopes(List.of(System.getenv().getOrDefault("SCOPES", ""))) + .build()) + .build()) + .build(); + + ListAccountUsersRequest req = ListAccountUsersRequest.builder() + .filter("active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')") + .token("1a2b3c4d5e6f7g8h9i10j11k") + .sort("username DESC") + .build(); + + + sdk.users().listAccountUsers() + .callAsStream() + .forEach((ListAccountUsersResponse item) -> { + // handle page + }); + + } +} +``` +### Example Usage: created + + +```java +package hello.world; + +import com.cvent.CventSDK; +import com.cvent.models.components.SchemeOAuth2ClientCredentials; +import com.cvent.models.components.Security; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ErrorResponse12, Exception { + + CventSDK sdk = CventSDK.builder() + .security(Security.builder() + .oAuth2ClientCredentials(SchemeOAuth2ClientCredentials.builder() + .clientID("") + .clientSecret("") + .tokenURL("https://api-platform.cvent.com/ea/oauth2/token") + .scopes(List.of(System.getenv().getOrDefault("SCOPES", ""))) + .build()) + .build()) + .build(); + + ListAccountUsersRequest req = ListAccountUsersRequest.builder() + .filter("audit.created ge '2026-01-01T00:00:00.000Z'") + .token("1a2b3c4d5e6f7g8h9i10j11k") + .sort("username DESC") + .build(); + + + sdk.users().listAccountUsers() + .callAsStream() + .forEach((ListAccountUsersResponse item) -> { + // handle page + }); + + } +} +``` +### Example Usage: role + + +```java +package hello.world; + +import com.cvent.CventSDK; +import com.cvent.models.components.SchemeOAuth2ClientCredentials; +import com.cvent.models.components.Security; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ErrorResponse12, Exception { + + CventSDK sdk = CventSDK.builder() + .security(Security.builder() + .oAuth2ClientCredentials(SchemeOAuth2ClientCredentials.builder() + .clientID("") + .clientSecret("") + .tokenURL("https://api-platform.cvent.com/ea/oauth2/token") + .scopes(List.of(System.getenv().getOrDefault("SCOPES", ""))) + .build()) + .build()) + .build(); + + ListAccountUsersRequest req = ListAccountUsersRequest.builder() + .filter("role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')") + .token("1a2b3c4d5e6f7g8h9i10j11k") + .sort("username DESC") + .build(); + + + sdk.users().listAccountUsers() + .callAsStream() + .forEach((ListAccountUsersResponse item) -> { + // handle page + }); + + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | [ListAccountUsersRequest](../../models/operations/ListAccountUsersRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[ListAccountUsersResponse](../../models/operations/ListAccountUsersResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------- | ----------------------------- | ----------------------------- | +| models/errors/ErrorResponse12 | 400, 401, 403, 429 | application/json | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## getAccountUser + +Gets a single account user. + +### Example Usage + + +```java +package hello.world; + +import com.cvent.CventSDK; +import com.cvent.models.components.SchemeOAuth2ClientCredentials; +import com.cvent.models.components.Security; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.GetAccountUserRequest; +import com.cvent.models.operations.GetAccountUserResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ErrorResponse12, Exception { + + CventSDK sdk = CventSDK.builder() + .security(Security.builder() + .oAuth2ClientCredentials(SchemeOAuth2ClientCredentials.builder() + .clientID("") + .clientSecret("") + .tokenURL("https://api-platform.cvent.com/ea/oauth2/token") + .scopes(List.of(System.getenv().getOrDefault("SCOPES", ""))) + .build()) + .build()) + .build(); + + GetAccountUserRequest req = GetAccountUserRequest.builder() + .userId("ff8af134-3505-4d67-aaea-1975d8e1327c") + .build(); + + GetAccountUserResponse res = sdk.users().getAccountUser() + .request(req) + .call(); + + if (res.accountUser().isPresent()) { + System.out.println(res.accountUser().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `request` | [GetAccountUserRequest](../../models/operations/GetAccountUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetAccountUserResponse](../../models/operations/GetAccountUserResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------- | ----------------------------- | ----------------------------- | +| models/errors/ErrorResponse12 | 401, 403, 404, 429 | application/json | | models/errors/APIException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/packages/java/gradle.properties b/packages/java/gradle.properties index 48982e127..5758f7b2e 100644 --- a/packages/java/gradle.properties +++ b/packages/java/gradle.properties @@ -1,4 +1,4 @@ groupId=com.cvent artifactId=sdk -version=1.6.4 +version=1.6.5 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/packages/java/src/main/java/com/cvent/AsyncUsers.java b/packages/java/src/main/java/com/cvent/AsyncUsers.java index f1e75a492..e11d4ca58 100644 --- a/packages/java/src/main/java/com/cvent/AsyncUsers.java +++ b/packages/java/src/main/java/com/cvent/AsyncUsers.java @@ -11,6 +11,8 @@ import com.cvent.models.operations.DeleteUserFromAccountUserGroupRequest; import com.cvent.models.operations.GetAccountUserGroupRequest; import com.cvent.models.operations.GetAccountUserGroupsRequest; +import com.cvent.models.operations.GetAccountUserRequest; +import com.cvent.models.operations.ListAccountUsersRequest; import com.cvent.models.operations.UpdateAccountUserGroupRequest; import com.cvent.models.operations.async.AddUserToAccountUserGroupRequestBuilder; import com.cvent.models.operations.async.AddUserToAccountUserGroupResponse; @@ -24,14 +26,20 @@ import com.cvent.models.operations.async.GetAccountUserGroupResponse; import com.cvent.models.operations.async.GetAccountUserGroupsRequestBuilder; import com.cvent.models.operations.async.GetAccountUserGroupsResponse; +import com.cvent.models.operations.async.GetAccountUserRequestBuilder; +import com.cvent.models.operations.async.GetAccountUserResponse; +import com.cvent.models.operations.async.ListAccountUsersRequestBuilder; +import com.cvent.models.operations.async.ListAccountUsersResponse; import com.cvent.models.operations.async.UpdateAccountUserGroupRequestBuilder; import com.cvent.models.operations.async.UpdateAccountUserGroupResponse; import com.cvent.operations.AddUserToAccountUserGroup; import com.cvent.operations.CreateAccountUserGroup; import com.cvent.operations.DeleteAccountUserGroup; import com.cvent.operations.DeleteUserFromAccountUserGroup; +import com.cvent.operations.GetAccountUser; import com.cvent.operations.GetAccountUserGroup; import com.cvent.operations.GetAccountUserGroups; +import com.cvent.operations.ListAccountUsers; import com.cvent.operations.UpdateAccountUserGroup; import com.cvent.utils.Headers; import com.cvent.utils.Options; @@ -340,4 +348,82 @@ public CompletableFuture deleteUserFromA sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); return operation.doRequest(request).thenCompose(operation::handleResponse); } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @return The async call builder + */ + public ListAccountUsersRequestBuilder listAccountUsers() { + return new ListAccountUsersRequestBuilder(sdkConfiguration); + } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listAccountUsers(@Nonnull ListAccountUsersRequest request) { + return listAccountUsers(request, null); + } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listAccountUsers( + @Nonnull ListAccountUsersRequest request, @Nullable Options options) { + AsyncRequestOperation operation = + new ListAccountUsers.Async(sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); + return operation.doRequest(request).thenCompose(operation::handleResponse); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @return The async call builder + */ + public GetAccountUserRequestBuilder getAccountUser() { + return new GetAccountUserRequestBuilder(sdkConfiguration); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getAccountUser(@Nonnull GetAccountUserRequest request) { + return getAccountUser(request, null); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getAccountUser( + @Nonnull GetAccountUserRequest request, @Nullable Options options) { + AsyncRequestOperation operation = + new GetAccountUser.Async(sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); + return operation.doRequest(request).thenCompose(operation::handleResponse); + } } diff --git a/packages/java/src/main/java/com/cvent/SDKConfiguration.java b/packages/java/src/main/java/com/cvent/SDKConfiguration.java index 61cce32f0..f37650929 100644 --- a/packages/java/src/main/java/com/cvent/SDKConfiguration.java +++ b/packages/java/src/main/java/com/cvent/SDKConfiguration.java @@ -20,7 +20,7 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "ea"; - public static final String SDK_VERSION = "1.6.4"; + public static final String SDK_VERSION = "1.6.5"; public static final String GEN_VERSION = "2.859.2"; private static final String BASE_PACKAGE = "com.cvent"; public static final String USER_AGENT = String.format( diff --git a/packages/java/src/main/java/com/cvent/Users.java b/packages/java/src/main/java/com/cvent/Users.java index 06cb8f94e..58a85c367 100644 --- a/packages/java/src/main/java/com/cvent/Users.java +++ b/packages/java/src/main/java/com/cvent/Users.java @@ -23,6 +23,12 @@ import com.cvent.models.operations.GetAccountUserGroupsRequest; import com.cvent.models.operations.GetAccountUserGroupsRequestBuilder; import com.cvent.models.operations.GetAccountUserGroupsResponse; +import com.cvent.models.operations.GetAccountUserRequest; +import com.cvent.models.operations.GetAccountUserRequestBuilder; +import com.cvent.models.operations.GetAccountUserResponse; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersRequestBuilder; +import com.cvent.models.operations.ListAccountUsersResponse; import com.cvent.models.operations.UpdateAccountUserGroupRequest; import com.cvent.models.operations.UpdateAccountUserGroupRequestBuilder; import com.cvent.models.operations.UpdateAccountUserGroupResponse; @@ -30,8 +36,10 @@ import com.cvent.operations.CreateAccountUserGroup; import com.cvent.operations.DeleteAccountUserGroup; import com.cvent.operations.DeleteUserFromAccountUserGroup; +import com.cvent.operations.GetAccountUser; import com.cvent.operations.GetAccountUserGroup; import com.cvent.operations.GetAccountUserGroups; +import com.cvent.operations.ListAccountUsers; import com.cvent.operations.UpdateAccountUserGroup; import com.cvent.utils.Headers; import com.cvent.utils.Options; @@ -348,4 +356,85 @@ public DeleteUserFromAccountUserGroupResponse deleteUserFromAccountUserGroup( new DeleteUserFromAccountUserGroup.Sync(sdkConfiguration, options, _headers); return operation.handleResponse(operation.doRequest(request)); } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @return The call builder + */ + public ListAccountUsersRequestBuilder listAccountUsers() { + return new ListAccountUsersRequestBuilder(sdkConfiguration); + } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAccountUsersResponse listAccountUsers(@Nonnull ListAccountUsersRequest request) { + return listAccountUsers(request, null); + } + + /** + * List Account Users + * + *

Gets a list of all users associated with your account. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAccountUsersResponse listAccountUsers( + @Nonnull ListAccountUsersRequest request, @Nullable Options options) { + RequestOperation operation = + new ListAccountUsers.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @return The call builder + */ + public GetAccountUserRequestBuilder getAccountUser() { + return new GetAccountUserRequestBuilder(sdkConfiguration); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountUserResponse getAccountUser(@Nonnull GetAccountUserRequest request) { + return getAccountUser(request, null); + } + + /** + * Get Account User + * + *

Gets a single account user. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountUserResponse getAccountUser(@Nonnull GetAccountUserRequest request, @Nullable Options options) { + RequestOperation operation = + new GetAccountUser.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } } diff --git a/packages/java/src/main/java/com/cvent/hooks/OAuth2Scopes.java b/packages/java/src/main/java/com/cvent/hooks/OAuth2Scopes.java index c043d8b16..05a96e519 100644 --- a/packages/java/src/main/java/com/cvent/hooks/OAuth2Scopes.java +++ b/packages/java/src/main/java/com/cvent/hooks/OAuth2Scopes.java @@ -52,7 +52,7 @@ public static enum OAuth2AuthorizationCode { AccountUsersDelete("account/users:delete"), /** - * Allows the reading of User, User Group + * Allows the reading of account users */ AccountUsersRead("account/users:read"), @@ -1194,7 +1194,7 @@ public static enum OAuth2ClientCredentials { AccountUsersDelete("account/users:delete"), /** - * Allows the reading of User, User Group + * Allows the reading of account users */ AccountUsersRead("account/users:read"), diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUser.java b/packages/java/src/main/java/com/cvent/models/components/AccountUser.java new file mode 100644 index 000000000..91ad43803 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUser.java @@ -0,0 +1,886 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.LazySingletonValue; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + +/** + * AccountUser + * + *

Represents a Cvent core account user. + */ +public class AccountUser { + /** + * The identifier of the Account User. + */ + @JsonProperty("id") + private String id; + + /** + * The account user's platform identifier. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("platformUserId") + private String platformUserId; + + /** + * The account user's username used to log into the account. + */ + @JsonProperty("username") + private String username; + + /** + * The account user's federated SSO login name. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("federatedSsoLoginName") + private String federatedSsoLoginName; + + /** + * The contact details of a Cvent core account user. + */ + @JsonProperty("contact") + private AccountUserContactDetails contact; + + /** + * Locale code + */ + @JsonProperty("locale") + private String locale; + + /** + * The IANA timezone of the user. + */ + @JsonProperty("timezone") + private String timezone; + + /** + * True indicates the account user is active. Active users can log into the account. Account users are + * created with this flag set to false by default. + */ + @JsonProperty("active") + private boolean active; + + /** + * True indicates the account user's username has been verified. + */ + @JsonProperty("usernameVerified") + private boolean usernameVerified; + + /** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been + * verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` + * indicates the email address has not been verified and the account user is blocked from logging in. + */ + @JsonProperty("emailVerified") + private EmailVerified emailVerified; + + /** + * True indicates the account user is locked. + */ + @JsonProperty("lockedOut") + private boolean lockedOut; + + /** + * True indicates the account user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + @JsonProperty("termsOfUseAccepted") + private boolean termsOfUseAccepted; + + /** + * The number of failed login attempts. + */ + @JsonProperty("failedLoginCount") + private long failedLoginCount; + + /** + * True indicates the account user's uploaded documents will be considered internal and can only be + * viewed within the Cvent Platform. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("markDocumentsAsInternal") + private Boolean markDocumentsAsInternal; + + /** + * The visibility access of the user. + * + *

`DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + *

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their + * account. + * + *

`EVENT` - The user has the ability to view all Events within their account. + * + *

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + *

`RFI` - The user has the ability to view all RFIs within their account. + * + *

`RFP` - The user has the ability to view all RFPs within their account. + * + *

`SURVEY` - The user has the ability to view all Surveys within their account. + */ + @JsonProperty("visibilityAccess") + private List visibilityAccess; + + /** + * The audit details of a Cvent core account user. + */ + @JsonProperty("audit") + private AccountUserAuditDetails audit; + + /** + * The account user's answers to account-level custom fields. Each item includes the custom field's ID, + * name, type, and submitted answer value(s). + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("customFields") + private List customFields; + + /** + * A model used to reference a Cvent core account user role by its ID. + */ + @JsonProperty("role") + private AccountUserRoleReference role; + + @JsonCreator + public AccountUser( + @JsonProperty("id") @Nonnull String id, + @JsonProperty("platformUserId") @Nullable String platformUserId, + @JsonProperty("username") @Nonnull String username, + @JsonProperty("federatedSsoLoginName") @Nullable String federatedSsoLoginName, + @JsonProperty("contact") @Nonnull AccountUserContactDetails contact, + @JsonProperty("locale") @Nonnull String locale, + @JsonProperty("timezone") @Nonnull String timezone, + @JsonProperty("active") boolean active, + @JsonProperty("usernameVerified") boolean usernameVerified, + @JsonProperty("emailVerified") @Nonnull EmailVerified emailVerified, + @JsonProperty("lockedOut") boolean lockedOut, + @JsonProperty("termsOfUseAccepted") boolean termsOfUseAccepted, + @JsonProperty("failedLoginCount") long failedLoginCount, + @JsonProperty("markDocumentsAsInternal") @Nullable Boolean markDocumentsAsInternal, + @JsonProperty("visibilityAccess") @Nonnull List visibilityAccess, + @JsonProperty("audit") @Nonnull AccountUserAuditDetails audit, + @JsonProperty("customFields") @Nullable List customFields, + @JsonProperty("role") @Nonnull AccountUserRoleReference role) { + this.id = Optional.ofNullable(id).orElseThrow(() -> new IllegalArgumentException("id cannot be null")); + this.platformUserId = platformUserId; + this.username = Optional.ofNullable(username) + .orElseThrow(() -> new IllegalArgumentException("username cannot be null")); + this.federatedSsoLoginName = federatedSsoLoginName; + this.contact = + Optional.ofNullable(contact).orElseThrow(() -> new IllegalArgumentException("contact cannot be null")); + this.locale = + Optional.ofNullable(locale).orElseThrow(() -> new IllegalArgumentException("locale cannot be null")); + this.timezone = Optional.ofNullable(timezone) + .orElseThrow(() -> new IllegalArgumentException("timezone cannot be null")); + this.active = active; + this.usernameVerified = usernameVerified; + this.emailVerified = Optional.ofNullable(emailVerified) + .orElseThrow(() -> new IllegalArgumentException("emailVerified cannot be null")); + this.lockedOut = lockedOut; + this.termsOfUseAccepted = termsOfUseAccepted; + this.failedLoginCount = failedLoginCount; + this.markDocumentsAsInternal = Optional.ofNullable(markDocumentsAsInternal) + .orElse(Builder._SINGLETON_VALUE_MarkDocumentsAsInternal.value()); + this.visibilityAccess = Optional.ofNullable(visibilityAccess) + .orElseThrow(() -> new IllegalArgumentException("visibilityAccess cannot be null")); + this.audit = Optional.ofNullable(audit).orElseThrow(() -> new IllegalArgumentException("audit cannot be null")); + this.customFields = customFields; + this.role = Optional.ofNullable(role).orElseThrow(() -> new IllegalArgumentException("role cannot be null")); + } + + public AccountUser( + @Nonnull String id, + @Nonnull String username, + @Nonnull AccountUserContactDetails contact, + @Nonnull String locale, + @Nonnull String timezone, + boolean active, + boolean usernameVerified, + @Nonnull EmailVerified emailVerified, + boolean lockedOut, + boolean termsOfUseAccepted, + long failedLoginCount, + @Nonnull List visibilityAccess, + @Nonnull AccountUserAuditDetails audit, + @Nonnull AccountUserRoleReference role) { + this( + id, + null, + username, + null, + contact, + locale, + timezone, + active, + usernameVerified, + emailVerified, + lockedOut, + termsOfUseAccepted, + failedLoginCount, + null, + visibilityAccess, + audit, + null, + role); + } + + /** + * The identifier of the Account User. + */ + public String id() { + return this.id; + } + + /** + * The account user's platform identifier. + */ + public Optional platformUserId() { + return Optional.ofNullable(this.platformUserId); + } + + /** + * The account user's username used to log into the account. + */ + public String username() { + return this.username; + } + + /** + * The account user's federated SSO login name. + */ + public Optional federatedSsoLoginName() { + return Optional.ofNullable(this.federatedSsoLoginName); + } + + /** + * The contact details of a Cvent core account user. + */ + public AccountUserContactDetails contact() { + return this.contact; + } + + /** + * Locale code + */ + public String locale() { + return this.locale; + } + + /** + * The IANA timezone of the user. + */ + public String timezone() { + return this.timezone; + } + + /** + * True indicates the account user is active. Active users can log into the account. Account users are + * created with this flag set to false by default. + */ + public boolean active() { + return this.active; + } + + /** + * True indicates the account user's username has been verified. + */ + public boolean usernameVerified() { + return this.usernameVerified; + } + + /** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been + * verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` + * indicates the email address has not been verified and the account user is blocked from logging in. + */ + public EmailVerified emailVerified() { + return this.emailVerified; + } + + /** + * True indicates the account user is locked. + */ + public boolean lockedOut() { + return this.lockedOut; + } + + /** + * True indicates the account user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public boolean termsOfUseAccepted() { + return this.termsOfUseAccepted; + } + + /** + * The number of failed login attempts. + */ + public long failedLoginCount() { + return this.failedLoginCount; + } + + /** + * True indicates the account user's uploaded documents will be considered internal and can only be + * viewed within the Cvent Platform. + */ + public Optional markDocumentsAsInternal() { + return Optional.ofNullable(this.markDocumentsAsInternal); + } + + /** + * The visibility access of the user. + * + *

`DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + *

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their + * account. + * + *

`EVENT` - The user has the ability to view all Events within their account. + * + *

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + *

`RFI` - The user has the ability to view all RFIs within their account. + * + *

`RFP` - The user has the ability to view all RFPs within their account. + * + *

`SURVEY` - The user has the ability to view all Surveys within their account. + */ + public List visibilityAccess() { + return this.visibilityAccess; + } + + /** + * The audit details of a Cvent core account user. + */ + public AccountUserAuditDetails audit() { + return this.audit; + } + + /** + * The account user's answers to account-level custom fields. Each item includes the custom field's ID, + * name, type, and submitted answer value(s). + */ + public Optional> customFields() { + return Optional.ofNullable(this.customFields); + } + + /** + * A model used to reference a Cvent core account user role by its ID. + */ + public AccountUserRoleReference role() { + return this.role; + } + + public static Builder builder() { + return new Builder(); + } + + /** + * The identifier of the Account User. + */ + public AccountUser withId(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + /** + * The account user's platform identifier. + */ + public AccountUser withPlatformUserId(@Nullable String platformUserId) { + this.platformUserId = platformUserId; + return this; + } + + /** + * The account user's username used to log into the account. + */ + public AccountUser withUsername(@Nonnull String username) { + this.username = Utils.checkNotNull(username, "username"); + return this; + } + + /** + * The account user's federated SSO login name. + */ + public AccountUser withFederatedSsoLoginName(@Nullable String federatedSsoLoginName) { + this.federatedSsoLoginName = federatedSsoLoginName; + return this; + } + + /** + * The contact details of a Cvent core account user. + */ + public AccountUser withContact(@Nonnull AccountUserContactDetails contact) { + this.contact = Utils.checkNotNull(contact, "contact"); + return this; + } + + /** + * Locale code + */ + public AccountUser withLocale(@Nonnull String locale) { + this.locale = Utils.checkNotNull(locale, "locale"); + return this; + } + + /** + * The IANA timezone of the user. + */ + public AccountUser withTimezone(@Nonnull String timezone) { + this.timezone = Utils.checkNotNull(timezone, "timezone"); + return this; + } + + /** + * True indicates the account user is active. Active users can log into the account. Account users are + * created with this flag set to false by default. + */ + public AccountUser withActive(boolean active) { + this.active = active; + return this; + } + + /** + * True indicates the account user's username has been verified. + */ + public AccountUser withUsernameVerified(boolean usernameVerified) { + this.usernameVerified = usernameVerified; + return this; + } + + /** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been + * verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` + * indicates the email address has not been verified and the account user is blocked from logging in. + */ + public AccountUser withEmailVerified(@Nonnull EmailVerified emailVerified) { + this.emailVerified = Utils.checkNotNull(emailVerified, "emailVerified"); + return this; + } + + /** + * True indicates the account user is locked. + */ + public AccountUser withLockedOut(boolean lockedOut) { + this.lockedOut = lockedOut; + return this; + } + + /** + * True indicates the account user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public AccountUser withTermsOfUseAccepted(boolean termsOfUseAccepted) { + this.termsOfUseAccepted = termsOfUseAccepted; + return this; + } + + /** + * The number of failed login attempts. + */ + public AccountUser withFailedLoginCount(long failedLoginCount) { + this.failedLoginCount = failedLoginCount; + return this; + } + + /** + * True indicates the account user's uploaded documents will be considered internal and can only be + * viewed within the Cvent Platform. + */ + public AccountUser withMarkDocumentsAsInternal(@Nullable Boolean markDocumentsAsInternal) { + this.markDocumentsAsInternal = markDocumentsAsInternal; + return this; + } + + /** + * The visibility access of the user. + * + *

`DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + *

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their + * account. + * + *

`EVENT` - The user has the ability to view all Events within their account. + * + *

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + *

`RFI` - The user has the ability to view all RFIs within their account. + * + *

`RFP` - The user has the ability to view all RFPs within their account. + * + *

`SURVEY` - The user has the ability to view all Surveys within their account. + */ + public AccountUser withVisibilityAccess(@Nonnull List visibilityAccess) { + this.visibilityAccess = Utils.checkNotNull(visibilityAccess, "visibilityAccess"); + return this; + } + + /** + * The audit details of a Cvent core account user. + */ + public AccountUser withAudit(@Nonnull AccountUserAuditDetails audit) { + this.audit = Utils.checkNotNull(audit, "audit"); + return this; + } + + /** + * The account user's answers to account-level custom fields. Each item includes the custom field's ID, + * name, type, and submitted answer value(s). + */ + public AccountUser withCustomFields(@Nullable List customFields) { + this.customFields = customFields; + return this; + } + + /** + * A model used to reference a Cvent core account user role by its ID. + */ + public AccountUser withRole(@Nonnull AccountUserRoleReference role) { + this.role = Utils.checkNotNull(role, "role"); + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUser other = (AccountUser) o; + return Utils.enhancedDeepEquals(this.id, other.id) + && Utils.enhancedDeepEquals(this.platformUserId, other.platformUserId) + && Utils.enhancedDeepEquals(this.username, other.username) + && Utils.enhancedDeepEquals(this.federatedSsoLoginName, other.federatedSsoLoginName) + && Utils.enhancedDeepEquals(this.contact, other.contact) + && Utils.enhancedDeepEquals(this.locale, other.locale) + && Utils.enhancedDeepEquals(this.timezone, other.timezone) + && Utils.enhancedDeepEquals(this.active, other.active) + && Utils.enhancedDeepEquals(this.usernameVerified, other.usernameVerified) + && Utils.enhancedDeepEquals(this.emailVerified, other.emailVerified) + && Utils.enhancedDeepEquals(this.lockedOut, other.lockedOut) + && Utils.enhancedDeepEquals(this.termsOfUseAccepted, other.termsOfUseAccepted) + && Utils.enhancedDeepEquals(this.failedLoginCount, other.failedLoginCount) + && Utils.enhancedDeepEquals(this.markDocumentsAsInternal, other.markDocumentsAsInternal) + && Utils.enhancedDeepEquals(this.visibilityAccess, other.visibilityAccess) + && Utils.enhancedDeepEquals(this.audit, other.audit) + && Utils.enhancedDeepEquals(this.customFields, other.customFields) + && Utils.enhancedDeepEquals(this.role, other.role); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + id, + platformUserId, + username, + federatedSsoLoginName, + contact, + locale, + timezone, + active, + usernameVerified, + emailVerified, + lockedOut, + termsOfUseAccepted, + failedLoginCount, + markDocumentsAsInternal, + visibilityAccess, + audit, + customFields, + role); + } + + @Override + public String toString() { + return Utils.toString( + AccountUser.class, + "id", + id, + "platformUserId", + platformUserId, + "username", + username, + "federatedSsoLoginName", + federatedSsoLoginName, + "contact", + contact, + "locale", + locale, + "timezone", + timezone, + "active", + active, + "usernameVerified", + usernameVerified, + "emailVerified", + emailVerified, + "lockedOut", + lockedOut, + "termsOfUseAccepted", + termsOfUseAccepted, + "failedLoginCount", + failedLoginCount, + "markDocumentsAsInternal", + markDocumentsAsInternal, + "visibilityAccess", + visibilityAccess, + "audit", + audit, + "customFields", + customFields, + "role", + role); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String id; + + private String platformUserId; + + private String username; + + private String federatedSsoLoginName; + + private AccountUserContactDetails contact; + + private String locale; + + private String timezone; + + private boolean active; + + private boolean usernameVerified; + + private EmailVerified emailVerified; + + private boolean lockedOut; + + private boolean termsOfUseAccepted; + + private long failedLoginCount; + + private Boolean markDocumentsAsInternal; + + private List visibilityAccess; + + private AccountUserAuditDetails audit; + + private List customFields; + + private AccountUserRoleReference role; + + private Builder() { + // force use of static builder() method + } + + /** + * The identifier of the Account User. + */ + public Builder id(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + /** + * The account user's platform identifier. + */ + public Builder platformUserId(@Nullable String platformUserId) { + this.platformUserId = platformUserId; + return this; + } + + /** + * The account user's username used to log into the account. + */ + public Builder username(@Nonnull String username) { + this.username = Utils.checkNotNull(username, "username"); + return this; + } + + /** + * The account user's federated SSO login name. + */ + public Builder federatedSsoLoginName(@Nullable String federatedSsoLoginName) { + this.federatedSsoLoginName = federatedSsoLoginName; + return this; + } + + /** + * The contact details of a Cvent core account user. + */ + public Builder contact(@Nonnull AccountUserContactDetails contact) { + this.contact = Utils.checkNotNull(contact, "contact"); + return this; + } + + /** + * Locale code + */ + public Builder locale(@Nonnull String locale) { + this.locale = Utils.checkNotNull(locale, "locale"); + return this; + } + + /** + * The IANA timezone of the user. + */ + public Builder timezone(@Nonnull String timezone) { + this.timezone = Utils.checkNotNull(timezone, "timezone"); + return this; + } + + /** + * True indicates the account user is active. Active users can log into the account. Account users are + * created with this flag set to false by default. + */ + public Builder active(boolean active) { + this.active = active; + return this; + } + + /** + * True indicates the account user's username has been verified. + */ + public Builder usernameVerified(boolean usernameVerified) { + this.usernameVerified = usernameVerified; + return this; + } + + /** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been + * verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` + * indicates the email address has not been verified and the account user is blocked from logging in. + */ + public Builder emailVerified(@Nonnull EmailVerified emailVerified) { + this.emailVerified = Utils.checkNotNull(emailVerified, "emailVerified"); + return this; + } + + /** + * True indicates the account user is locked. + */ + public Builder lockedOut(boolean lockedOut) { + this.lockedOut = lockedOut; + return this; + } + + /** + * True indicates the account user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public Builder termsOfUseAccepted(boolean termsOfUseAccepted) { + this.termsOfUseAccepted = termsOfUseAccepted; + return this; + } + + /** + * The number of failed login attempts. + */ + public Builder failedLoginCount(long failedLoginCount) { + this.failedLoginCount = failedLoginCount; + return this; + } + + /** + * True indicates the account user's uploaded documents will be considered internal and can only be + * viewed within the Cvent Platform. + */ + public Builder markDocumentsAsInternal(@Nullable Boolean markDocumentsAsInternal) { + this.markDocumentsAsInternal = markDocumentsAsInternal; + return this; + } + + /** + * The visibility access of the user. + * + *

`DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + *

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their + * account. + * + *

`EVENT` - The user has the ability to view all Events within their account. + * + *

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + *

`RFI` - The user has the ability to view all RFIs within their account. + * + *

`RFP` - The user has the ability to view all RFPs within their account. + * + *

`SURVEY` - The user has the ability to view all Surveys within their account. + */ + public Builder visibilityAccess(@Nonnull List visibilityAccess) { + this.visibilityAccess = Utils.checkNotNull(visibilityAccess, "visibilityAccess"); + return this; + } + + /** + * The audit details of a Cvent core account user. + */ + public Builder audit(@Nonnull AccountUserAuditDetails audit) { + this.audit = Utils.checkNotNull(audit, "audit"); + return this; + } + + /** + * The account user's answers to account-level custom fields. Each item includes the custom field's ID, + * name, type, and submitted answer value(s). + */ + public Builder customFields(@Nullable List customFields) { + this.customFields = customFields; + return this; + } + + /** + * A model used to reference a Cvent core account user role by its ID. + */ + public Builder role(@Nonnull AccountUserRoleReference role) { + this.role = Utils.checkNotNull(role, "role"); + return this; + } + + public AccountUser build() { + return new AccountUser( + id, + platformUserId, + username, + federatedSsoLoginName, + contact, + locale, + timezone, + active, + usernameVerified, + emailVerified, + lockedOut, + termsOfUseAccepted, + failedLoginCount, + markDocumentsAsInternal, + visibilityAccess, + audit, + customFields, + role); + } + + private static final LazySingletonValue _SINGLETON_VALUE_MarkDocumentsAsInternal = + new LazySingletonValue<>("markDocumentsAsInternal", "false", new TypeReference() {}); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserAddress.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserAddress.java new file mode 100644 index 000000000..3f81c7c86 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserAddress.java @@ -0,0 +1,334 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nullable; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * AccountUserAddress + * + *

Represents the address of a Cvent core account user. + */ +public class AccountUserAddress { + /** + * First address line. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address1") + private String address1; + + /** + * Second address line. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address2") + private String address2; + + /** + * Third address line. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address3") + private String address3; + + /** + * Address city. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("city") + private String city; + + /** + * The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("countryCode") + private String countryCode; + + /** + * The region, province, or state code. Visit [Cvent's Region Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("regionCode") + private String regionCode; + + /** + * Address postal code. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postalCode") + private String postalCode; + + @JsonCreator + public AccountUserAddress( + @JsonProperty("address1") @Nullable String address1, + @JsonProperty("address2") @Nullable String address2, + @JsonProperty("address3") @Nullable String address3, + @JsonProperty("city") @Nullable String city, + @JsonProperty("countryCode") @Nullable String countryCode, + @JsonProperty("regionCode") @Nullable String regionCode, + @JsonProperty("postalCode") @Nullable String postalCode) { + this.address1 = address1; + this.address2 = address2; + this.address3 = address3; + this.city = city; + this.countryCode = countryCode; + this.regionCode = regionCode; + this.postalCode = postalCode; + } + + public AccountUserAddress() { + this(null, null, null, null, null, null, null); + } + + /** + * First address line. + */ + public Optional address1() { + return Optional.ofNullable(this.address1); + } + + /** + * Second address line. + */ + public Optional address2() { + return Optional.ofNullable(this.address2); + } + + /** + * Third address line. + */ + public Optional address3() { + return Optional.ofNullable(this.address3); + } + + /** + * Address city. + */ + public Optional city() { + return Optional.ofNullable(this.city); + } + + /** + * The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. + */ + public Optional countryCode() { + return Optional.ofNullable(this.countryCode); + } + + /** + * The region, province, or state code. Visit [Cvent's Region Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. + */ + public Optional regionCode() { + return Optional.ofNullable(this.regionCode); + } + + /** + * Address postal code. + */ + public Optional postalCode() { + return Optional.ofNullable(this.postalCode); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * First address line. + */ + public AccountUserAddress withAddress1(@Nullable String address1) { + this.address1 = address1; + return this; + } + + /** + * Second address line. + */ + public AccountUserAddress withAddress2(@Nullable String address2) { + this.address2 = address2; + return this; + } + + /** + * Third address line. + */ + public AccountUserAddress withAddress3(@Nullable String address3) { + this.address3 = address3; + return this; + } + + /** + * Address city. + */ + public AccountUserAddress withCity(@Nullable String city) { + this.city = city; + return this; + } + + /** + * The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. + */ + public AccountUserAddress withCountryCode(@Nullable String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * The region, province, or state code. Visit [Cvent's Region Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. + */ + public AccountUserAddress withRegionCode(@Nullable String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Address postal code. + */ + public AccountUserAddress withPostalCode(@Nullable String postalCode) { + this.postalCode = postalCode; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUserAddress other = (AccountUserAddress) o; + return Utils.enhancedDeepEquals(this.address1, other.address1) + && Utils.enhancedDeepEquals(this.address2, other.address2) + && Utils.enhancedDeepEquals(this.address3, other.address3) + && Utils.enhancedDeepEquals(this.city, other.city) + && Utils.enhancedDeepEquals(this.countryCode, other.countryCode) + && Utils.enhancedDeepEquals(this.regionCode, other.regionCode) + && Utils.enhancedDeepEquals(this.postalCode, other.postalCode); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(address1, address2, address3, city, countryCode, regionCode, postalCode); + } + + @Override + public String toString() { + return Utils.toString( + AccountUserAddress.class, + "address1", + address1, + "address2", + address2, + "address3", + address3, + "city", + city, + "countryCode", + countryCode, + "regionCode", + regionCode, + "postalCode", + postalCode); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String address1; + + private String address2; + + private String address3; + + private String city; + + private String countryCode; + + private String regionCode; + + private String postalCode; + + private Builder() { + // force use of static builder() method + } + + /** + * First address line. + */ + public Builder address1(@Nullable String address1) { + this.address1 = address1; + return this; + } + + /** + * Second address line. + */ + public Builder address2(@Nullable String address2) { + this.address2 = address2; + return this; + } + + /** + * Third address line. + */ + public Builder address3(@Nullable String address3) { + this.address3 = address3; + return this; + } + + /** + * Address city. + */ + public Builder city(@Nullable String city) { + this.city = city; + return this; + } + + /** + * The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. + */ + public Builder countryCode(@Nullable String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * The region, province, or state code. Visit [Cvent's Region Code API + * Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. + */ + public Builder regionCode(@Nullable String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Address postal code. + */ + public Builder postalCode(@Nullable String postalCode) { + this.postalCode = postalCode; + return this; + } + + public AccountUserAddress build() { + return new AccountUserAddress(address1, address2, address3, city, countryCode, regionCode, postalCode); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserAuditDetails.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserAuditDetails.java new file mode 100644 index 000000000..7ca5f6492 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserAuditDetails.java @@ -0,0 +1,378 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nonnull; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + +/** + * AccountUserAuditDetails + * + *

The audit details of a Cvent core account user. + */ +public class AccountUserAuditDetails { + /** + * The ISO 8601 zoned date time when this record was created. + */ + @JsonProperty("created") + private OffsetDateTime created; + + /** + * The identifier of the user that created this record. + */ + @JsonProperty("createdBy") + private String createdBy; + + /** + * The ISO 8601 zoned date time when this record was updated. + */ + @JsonProperty("lastModified") + private OffsetDateTime lastModified; + + /** + * The identifier of the user that last updated this record. + */ + @JsonProperty("lastModifiedBy") + private String lastModifiedBy; + + /** + * The ISO 8601 zoned date time when the user was locked out. + */ + @JsonProperty("lockedOutDate") + private OffsetDateTime lockedOutDate; + + /** + * The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + @JsonProperty("termsOfUseAcceptedDate") + private OffsetDateTime termsOfUseAcceptedDate; + + /** + * The ISO 8601 zoned date time when the user last logged in. + */ + @JsonProperty("lastLoginDate") + private OffsetDateTime lastLoginDate; + + /** + * The ISO 8601 zoned date time when the user's password was last modified. + */ + @JsonProperty("passwordLastModifiedDate") + private OffsetDateTime passwordLastModifiedDate; + + @JsonCreator + public AccountUserAuditDetails( + @JsonProperty("created") @Nonnull OffsetDateTime created, + @JsonProperty("createdBy") @Nonnull String createdBy, + @JsonProperty("lastModified") @Nonnull OffsetDateTime lastModified, + @JsonProperty("lastModifiedBy") @Nonnull String lastModifiedBy, + @JsonProperty("lockedOutDate") @Nonnull OffsetDateTime lockedOutDate, + @JsonProperty("termsOfUseAcceptedDate") @Nonnull OffsetDateTime termsOfUseAcceptedDate, + @JsonProperty("lastLoginDate") @Nonnull OffsetDateTime lastLoginDate, + @JsonProperty("passwordLastModifiedDate") @Nonnull OffsetDateTime passwordLastModifiedDate) { + this.created = + Optional.ofNullable(created).orElseThrow(() -> new IllegalArgumentException("created cannot be null")); + this.createdBy = Optional.ofNullable(createdBy) + .orElseThrow(() -> new IllegalArgumentException("createdBy cannot be null")); + this.lastModified = Optional.ofNullable(lastModified) + .orElseThrow(() -> new IllegalArgumentException("lastModified cannot be null")); + this.lastModifiedBy = Optional.ofNullable(lastModifiedBy) + .orElseThrow(() -> new IllegalArgumentException("lastModifiedBy cannot be null")); + this.lockedOutDate = Optional.ofNullable(lockedOutDate) + .orElseThrow(() -> new IllegalArgumentException("lockedOutDate cannot be null")); + this.termsOfUseAcceptedDate = Optional.ofNullable(termsOfUseAcceptedDate) + .orElseThrow(() -> new IllegalArgumentException("termsOfUseAcceptedDate cannot be null")); + this.lastLoginDate = Optional.ofNullable(lastLoginDate) + .orElseThrow(() -> new IllegalArgumentException("lastLoginDate cannot be null")); + this.passwordLastModifiedDate = Optional.ofNullable(passwordLastModifiedDate) + .orElseThrow(() -> new IllegalArgumentException("passwordLastModifiedDate cannot be null")); + } + + /** + * The ISO 8601 zoned date time when this record was created. + */ + public OffsetDateTime created() { + return this.created; + } + + /** + * The identifier of the user that created this record. + */ + public String createdBy() { + return this.createdBy; + } + + /** + * The ISO 8601 zoned date time when this record was updated. + */ + public OffsetDateTime lastModified() { + return this.lastModified; + } + + /** + * The identifier of the user that last updated this record. + */ + public String lastModifiedBy() { + return this.lastModifiedBy; + } + + /** + * The ISO 8601 zoned date time when the user was locked out. + */ + public OffsetDateTime lockedOutDate() { + return this.lockedOutDate; + } + + /** + * The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public OffsetDateTime termsOfUseAcceptedDate() { + return this.termsOfUseAcceptedDate; + } + + /** + * The ISO 8601 zoned date time when the user last logged in. + */ + public OffsetDateTime lastLoginDate() { + return this.lastLoginDate; + } + + /** + * The ISO 8601 zoned date time when the user's password was last modified. + */ + public OffsetDateTime passwordLastModifiedDate() { + return this.passwordLastModifiedDate; + } + + public static Builder builder() { + return new Builder(); + } + + /** + * The ISO 8601 zoned date time when this record was created. + */ + public AccountUserAuditDetails withCreated(@Nonnull OffsetDateTime created) { + this.created = Utils.checkNotNull(created, "created"); + return this; + } + + /** + * The identifier of the user that created this record. + */ + public AccountUserAuditDetails withCreatedBy(@Nonnull String createdBy) { + this.createdBy = Utils.checkNotNull(createdBy, "createdBy"); + return this; + } + + /** + * The ISO 8601 zoned date time when this record was updated. + */ + public AccountUserAuditDetails withLastModified(@Nonnull OffsetDateTime lastModified) { + this.lastModified = Utils.checkNotNull(lastModified, "lastModified"); + return this; + } + + /** + * The identifier of the user that last updated this record. + */ + public AccountUserAuditDetails withLastModifiedBy(@Nonnull String lastModifiedBy) { + this.lastModifiedBy = Utils.checkNotNull(lastModifiedBy, "lastModifiedBy"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user was locked out. + */ + public AccountUserAuditDetails withLockedOutDate(@Nonnull OffsetDateTime lockedOutDate) { + this.lockedOutDate = Utils.checkNotNull(lockedOutDate, "lockedOutDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public AccountUserAuditDetails withTermsOfUseAcceptedDate(@Nonnull OffsetDateTime termsOfUseAcceptedDate) { + this.termsOfUseAcceptedDate = Utils.checkNotNull(termsOfUseAcceptedDate, "termsOfUseAcceptedDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user last logged in. + */ + public AccountUserAuditDetails withLastLoginDate(@Nonnull OffsetDateTime lastLoginDate) { + this.lastLoginDate = Utils.checkNotNull(lastLoginDate, "lastLoginDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user's password was last modified. + */ + public AccountUserAuditDetails withPasswordLastModifiedDate(@Nonnull OffsetDateTime passwordLastModifiedDate) { + this.passwordLastModifiedDate = Utils.checkNotNull(passwordLastModifiedDate, "passwordLastModifiedDate"); + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUserAuditDetails other = (AccountUserAuditDetails) o; + return Utils.enhancedDeepEquals(this.created, other.created) + && Utils.enhancedDeepEquals(this.createdBy, other.createdBy) + && Utils.enhancedDeepEquals(this.lastModified, other.lastModified) + && Utils.enhancedDeepEquals(this.lastModifiedBy, other.lastModifiedBy) + && Utils.enhancedDeepEquals(this.lockedOutDate, other.lockedOutDate) + && Utils.enhancedDeepEquals(this.termsOfUseAcceptedDate, other.termsOfUseAcceptedDate) + && Utils.enhancedDeepEquals(this.lastLoginDate, other.lastLoginDate) + && Utils.enhancedDeepEquals(this.passwordLastModifiedDate, other.passwordLastModifiedDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + created, + createdBy, + lastModified, + lastModifiedBy, + lockedOutDate, + termsOfUseAcceptedDate, + lastLoginDate, + passwordLastModifiedDate); + } + + @Override + public String toString() { + return Utils.toString( + AccountUserAuditDetails.class, + "created", + created, + "createdBy", + createdBy, + "lastModified", + lastModified, + "lastModifiedBy", + lastModifiedBy, + "lockedOutDate", + lockedOutDate, + "termsOfUseAcceptedDate", + termsOfUseAcceptedDate, + "lastLoginDate", + lastLoginDate, + "passwordLastModifiedDate", + passwordLastModifiedDate); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private OffsetDateTime created; + + private String createdBy; + + private OffsetDateTime lastModified; + + private String lastModifiedBy; + + private OffsetDateTime lockedOutDate; + + private OffsetDateTime termsOfUseAcceptedDate; + + private OffsetDateTime lastLoginDate; + + private OffsetDateTime passwordLastModifiedDate; + + private Builder() { + // force use of static builder() method + } + + /** + * The ISO 8601 zoned date time when this record was created. + */ + public Builder created(@Nonnull OffsetDateTime created) { + this.created = Utils.checkNotNull(created, "created"); + return this; + } + + /** + * The identifier of the user that created this record. + */ + public Builder createdBy(@Nonnull String createdBy) { + this.createdBy = Utils.checkNotNull(createdBy, "createdBy"); + return this; + } + + /** + * The ISO 8601 zoned date time when this record was updated. + */ + public Builder lastModified(@Nonnull OffsetDateTime lastModified) { + this.lastModified = Utils.checkNotNull(lastModified, "lastModified"); + return this; + } + + /** + * The identifier of the user that last updated this record. + */ + public Builder lastModifiedBy(@Nonnull String lastModifiedBy) { + this.lastModifiedBy = Utils.checkNotNull(lastModifiedBy, "lastModifiedBy"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user was locked out. + */ + public Builder lockedOutDate(@Nonnull OffsetDateTime lockedOutDate) { + this.lockedOutDate = Utils.checkNotNull(lockedOutDate, "lockedOutDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of + * Use](https://www.cvent.com/en/product-terms-of-use). + */ + public Builder termsOfUseAcceptedDate(@Nonnull OffsetDateTime termsOfUseAcceptedDate) { + this.termsOfUseAcceptedDate = Utils.checkNotNull(termsOfUseAcceptedDate, "termsOfUseAcceptedDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user last logged in. + */ + public Builder lastLoginDate(@Nonnull OffsetDateTime lastLoginDate) { + this.lastLoginDate = Utils.checkNotNull(lastLoginDate, "lastLoginDate"); + return this; + } + + /** + * The ISO 8601 zoned date time when the user's password was last modified. + */ + public Builder passwordLastModifiedDate(@Nonnull OffsetDateTime passwordLastModifiedDate) { + this.passwordLastModifiedDate = Utils.checkNotNull(passwordLastModifiedDate, "passwordLastModifiedDate"); + return this; + } + + public AccountUserAuditDetails build() { + return new AccountUserAuditDetails( + created, + createdBy, + lastModified, + lastModifiedBy, + lockedOutDate, + termsOfUseAcceptedDate, + lastLoginDate, + passwordLastModifiedDate); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserContactDetails.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserContactDetails.java new file mode 100644 index 000000000..4c47f651f --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserContactDetails.java @@ -0,0 +1,613 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * AccountUserContactDetails + * + *

The contact details of a Cvent core account user. + */ +public class AccountUserContactDetails { + /** + * Honorific prefix to use before users name. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("honorificPrefix") + private String honorificPrefix; + + /** + * User's first name. + */ + @JsonProperty("firstName") + private String firstName; + + /** + * User's middle name. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("middleName") + private String middleName; + + /** + * User's last name. + */ + @JsonProperty("lastName") + private String lastName; + + /** + * Position held by the current user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("title") + private String title; + + /** + * Organization in which the user is employed. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("organization") + private String organization; + + /** + * User associated email. + */ + @JsonProperty("email") + private String email; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("homePhone") + private String homePhone; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("homeFax") + private String homeFax; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mobilePhone") + private String mobilePhone; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workPhone") + private String workPhone; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workFax") + private String workFax; + + /** + * Phone number associated to given user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pager") + private String pager; + + /** + * Represents the address of a Cvent core account user. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address") + private AccountUserAddress address; + + @JsonCreator + public AccountUserContactDetails( + @JsonProperty("honorificPrefix") @Nullable String honorificPrefix, + @JsonProperty("firstName") @Nonnull String firstName, + @JsonProperty("middleName") @Nullable String middleName, + @JsonProperty("lastName") @Nonnull String lastName, + @JsonProperty("title") @Nullable String title, + @JsonProperty("organization") @Nullable String organization, + @JsonProperty("email") @Nonnull String email, + @JsonProperty("homePhone") @Nullable String homePhone, + @JsonProperty("homeFax") @Nullable String homeFax, + @JsonProperty("mobilePhone") @Nullable String mobilePhone, + @JsonProperty("workPhone") @Nullable String workPhone, + @JsonProperty("workFax") @Nullable String workFax, + @JsonProperty("pager") @Nullable String pager, + @JsonProperty("address") @Nullable AccountUserAddress address) { + this.honorificPrefix = honorificPrefix; + this.firstName = Optional.ofNullable(firstName) + .orElseThrow(() -> new IllegalArgumentException("firstName cannot be null")); + this.middleName = middleName; + this.lastName = Optional.ofNullable(lastName) + .orElseThrow(() -> new IllegalArgumentException("lastName cannot be null")); + this.title = title; + this.organization = organization; + this.email = Optional.ofNullable(email).orElseThrow(() -> new IllegalArgumentException("email cannot be null")); + this.homePhone = homePhone; + this.homeFax = homeFax; + this.mobilePhone = mobilePhone; + this.workPhone = workPhone; + this.workFax = workFax; + this.pager = pager; + this.address = address; + } + + public AccountUserContactDetails(@Nonnull String firstName, @Nonnull String lastName, @Nonnull String email) { + this(null, firstName, null, lastName, null, null, email, null, null, null, null, null, null, null); + } + + /** + * Honorific prefix to use before users name. + */ + public Optional honorificPrefix() { + return Optional.ofNullable(this.honorificPrefix); + } + + /** + * User's first name. + */ + public String firstName() { + return this.firstName; + } + + /** + * User's middle name. + */ + public Optional middleName() { + return Optional.ofNullable(this.middleName); + } + + /** + * User's last name. + */ + public String lastName() { + return this.lastName; + } + + /** + * Position held by the current user. + */ + public Optional title() { + return Optional.ofNullable(this.title); + } + + /** + * Organization in which the user is employed. + */ + public Optional organization() { + return Optional.ofNullable(this.organization); + } + + /** + * User associated email. + */ + public String email() { + return this.email; + } + + /** + * Phone number associated to given user. + */ + public Optional homePhone() { + return Optional.ofNullable(this.homePhone); + } + + /** + * Phone number associated to given user. + */ + public Optional homeFax() { + return Optional.ofNullable(this.homeFax); + } + + /** + * Phone number associated to given user. + */ + public Optional mobilePhone() { + return Optional.ofNullable(this.mobilePhone); + } + + /** + * Phone number associated to given user. + */ + public Optional workPhone() { + return Optional.ofNullable(this.workPhone); + } + + /** + * Phone number associated to given user. + */ + public Optional workFax() { + return Optional.ofNullable(this.workFax); + } + + /** + * Phone number associated to given user. + */ + public Optional pager() { + return Optional.ofNullable(this.pager); + } + + /** + * Represents the address of a Cvent core account user. + */ + public Optional address() { + return Optional.ofNullable(this.address); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Honorific prefix to use before users name. + */ + public AccountUserContactDetails withHonorificPrefix(@Nullable String honorificPrefix) { + this.honorificPrefix = honorificPrefix; + return this; + } + + /** + * User's first name. + */ + public AccountUserContactDetails withFirstName(@Nonnull String firstName) { + this.firstName = Utils.checkNotNull(firstName, "firstName"); + return this; + } + + /** + * User's middle name. + */ + public AccountUserContactDetails withMiddleName(@Nullable String middleName) { + this.middleName = middleName; + return this; + } + + /** + * User's last name. + */ + public AccountUserContactDetails withLastName(@Nonnull String lastName) { + this.lastName = Utils.checkNotNull(lastName, "lastName"); + return this; + } + + /** + * Position held by the current user. + */ + public AccountUserContactDetails withTitle(@Nullable String title) { + this.title = title; + return this; + } + + /** + * Organization in which the user is employed. + */ + public AccountUserContactDetails withOrganization(@Nullable String organization) { + this.organization = organization; + return this; + } + + /** + * User associated email. + */ + public AccountUserContactDetails withEmail(@Nonnull String email) { + this.email = Utils.checkNotNull(email, "email"); + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withHomePhone(@Nullable String homePhone) { + this.homePhone = homePhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withHomeFax(@Nullable String homeFax) { + this.homeFax = homeFax; + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withMobilePhone(@Nullable String mobilePhone) { + this.mobilePhone = mobilePhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withWorkPhone(@Nullable String workPhone) { + this.workPhone = workPhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withWorkFax(@Nullable String workFax) { + this.workFax = workFax; + return this; + } + + /** + * Phone number associated to given user. + */ + public AccountUserContactDetails withPager(@Nullable String pager) { + this.pager = pager; + return this; + } + + /** + * Represents the address of a Cvent core account user. + */ + public AccountUserContactDetails withAddress(@Nullable AccountUserAddress address) { + this.address = address; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUserContactDetails other = (AccountUserContactDetails) o; + return Utils.enhancedDeepEquals(this.honorificPrefix, other.honorificPrefix) + && Utils.enhancedDeepEquals(this.firstName, other.firstName) + && Utils.enhancedDeepEquals(this.middleName, other.middleName) + && Utils.enhancedDeepEquals(this.lastName, other.lastName) + && Utils.enhancedDeepEquals(this.title, other.title) + && Utils.enhancedDeepEquals(this.organization, other.organization) + && Utils.enhancedDeepEquals(this.email, other.email) + && Utils.enhancedDeepEquals(this.homePhone, other.homePhone) + && Utils.enhancedDeepEquals(this.homeFax, other.homeFax) + && Utils.enhancedDeepEquals(this.mobilePhone, other.mobilePhone) + && Utils.enhancedDeepEquals(this.workPhone, other.workPhone) + && Utils.enhancedDeepEquals(this.workFax, other.workFax) + && Utils.enhancedDeepEquals(this.pager, other.pager) + && Utils.enhancedDeepEquals(this.address, other.address); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + honorificPrefix, + firstName, + middleName, + lastName, + title, + organization, + email, + homePhone, + homeFax, + mobilePhone, + workPhone, + workFax, + pager, + address); + } + + @Override + public String toString() { + return Utils.toString( + AccountUserContactDetails.class, + "honorificPrefix", + honorificPrefix, + "firstName", + firstName, + "middleName", + middleName, + "lastName", + lastName, + "title", + title, + "organization", + organization, + "email", + email, + "homePhone", + homePhone, + "homeFax", + homeFax, + "mobilePhone", + mobilePhone, + "workPhone", + workPhone, + "workFax", + workFax, + "pager", + pager, + "address", + address); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String honorificPrefix; + + private String firstName; + + private String middleName; + + private String lastName; + + private String title; + + private String organization; + + private String email; + + private String homePhone; + + private String homeFax; + + private String mobilePhone; + + private String workPhone; + + private String workFax; + + private String pager; + + private AccountUserAddress address; + + private Builder() { + // force use of static builder() method + } + + /** + * Honorific prefix to use before users name. + */ + public Builder honorificPrefix(@Nullable String honorificPrefix) { + this.honorificPrefix = honorificPrefix; + return this; + } + + /** + * User's first name. + */ + public Builder firstName(@Nonnull String firstName) { + this.firstName = Utils.checkNotNull(firstName, "firstName"); + return this; + } + + /** + * User's middle name. + */ + public Builder middleName(@Nullable String middleName) { + this.middleName = middleName; + return this; + } + + /** + * User's last name. + */ + public Builder lastName(@Nonnull String lastName) { + this.lastName = Utils.checkNotNull(lastName, "lastName"); + return this; + } + + /** + * Position held by the current user. + */ + public Builder title(@Nullable String title) { + this.title = title; + return this; + } + + /** + * Organization in which the user is employed. + */ + public Builder organization(@Nullable String organization) { + this.organization = organization; + return this; + } + + /** + * User associated email. + */ + public Builder email(@Nonnull String email) { + this.email = Utils.checkNotNull(email, "email"); + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder homePhone(@Nullable String homePhone) { + this.homePhone = homePhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder homeFax(@Nullable String homeFax) { + this.homeFax = homeFax; + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder mobilePhone(@Nullable String mobilePhone) { + this.mobilePhone = mobilePhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder workPhone(@Nullable String workPhone) { + this.workPhone = workPhone; + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder workFax(@Nullable String workFax) { + this.workFax = workFax; + return this; + } + + /** + * Phone number associated to given user. + */ + public Builder pager(@Nullable String pager) { + this.pager = pager; + return this; + } + + /** + * Represents the address of a Cvent core account user. + */ + public Builder address(@Nullable AccountUserAddress address) { + this.address = address; + return this; + } + + public AccountUserContactDetails build() { + return new AccountUserContactDetails( + honorificPrefix, + firstName, + middleName, + lastName, + title, + organization, + email, + homePhone, + homeFax, + mobilePhone, + workPhone, + workFax, + pager, + address); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomField.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomField.java new file mode 100644 index 000000000..d66652199 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomField.java @@ -0,0 +1,248 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + +/** + * AccountUserCustomField + * + *

Represents an account user's answer to a custom field. + */ +public class AccountUserCustomField { + /** + * The unique ID representing this custom field. + */ + @JsonProperty("id") + private String id; + + /** + * The actual text of the custom field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private String name; + + /** + * The type of data collected by this custom field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private AccountUserCustomFieldType type; + + /** + * The custom field answer or answers, represented as an array of strings. Single-answer or text fields + * contain one string; multiple-answer fields may contain multiple strings. + */ + @JsonProperty("values") + private List values; + + /** + * The order of this custom field relative to other custom fields. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("order") + private Long order; + + @JsonCreator + public AccountUserCustomField( + @JsonProperty("id") @Nonnull String id, + @JsonProperty("name") @Nullable String name, + @JsonProperty("type") @Nullable AccountUserCustomFieldType type, + @JsonProperty("values") @Nonnull List values, + @JsonProperty("order") @Nullable Long order) { + this.id = Optional.ofNullable(id).orElseThrow(() -> new IllegalArgumentException("id cannot be null")); + this.name = name; + this.type = type; + this.values = + Optional.ofNullable(values).orElseThrow(() -> new IllegalArgumentException("values cannot be null")); + this.order = order; + } + + public AccountUserCustomField(@Nonnull String id, @Nonnull List values) { + this(id, null, null, values, null); + } + + /** + * The unique ID representing this custom field. + */ + public String id() { + return this.id; + } + + /** + * The actual text of the custom field. + */ + public Optional name() { + return Optional.ofNullable(this.name); + } + + /** + * The type of data collected by this custom field. + */ + public Optional type() { + return Optional.ofNullable(this.type); + } + + /** + * The custom field answer or answers, represented as an array of strings. Single-answer or text fields + * contain one string; multiple-answer fields may contain multiple strings. + */ + public List values() { + return this.values; + } + + /** + * The order of this custom field relative to other custom fields. + */ + public Optional order() { + return Optional.ofNullable(this.order); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * The unique ID representing this custom field. + */ + public AccountUserCustomField withId(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + /** + * The actual text of the custom field. + */ + public AccountUserCustomField withName(@Nullable String name) { + this.name = name; + return this; + } + + /** + * The type of data collected by this custom field. + */ + public AccountUserCustomField withType(@Nullable AccountUserCustomFieldType type) { + this.type = type; + return this; + } + + /** + * The custom field answer or answers, represented as an array of strings. Single-answer or text fields + * contain one string; multiple-answer fields may contain multiple strings. + */ + public AccountUserCustomField withValues(@Nonnull List values) { + this.values = Utils.checkNotNull(values, "values"); + return this; + } + + /** + * The order of this custom field relative to other custom fields. + */ + public AccountUserCustomField withOrder(@Nullable Long order) { + this.order = order; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUserCustomField other = (AccountUserCustomField) o; + return Utils.enhancedDeepEquals(this.id, other.id) + && Utils.enhancedDeepEquals(this.name, other.name) + && Utils.enhancedDeepEquals(this.type, other.type) + && Utils.enhancedDeepEquals(this.values, other.values) + && Utils.enhancedDeepEquals(this.order, other.order); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(id, name, type, values, order); + } + + @Override + public String toString() { + return Utils.toString( + AccountUserCustomField.class, "id", id, "name", name, "type", type, "values", values, "order", order); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String id; + + private String name; + + private AccountUserCustomFieldType type; + + private List values; + + private Long order; + + private Builder() { + // force use of static builder() method + } + + /** + * The unique ID representing this custom field. + */ + public Builder id(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + /** + * The actual text of the custom field. + */ + public Builder name(@Nullable String name) { + this.name = name; + return this; + } + + /** + * The type of data collected by this custom field. + */ + public Builder type(@Nullable AccountUserCustomFieldType type) { + this.type = type; + return this; + } + + /** + * The custom field answer or answers, represented as an array of strings. Single-answer or text fields + * contain one string; multiple-answer fields may contain multiple strings. + */ + public Builder values(@Nonnull List values) { + this.values = Utils.checkNotNull(values, "values"); + return this; + } + + /** + * The order of this custom field relative to other custom fields. + */ + public Builder order(@Nullable Long order) { + this.order = order; + return this; + } + + public AccountUserCustomField build() { + return new AccountUserCustomField(id, name, type, values, order); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomFieldType.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomFieldType.java new file mode 100644 index 000000000..c543a596f --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserCustomFieldType.java @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * AccountUserCustomFieldType + * + *

The type of data collected by this custom field. + */ +public enum AccountUserCustomFieldType { + OPEN_ENDED_TEXT_DATE_TIME("Open Ended Text - Date/Time"), + OPEN_ENDED_TEXT_ONE_LINE("Open Ended Text - One Line"), + OPEN_ENDED_TEXT_COMMENT_BOX("Open Ended Text - Comment Box"), + CHOICE_SINGLE_ANSWER("Choice - Single Answer"), + CHOICE_MULTIPLE_ANSWERS("Choice - Multiple Answers"), + AUTO_INCREMENT("Auto-Increment"); + + @JsonValue + private final String value; + + AccountUserCustomFieldType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (AccountUserCustomFieldType o : AccountUserCustomFieldType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUserRoleReference.java b/packages/java/src/main/java/com/cvent/models/components/AccountUserRoleReference.java new file mode 100644 index 000000000..f9537fa7a --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUserRoleReference.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nonnull; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * AccountUserRoleReference + * + *

A model used to reference a Cvent core account user role by its ID. + */ +public class AccountUserRoleReference { + /** + * Represents the unique ID of an account user role. + */ + @JsonProperty("id") + private String id; + + @JsonCreator + public AccountUserRoleReference(@JsonProperty("id") @Nonnull String id) { + this.id = Optional.ofNullable(id).orElseThrow(() -> new IllegalArgumentException("id cannot be null")); + } + + /** + * Represents the unique ID of an account user role. + */ + public String id() { + return this.id; + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Represents the unique ID of an account user role. + */ + public AccountUserRoleReference withId(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUserRoleReference other = (AccountUserRoleReference) o; + return Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(id); + } + + @Override + public String toString() { + return Utils.toString(AccountUserRoleReference.class, "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String id; + + private Builder() { + // force use of static builder() method + } + + /** + * Represents the unique ID of an account user role. + */ + public Builder id(@Nonnull String id) { + this.id = Utils.checkNotNull(id, "id"); + return this; + } + + public AccountUserRoleReference build() { + return new AccountUserRoleReference(id); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/AccountUsers.java b/packages/java/src/main/java/com/cvent/models/components/AccountUsers.java new file mode 100644 index 000000000..e85b12b2f --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/AccountUsers.java @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.annotation.Nonnull; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + +/** + * AccountUsers + * + *

A paginated result for a list of account users. + */ +public class AccountUsers { + /** + * Represents pagination information for a collection of resources. + */ + @JsonProperty("paging") + private Paging paging; + + /** + * The list of Account Users retrieved for the specified page. + */ + @JsonProperty("data") + private List data; + + @JsonCreator + public AccountUsers( + @JsonProperty("paging") @Nonnull Paging paging, @JsonProperty("data") @Nonnull List data) { + this.paging = + Optional.ofNullable(paging).orElseThrow(() -> new IllegalArgumentException("paging cannot be null")); + this.data = Optional.ofNullable(data).orElseThrow(() -> new IllegalArgumentException("data cannot be null")); + } + + /** + * Represents pagination information for a collection of resources. + */ + public Paging paging() { + return this.paging; + } + + /** + * The list of Account Users retrieved for the specified page. + */ + public List data() { + return this.data; + } + + public static Builder builder() { + return new Builder(); + } + + /** + * Represents pagination information for a collection of resources. + */ + public AccountUsers withPaging(@Nonnull Paging paging) { + this.paging = Utils.checkNotNull(paging, "paging"); + return this; + } + + /** + * The list of Account Users retrieved for the specified page. + */ + public AccountUsers withData(@Nonnull List data) { + this.data = Utils.checkNotNull(data, "data"); + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountUsers other = (AccountUsers) o; + return Utils.enhancedDeepEquals(this.paging, other.paging) && Utils.enhancedDeepEquals(this.data, other.data); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(paging, data); + } + + @Override + public String toString() { + return Utils.toString(AccountUsers.class, "paging", paging, "data", data); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private Paging paging; + + private List data; + + private Builder() { + // force use of static builder() method + } + + /** + * Represents pagination information for a collection of resources. + */ + public Builder paging(@Nonnull Paging paging) { + this.paging = Utils.checkNotNull(paging, "paging"); + return this; + } + + /** + * The list of Account Users retrieved for the specified page. + */ + public Builder data(@Nonnull List data) { + this.data = Utils.checkNotNull(data, "data"); + return this; + } + + public AccountUsers build() { + return new AccountUsers(paging, data); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/EmailVerified.java b/packages/java/src/main/java/com/cvent/models/components/EmailVerified.java new file mode 100644 index 000000000..33f1a001b --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/EmailVerified.java @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * EmailVerified + * + *

The account user's email verification status: `UNVERIFIED` indicates the email address has not been + * verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` + * indicates the email address has not been verified and the account user is blocked from logging in. + */ +public enum EmailVerified { + UNVERIFIED("UNVERIFIED"), + VERIFIED("VERIFIED"), + UNVERIFIED_BLOCK_LOGIN("UNVERIFIED_BLOCK_LOGIN"); + + @JsonValue + private final String value; + + EmailVerified(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (EmailVerified o : EmailVerified.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/components/VisibilityAccess.java b/packages/java/src/main/java/com/cvent/models/components/VisibilityAccess.java new file mode 100644 index 000000000..0a40743e0 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/components/VisibilityAccess.java @@ -0,0 +1,59 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * VisibilityAccess + * + *

Enumerated type to outline what the user has access to. + * + *

`DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + *

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their + * account. + * + *

`EVENT` - The user has the ability to view all Events within their account. + * + *

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + *

`RFI` - The user has the ability to view all RFIs within their account. + * + *

`RFP` - The user has the ability to view all RFPs within their account. + * + *

`SURVEY` - The user has the ability to view all Surveys within their account. + */ +public enum VisibilityAccess { + DOCUMENT("DOCUMENT"), + EMARKETING_CAMPAIGN("EMARKETING_CAMPAIGN"), + EVENT("EVENT"), + MEETING_REQUEST("MEETING_REQUEST"), + RFI("RFI"), + RFP("RFP"), + SURVEY("SURVEY"); + + @JsonValue + private final String value; + + VisibilityAccess(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (VisibilityAccess o : VisibilityAccess.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequest.java b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequest.java new file mode 100644 index 000000000..e501d875f --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequest.java @@ -0,0 +1,89 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import com.cvent.utils.SpeakeasyMetadata; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import jakarta.annotation.Nonnull; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +public class GetAccountUserRequest { + /** + * The Account User's Id. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=userId") + private String userId; + + @JsonCreator + public GetAccountUserRequest(@Nonnull String userId) { + this.userId = + Optional.ofNullable(userId).orElseThrow(() -> new IllegalArgumentException("userId cannot be null")); + } + + /** + * The Account User's Id. + */ + public String userId() { + return this.userId; + } + + public static Builder builder() { + return new Builder(); + } + + /** + * The Account User's Id. + */ + public GetAccountUserRequest withUserId(@Nonnull String userId) { + this.userId = Utils.checkNotNull(userId, "userId"); + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountUserRequest other = (GetAccountUserRequest) o; + return Utils.enhancedDeepEquals(this.userId, other.userId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(userId); + } + + @Override + public String toString() { + return Utils.toString(GetAccountUserRequest.class, "userId", userId); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String userId; + + private Builder() { + // force use of static builder() method + } + + /** + * The Account User's Id. + */ + public Builder userId(@Nonnull String userId) { + this.userId = Utils.checkNotNull(userId, "userId"); + return this; + } + + public GetAccountUserRequest build() { + return new GetAccountUserRequest(userId); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequestBuilder.java b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequestBuilder.java new file mode 100644 index 000000000..1d1094482 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserRequestBuilder.java @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import static com.cvent.operations.Operations.RequestOperation; + +import com.cvent.SDKConfiguration; +import com.cvent.operations.GetAccountUser; +import com.cvent.utils.Headers; +import com.cvent.utils.Options; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; + +public class GetAccountUserRequestBuilder { + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + private GetAccountUserRequest request; + private final Options.Builder optionsBuilder; + + public GetAccountUserRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.optionsBuilder = Options.builder(); + } + + public GetAccountUserRequestBuilder retryConfig(RetryConfig retryConfig) { + this.optionsBuilder.retryConfig(retryConfig); + return this; + } + + public GetAccountUserRequestBuilder request(@Nonnull GetAccountUserRequest request) { + this.request = Utils.checkNotNull(request, "request"); + return this; + } + + private GetAccountUserRequest _buildRequest() { + return this.request; + } + + public GetAccountUserRequestBuilder header(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + this._headers.add(name, value); + return this; + } + + /** + * Executes the request and returns the response. + * + * @return The response from the server. + */ + public GetAccountUserResponse call() { + Options options = optionsBuilder.build(); + RequestOperation operation = + new GetAccountUser.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(this._buildRequest())); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserResponse.java b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserResponse.java new file mode 100644 index 000000000..296546286 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/GetAccountUserResponse.java @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import com.cvent.models.components.AccountUser; +import com.cvent.utils.Response; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Optional; + +public class GetAccountUserResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successfully retrieved the specified account user. + */ + private AccountUser accountUser; + + @JsonCreator + public GetAccountUserResponse( + @Nonnull String contentType, + int statusCode, + @Nonnull HttpResponse rawResponse, + @Nullable AccountUser accountUser) { + this.contentType = Optional.ofNullable(contentType) + .orElseThrow(() -> new IllegalArgumentException("contentType cannot be null")); + this.statusCode = statusCode; + this.rawResponse = Optional.ofNullable(rawResponse) + .orElseThrow(() -> new IllegalArgumentException("rawResponse cannot be null")); + this.accountUser = accountUser; + } + + public GetAccountUserResponse( + @Nonnull String contentType, int statusCode, @Nonnull HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, null); + } + + /** + * HTTP response content type for this operation + */ + public String contentType() { + return this.contentType; + } + + /** + * HTTP response status code for this operation + */ + public int statusCode() { + return this.statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public HttpResponse rawResponse() { + return this.rawResponse; + } + + /** + * Successfully retrieved the specified account user. + */ + public Optional accountUser() { + return Optional.ofNullable(this.accountUser); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetAccountUserResponse withContentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetAccountUserResponse withStatusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAccountUserResponse withRawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved the specified account user. + */ + public GetAccountUserResponse withAccountUser(@Nullable AccountUser accountUser) { + this.accountUser = accountUser; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountUserResponse other = (GetAccountUserResponse) o; + return Utils.enhancedDeepEquals(this.contentType, other.contentType) + && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) + && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) + && Utils.enhancedDeepEquals(this.accountUser, other.accountUser); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(contentType, statusCode, rawResponse, accountUser); + } + + @Override + public String toString() { + return Utils.toString( + GetAccountUserResponse.class, + "contentType", + contentType, + "statusCode", + statusCode, + "rawResponse", + rawResponse, + "accountUser", + accountUser); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String contentType; + + private int statusCode; + + private HttpResponse rawResponse; + + private AccountUser accountUser; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved the specified account user. + */ + public Builder accountUser(@Nullable AccountUser accountUser) { + this.accountUser = accountUser; + return this; + } + + public GetAccountUserResponse build() { + return new GetAccountUserResponse(contentType, statusCode, rawResponse, accountUser); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequest.java b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequest.java new file mode 100644 index 000000000..d4538b8fa --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequest.java @@ -0,0 +1,291 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import com.cvent.utils.LazySingletonValue; +import com.cvent.utils.SpeakeasyMetadata; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.type.TypeReference; +import jakarta.annotation.Nullable; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +public class ListAccountUsersRequest { + /** + * A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple + * conditions using the `and` and `or` logical operators, and group them with parentheses. + * + *

Fields that may contain personally identifiable information (PII) are excluded from this filter + * query parameter. + * + *

## Supported Account Users Filters: + * + *

| Field Path | Operators | + * |--------------------|---------------------------------------------| + * | role.id | `in`, `eq`, `ne` | + * | id | `in`, `eq`, `ne` | + * | active | `eq`, `ne` | + * | lockedOut | `eq`, `ne` | + * | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + * | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=filter") + private String filter; + + /** + * The maximum number of records to return per page. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") + private Long limit; + + /** + * The pagination token returned from a previous call. + * This will override any other pageable parameters provided. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=token") + private String token; + + /** + * Sorts items in the list of results. + * + *

There are two orders: + * - ascending: ASC + * - descending: DESC + * + *

The following fields are sortable: + * - username + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") + private String sort; + + @JsonCreator + public ListAccountUsersRequest( + @Nullable String filter, @Nullable Long limit, @Nullable String token, @Nullable String sort) { + this.filter = filter; + this.limit = Optional.ofNullable(limit).orElse(Builder._SINGLETON_VALUE_Limit.value()); + this.token = token; + this.sort = sort; + } + + public ListAccountUsersRequest() { + this(null, null, null, null); + } + + /** + * A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple + * conditions using the `and` and `or` logical operators, and group them with parentheses. + * + *

Fields that may contain personally identifiable information (PII) are excluded from this filter + * query parameter. + * + *

## Supported Account Users Filters: + * + *

| Field Path | Operators | + * |--------------------|---------------------------------------------| + * | role.id | `in`, `eq`, `ne` | + * | id | `in`, `eq`, `ne` | + * | active | `eq`, `ne` | + * | lockedOut | `eq`, `ne` | + * | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + * | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + */ + public Optional filter() { + return Optional.ofNullable(this.filter); + } + + /** + * The maximum number of records to return per page. + */ + public Optional limit() { + return Optional.ofNullable(this.limit); + } + + /** + * The pagination token returned from a previous call. + * This will override any other pageable parameters provided. + */ + public Optional token() { + return Optional.ofNullable(this.token); + } + + /** + * Sorts items in the list of results. + * + *

There are two orders: + * - ascending: ASC + * - descending: DESC + * + *

The following fields are sortable: + * - username + */ + public Optional sort() { + return Optional.ofNullable(this.sort); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple + * conditions using the `and` and `or` logical operators, and group them with parentheses. + * + *

Fields that may contain personally identifiable information (PII) are excluded from this filter + * query parameter. + * + *

## Supported Account Users Filters: + * + *

| Field Path | Operators | + * |--------------------|---------------------------------------------| + * | role.id | `in`, `eq`, `ne` | + * | id | `in`, `eq`, `ne` | + * | active | `eq`, `ne` | + * | lockedOut | `eq`, `ne` | + * | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + * | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + */ + public ListAccountUsersRequest withFilter(@Nullable String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of records to return per page. + */ + public ListAccountUsersRequest withLimit(@Nullable Long limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token returned from a previous call. + * This will override any other pageable parameters provided. + */ + public ListAccountUsersRequest withToken(@Nullable String token) { + this.token = token; + return this; + } + + /** + * Sorts items in the list of results. + * + *

There are two orders: + * - ascending: ASC + * - descending: DESC + * + *

The following fields are sortable: + * - username + */ + public ListAccountUsersRequest withSort(@Nullable String sort) { + this.sort = sort; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountUsersRequest other = (ListAccountUsersRequest) o; + return Utils.enhancedDeepEquals(this.filter, other.filter) + && Utils.enhancedDeepEquals(this.limit, other.limit) + && Utils.enhancedDeepEquals(this.token, other.token) + && Utils.enhancedDeepEquals(this.sort, other.sort); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(filter, limit, token, sort); + } + + @Override + public String toString() { + return Utils.toString( + ListAccountUsersRequest.class, "filter", filter, "limit", limit, "token", token, "sort", sort); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String filter; + + private Long limit; + + private String token; + + private String sort; + + private Builder() { + // force use of static builder() method + } + + /** + * A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple + * conditions using the `and` and `or` logical operators, and group them with parentheses. + * + *

Fields that may contain personally identifiable information (PII) are excluded from this filter + * query parameter. + * + *

## Supported Account Users Filters: + * + *

| Field Path | Operators | + * |--------------------|---------------------------------------------| + * | role.id | `in`, `eq`, `ne` | + * | id | `in`, `eq`, `ne` | + * | active | `eq`, `ne` | + * | lockedOut | `eq`, `ne` | + * | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + * | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + */ + public Builder filter(@Nullable String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of records to return per page. + */ + public Builder limit(@Nullable Long limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token returned from a previous call. + * This will override any other pageable parameters provided. + */ + public Builder token(@Nullable String token) { + this.token = token; + return this; + } + + /** + * Sorts items in the list of results. + * + *

There are two orders: + * - ascending: ASC + * - descending: DESC + * + *

The following fields are sortable: + * - username + */ + public Builder sort(@Nullable String sort) { + this.sort = sort; + return this; + } + + public ListAccountUsersRequest build() { + return new ListAccountUsersRequest(filter, limit, token, sort); + } + + private static final LazySingletonValue _SINGLETON_VALUE_Limit = + new LazySingletonValue<>("limit", "100", new TypeReference() {}); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequestBuilder.java b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequestBuilder.java new file mode 100644 index 000000000..73af6c92b --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersRequestBuilder.java @@ -0,0 +1,107 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import static com.cvent.operations.Operations.RequestOperation; +import static com.cvent.utils.Exceptions.unchecked; +import static com.cvent.utils.Utils.toStream; +import static com.cvent.utils.Utils.transform; + +import com.cvent.SDKConfiguration; +import com.cvent.operations.ListAccountUsers; +import com.cvent.utils.Headers; +import com.cvent.utils.Options; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import com.cvent.utils.pagination.CursorTracker; +import com.cvent.utils.pagination.Paginator; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Iterable; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Iterator; +import java.util.stream.Stream; + +public class ListAccountUsersRequestBuilder { + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + private ListAccountUsersRequest request; + private final Options.Builder optionsBuilder; + + public ListAccountUsersRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.optionsBuilder = Options.builder(); + } + + public ListAccountUsersRequestBuilder retryConfig(RetryConfig retryConfig) { + this.optionsBuilder.retryConfig(retryConfig); + return this; + } + + public ListAccountUsersRequestBuilder request(@Nonnull ListAccountUsersRequest request) { + this.request = Utils.checkNotNull(request, "request"); + return this; + } + + private ListAccountUsersRequest _buildRequest() { + return this.request; + } + + public ListAccountUsersRequestBuilder header(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + this._headers.add(name, value); + return this; + } + + /** + * Executes the request and returns the response. + * + * @return The response from the server. + */ + public ListAccountUsersResponse call() { + Options options = optionsBuilder.build(); + RequestOperation operation = + new ListAccountUsers.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(this._buildRequest())); + } + + /** + * Returns an iterable that performs next page calls till no more pages + * are returned. + * + *

The returned iterable can be used in a for-each loop: + *


+     * for (ListAccountUsersResponse page : builder.callAsIterable()) {
+     *     // Process each page
+     * }
+     * 
+ * + * @return An iterable that can be used to iterate through all pages + */ + public Iterable callAsIterable() { + ListAccountUsersRequest request = this.request; + Options options = optionsBuilder.build(); + RequestOperation operation = + new ListAccountUsers.Sync(sdkConfiguration, options, _headers); + + Iterator> iterator = new Paginator<>( + request, new CursorTracker<>("$.paging.nextToken", String.class), (req, pos) -> { + var modifiedReq = pos == null ? req : req.withToken(pos); + return unchecked(() -> operation.doRequest(modifiedReq)).get(); + }); + + return () -> transform(iterator, operation::handleResponse); + } + + /** + * Returns a stream that performs next page calls till no more pages + * are returned. + **/ + public Stream callAsStream() { + return toStream(callAsIterable()); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersResponse.java b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersResponse.java new file mode 100644 index 000000000..a4624f426 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/ListAccountUsersResponse.java @@ -0,0 +1,207 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations; + +import com.cvent.models.components.AccountUsers; +import com.cvent.utils.Response; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Optional; + +public class ListAccountUsersResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successfully retrieved a paginated list of account users. + */ + private AccountUsers accountUsers; + + @JsonCreator + public ListAccountUsersResponse( + @Nonnull String contentType, + int statusCode, + @Nonnull HttpResponse rawResponse, + @Nullable AccountUsers accountUsers) { + this.contentType = Optional.ofNullable(contentType) + .orElseThrow(() -> new IllegalArgumentException("contentType cannot be null")); + this.statusCode = statusCode; + this.rawResponse = Optional.ofNullable(rawResponse) + .orElseThrow(() -> new IllegalArgumentException("rawResponse cannot be null")); + this.accountUsers = accountUsers; + } + + public ListAccountUsersResponse( + @Nonnull String contentType, int statusCode, @Nonnull HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, null); + } + + /** + * HTTP response content type for this operation + */ + public String contentType() { + return this.contentType; + } + + /** + * HTTP response status code for this operation + */ + public int statusCode() { + return this.statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public HttpResponse rawResponse() { + return this.rawResponse; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public Optional accountUsers() { + return Optional.ofNullable(this.accountUsers); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public ListAccountUsersResponse withContentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListAccountUsersResponse withStatusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListAccountUsersResponse withRawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public ListAccountUsersResponse withAccountUsers(@Nullable AccountUsers accountUsers) { + this.accountUsers = accountUsers; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountUsersResponse other = (ListAccountUsersResponse) o; + return Utils.enhancedDeepEquals(this.contentType, other.contentType) + && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) + && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) + && Utils.enhancedDeepEquals(this.accountUsers, other.accountUsers); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(contentType, statusCode, rawResponse, accountUsers); + } + + @Override + public String toString() { + return Utils.toString( + ListAccountUsersResponse.class, + "contentType", + contentType, + "statusCode", + statusCode, + "rawResponse", + rawResponse, + "accountUsers", + accountUsers); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String contentType; + + private int statusCode; + + private HttpResponse rawResponse; + + private AccountUsers accountUsers; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public Builder accountUsers(@Nullable AccountUsers accountUsers) { + this.accountUsers = accountUsers; + return this; + } + + public ListAccountUsersResponse build() { + return new ListAccountUsersResponse(contentType, statusCode, rawResponse, accountUsers); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserRequestBuilder.java b/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserRequestBuilder.java new file mode 100644 index 000000000..8b93742a2 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserRequestBuilder.java @@ -0,0 +1,62 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations.async; + +import static com.cvent.operations.Operations.AsyncRequestOperation; + +import com.cvent.SDKConfiguration; +import com.cvent.models.operations.GetAccountUserRequest; +import com.cvent.operations.GetAccountUser; +import com.cvent.utils.Headers; +import com.cvent.utils.Options; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.util.concurrent.CompletableFuture; + +public class GetAccountUserRequestBuilder { + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + private GetAccountUserRequest request; + private final Options.Builder optionsBuilder; + + public GetAccountUserRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.optionsBuilder = Options.builder(); + } + + public GetAccountUserRequestBuilder retryConfig(RetryConfig retryConfig) { + this.optionsBuilder.retryConfig(retryConfig); + return this; + } + + public GetAccountUserRequestBuilder request(@Nonnull GetAccountUserRequest request) { + this.request = Utils.checkNotNull(request, "request"); + return this; + } + + private GetAccountUserRequest _buildRequest() { + return this.request; + } + + public GetAccountUserRequestBuilder header(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + this._headers.add(name, value); + return this; + } + + /** + * Executes the request and returns the response. + * + * @return The response from the server. + */ + public CompletableFuture call() { + Options options = optionsBuilder.build(); + AsyncRequestOperation operation = + new GetAccountUser.Async(sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); + return operation.doRequest(this._buildRequest()).thenCompose(operation::handleResponse); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserResponse.java b/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserResponse.java new file mode 100644 index 000000000..14bb8c25d --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/async/GetAccountUserResponse.java @@ -0,0 +1,208 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations.async; + +import com.cvent.models.components.AccountUser; +import com.cvent.utils.AsyncResponse; +import com.cvent.utils.Blob; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Optional; + +public class GetAccountUserResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successfully retrieved the specified account user. + */ + private AccountUser accountUser; + + @JsonCreator + public GetAccountUserResponse( + @Nonnull String contentType, + int statusCode, + @Nonnull HttpResponse rawResponse, + @Nullable AccountUser accountUser) { + this.contentType = Optional.ofNullable(contentType) + .orElseThrow(() -> new IllegalArgumentException("contentType cannot be null")); + this.statusCode = statusCode; + this.rawResponse = Optional.ofNullable(rawResponse) + .orElseThrow(() -> new IllegalArgumentException("rawResponse cannot be null")); + this.accountUser = accountUser; + } + + public GetAccountUserResponse( + @Nonnull String contentType, int statusCode, @Nonnull HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, null); + } + + /** + * HTTP response content type for this operation + */ + public String contentType() { + return this.contentType; + } + + /** + * HTTP response status code for this operation + */ + public int statusCode() { + return this.statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public HttpResponse rawResponse() { + return this.rawResponse; + } + + /** + * Successfully retrieved the specified account user. + */ + public Optional accountUser() { + return Optional.ofNullable(this.accountUser); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public GetAccountUserResponse withContentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetAccountUserResponse withStatusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAccountUserResponse withRawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved the specified account user. + */ + public GetAccountUserResponse withAccountUser(@Nullable AccountUser accountUser) { + this.accountUser = accountUser; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountUserResponse other = (GetAccountUserResponse) o; + return Utils.enhancedDeepEquals(this.contentType, other.contentType) + && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) + && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) + && Utils.enhancedDeepEquals(this.accountUser, other.accountUser); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(contentType, statusCode, rawResponse, accountUser); + } + + @Override + public String toString() { + return Utils.toString( + GetAccountUserResponse.class, + "contentType", + contentType, + "statusCode", + statusCode, + "rawResponse", + rawResponse, + "accountUser", + accountUser); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String contentType; + + private int statusCode; + + private HttpResponse rawResponse; + + private AccountUser accountUser; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved the specified account user. + */ + public Builder accountUser(@Nullable AccountUser accountUser) { + this.accountUser = accountUser; + return this; + } + + public GetAccountUserResponse build() { + return new GetAccountUserResponse(contentType, statusCode, rawResponse, accountUser); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersRequestBuilder.java b/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersRequestBuilder.java new file mode 100644 index 000000000..381b6d60d --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersRequestBuilder.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations.async; + +import static com.cvent.operations.Operations.AsyncRequestOperation; +import static com.cvent.utils.Exceptions.unchecked; +import static com.cvent.utils.reactive.ReactiveUtils.mapAsync; + +import com.cvent.SDKConfiguration; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.operations.ListAccountUsers; +import com.cvent.utils.Blob; +import com.cvent.utils.Headers; +import com.cvent.utils.Options; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import com.cvent.utils.pagination.AsyncPaginator; +import com.cvent.utils.pagination.CursorTracker; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Flow; +import org.reactivestreams.FlowAdapters; +import org.reactivestreams.Publisher; +import org.reactivestreams.Subscriber; + +public class ListAccountUsersRequestBuilder { + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + private ListAccountUsersRequest request; + private final Options.Builder optionsBuilder; + + public ListAccountUsersRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.optionsBuilder = Options.builder(); + } + + public ListAccountUsersRequestBuilder retryConfig(RetryConfig retryConfig) { + this.optionsBuilder.retryConfig(retryConfig); + return this; + } + + public ListAccountUsersRequestBuilder request(@Nonnull ListAccountUsersRequest request) { + this.request = Utils.checkNotNull(request, "request"); + return this; + } + + private ListAccountUsersRequest _buildRequest() { + return this.request; + } + + public ListAccountUsersRequestBuilder header(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + this._headers.add(name, value); + return this; + } + + /** + * Executes the request and returns the response. + * + * @return The response from the server. + */ + public CompletableFuture call() { + Options options = optionsBuilder.build(); + AsyncRequestOperation operation = + new ListAccountUsers.Async(sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); + return operation.doRequest(this._buildRequest()).thenCompose(operation::handleResponse); + } + + /** + * Returns a {@link Publisher} that performs next page calls till no more pages + * are returned. + * + *

The returned {@link Publisher} can be used with reactive frameworks: + *


+     * Publisher<ListAccountUsersResponse> publisher = builder.callAsPublisher();
+     * publisher.subscribe(new Subscriber<ListAccountUsersResponse>() {
+     *     // Handle onNext, onError, onComplete
+     * });
+     * 
+ * + * @return A {@link Publisher} that emits pages asynchronously + */ + public Publisher callAsPublisher() { + ListAccountUsersRequest request = this.request; + Options options = optionsBuilder.build(); + AsyncRequestOperation operation = + new ListAccountUsers.Async(sdkConfiguration, options, sdkConfiguration.retryScheduler(), _headers); + + Flow.Publisher> asyncPaginator = new AsyncPaginator<>( + request, new CursorTracker<>("$.paging.nextToken", String.class), (req, pos) -> { + var modifiedReq = pos == null ? req : req.withToken(pos); + return operation.doRequest(modifiedReq); + }); + + Flow.Publisher flowPublisher = mapAsync(asyncPaginator, operation::handleResponse); + + // Convert Flow.Publisher to Reactive Streams Publisher at the last stage + return FlowAdapters.toPublisher(flowPublisher); + } +} diff --git a/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersResponse.java b/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersResponse.java new file mode 100644 index 000000000..6c6d8778f --- /dev/null +++ b/packages/java/src/main/java/com/cvent/models/operations/async/ListAccountUsersResponse.java @@ -0,0 +1,208 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.models.operations.async; + +import com.cvent.models.components.AccountUsers; +import com.cvent.utils.AsyncResponse; +import com.cvent.utils.Blob; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; +import java.util.Optional; + +public class ListAccountUsersResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successfully retrieved a paginated list of account users. + */ + private AccountUsers accountUsers; + + @JsonCreator + public ListAccountUsersResponse( + @Nonnull String contentType, + int statusCode, + @Nonnull HttpResponse rawResponse, + @Nullable AccountUsers accountUsers) { + this.contentType = Optional.ofNullable(contentType) + .orElseThrow(() -> new IllegalArgumentException("contentType cannot be null")); + this.statusCode = statusCode; + this.rawResponse = Optional.ofNullable(rawResponse) + .orElseThrow(() -> new IllegalArgumentException("rawResponse cannot be null")); + this.accountUsers = accountUsers; + } + + public ListAccountUsersResponse( + @Nonnull String contentType, int statusCode, @Nonnull HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, null); + } + + /** + * HTTP response content type for this operation + */ + public String contentType() { + return this.contentType; + } + + /** + * HTTP response status code for this operation + */ + public int statusCode() { + return this.statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public HttpResponse rawResponse() { + return this.rawResponse; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public Optional accountUsers() { + return Optional.ofNullable(this.accountUsers); + } + + public static Builder builder() { + return new Builder(); + } + + /** + * HTTP response content type for this operation + */ + public ListAccountUsersResponse withContentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListAccountUsersResponse withStatusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListAccountUsersResponse withRawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public ListAccountUsersResponse withAccountUsers(@Nullable AccountUsers accountUsers) { + this.accountUsers = accountUsers; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountUsersResponse other = (ListAccountUsersResponse) o; + return Utils.enhancedDeepEquals(this.contentType, other.contentType) + && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) + && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) + && Utils.enhancedDeepEquals(this.accountUsers, other.accountUsers); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(contentType, statusCode, rawResponse, accountUsers); + } + + @Override + public String toString() { + return Utils.toString( + ListAccountUsersResponse.class, + "contentType", + contentType, + "statusCode", + statusCode, + "rawResponse", + rawResponse, + "accountUsers", + accountUsers); + } + + @SuppressWarnings("UnusedReturnValue") + public static final class Builder { + + private String contentType; + + private int statusCode; + + private HttpResponse rawResponse; + + private AccountUsers accountUsers; + + private Builder() { + // force use of static builder() method + } + + /** + * HTTP response content type for this operation + */ + public Builder contentType(@Nonnull String contentType) { + this.contentType = Utils.checkNotNull(contentType, "contentType"); + return this; + } + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(@Nonnull HttpResponse rawResponse) { + this.rawResponse = Utils.checkNotNull(rawResponse, "rawResponse"); + return this; + } + + /** + * Successfully retrieved a paginated list of account users. + */ + public Builder accountUsers(@Nullable AccountUsers accountUsers) { + this.accountUsers = accountUsers; + return this; + } + + public ListAccountUsersResponse build() { + return new ListAccountUsersResponse(contentType, statusCode, rawResponse, accountUsers); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/operations/GetAccountUser.java b/packages/java/src/main/java/com/cvent/operations/GetAccountUser.java new file mode 100644 index 000000000..6507a9e25 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/operations/GetAccountUser.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.operations; + +import static com.cvent.operations.Operations.AsyncRequestOperation; +import static com.cvent.operations.Operations.RequestOperation; +import static com.cvent.utils.Exceptions.unchecked; + +import com.cvent.SDKConfiguration; +import com.cvent.SecuritySource; +import com.cvent.models.components.AccountUser; +import com.cvent.models.errors.APIException; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.GetAccountUserRequest; +import com.cvent.models.operations.GetAccountUserResponse; +import com.cvent.utils.AsyncRetries; +import com.cvent.utils.BackoffStrategy; +import com.cvent.utils.Blob; +import com.cvent.utils.HTTPClient; +import com.cvent.utils.HTTPRequest; +import com.cvent.utils.Headers; +import com.cvent.utils.Hook.AfterErrorContextImpl; +import com.cvent.utils.Hook.AfterSuccessContextImpl; +import com.cvent.utils.Hook.BeforeRequestContextImpl; +import com.cvent.utils.NonRetryableException; +import com.cvent.utils.Options; +import com.cvent.utils.Retries; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.function.Function; + +public class GetAccountUser { + + abstract static class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base(@Nonnull SDKConfiguration sdkConfiguration, @Nullable Options options, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers = _headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + Optional.ofNullable(options).ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("502", "503", "504"); + this.retryConfig = Optional.ofNullable(options) + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder() + .backoff(BackoffStrategy.builder() + .initialInterval(2000, TimeUnit.MILLISECONDS) + .maxInterval(16000, TimeUnit.MILLISECONDS) + .baseFactor((double) (2)) + .maxElapsedTime(40000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccountUser", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccountUser", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccountUser", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL(klass, this.baseUrl, "/users/{userId}", request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json").addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base implements RequestOperation { + public Sync(@Nonnull SDKConfiguration sdkConfiguration, @Nullable Options options, Headers _headers) { + super(sdkConfiguration, options, _headers); + } + + private HttpRequest onBuildRequest(GetAccountUserRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetAccountUserRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) + throws Exception { + return sdkConfiguration + .hooks() + .afterError(createAfterErrorContext(), Optional.ofNullable(response), Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetAccountUserRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "401", "403", "404", "429", "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + @Override + public GetAccountUserResponse handleResponse(HttpResponse response) { + String contentType = response.headers().firstValue("Content-Type").orElse("application/octet-stream"); + GetAccountUserResponse.Builder resBuilder = GetAccountUserResponse.builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetAccountUserResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountUser(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404", "429")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorResponse12.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + + public static class Async extends Base + implements AsyncRequestOperation< + GetAccountUserRequest, com.cvent.models.operations.async.GetAccountUserResponse> { + private final ScheduledExecutorService retryScheduler; + + public Async( + @Nonnull SDKConfiguration sdkConfiguration, + @Nullable Options options, + @Nullable ScheduledExecutorService retryScheduler, + Headers _headers) { + super(sdkConfiguration, options, _headers); + this.retryScheduler = retryScheduler; + } + + private CompletableFuture onBuildRequest(GetAccountUserRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetAccountUserRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetAccountUserRequest request) { + AsyncRetries retries = AsyncRetries.builder() + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .scheduler(retryScheduler) + .build(); + return retries.retry(() -> unchecked(() -> onBuildRequest(request)) + .get() + .thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "401", "403", "404", "429", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity())) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response.headers().firstValue("Content-Type").orElse("application/octet-stream"); + com.cvent.models.operations.async.GetAccountUserResponse.Builder resBuilder = + com.cvent.models.operations.async.GetAccountUserResponse.builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.cvent.models.operations.async.GetAccountUserResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withAccountUser); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404", "429")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return ErrorResponse12.fromAsync(response).thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/packages/java/src/main/java/com/cvent/operations/ListAccountUsers.java b/packages/java/src/main/java/com/cvent/operations/ListAccountUsers.java new file mode 100644 index 000000000..f2715d851 --- /dev/null +++ b/packages/java/src/main/java/com/cvent/operations/ListAccountUsers.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.cvent.operations; + +import static com.cvent.operations.Operations.AsyncRequestOperation; +import static com.cvent.operations.Operations.RequestOperation; +import static com.cvent.utils.Exceptions.unchecked; + +import com.cvent.SDKConfiguration; +import com.cvent.SecuritySource; +import com.cvent.models.components.AccountUsers; +import com.cvent.models.errors.APIException; +import com.cvent.models.errors.ErrorResponse12; +import com.cvent.models.operations.ListAccountUsersRequest; +import com.cvent.models.operations.ListAccountUsersResponse; +import com.cvent.utils.AsyncRetries; +import com.cvent.utils.BackoffStrategy; +import com.cvent.utils.Blob; +import com.cvent.utils.HTTPClient; +import com.cvent.utils.HTTPRequest; +import com.cvent.utils.Headers; +import com.cvent.utils.Hook.AfterErrorContextImpl; +import com.cvent.utils.Hook.AfterSuccessContextImpl; +import com.cvent.utils.Hook.BeforeRequestContextImpl; +import com.cvent.utils.NonRetryableException; +import com.cvent.utils.Options; +import com.cvent.utils.Retries; +import com.cvent.utils.RetryConfig; +import com.cvent.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.function.Function; + +public class ListAccountUsers { + + abstract static class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base(@Nonnull SDKConfiguration sdkConfiguration, @Nullable Options options, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers = _headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + Optional.ofNullable(options).ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("502", "503", "504"); + this.retryConfig = Optional.ofNullable(options) + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder() + .backoff(BackoffStrategy.builder() + .initialInterval(2000, TimeUnit.MILLISECONDS) + .maxInterval(16000, TimeUnit.MILLISECONDS) + .baseFactor((double) (2)) + .maxElapsedTime(40000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccountUsers", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccountUsers", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccountUsers", + java.util.Optional.of(java.util.List.of("account/users:read")), + securitySource()); + } + + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL(this.baseUrl, "/users"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json").addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams(klass, request, null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(@Nonnull SDKConfiguration sdkConfiguration, @Nullable Options options, Headers _headers) { + super(sdkConfiguration, options, _headers); + } + + private HttpRequest onBuildRequest(ListAccountUsersRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListAccountUsersRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) + throws Exception { + return sdkConfiguration + .hooks() + .afterError(createAfterErrorContext(), Optional.ofNullable(response), Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListAccountUsersRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "401", "403", "429", "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + @Override + public ListAccountUsersResponse handleResponse(HttpResponse response) { + String contentType = response.headers().firstValue("Content-Type").orElse("application/octet-stream"); + ListAccountUsersResponse.Builder resBuilder = ListAccountUsersResponse.builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListAccountUsersResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountUsers(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "429")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorResponse12.from(response); + } else { + throw APIException.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw APIException.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw APIException.from("API error occurred", response); + } + throw APIException.from("Unexpected status code received: " + response.statusCode(), response); + } + } + + public static class Async extends Base + implements AsyncRequestOperation< + ListAccountUsersRequest, com.cvent.models.operations.async.ListAccountUsersResponse> { + private final ScheduledExecutorService retryScheduler; + + public Async( + @Nonnull SDKConfiguration sdkConfiguration, + @Nullable Options options, + @Nullable ScheduledExecutorService retryScheduler, + Headers _headers) { + super(sdkConfiguration, options, _headers); + this.retryScheduler = retryScheduler; + } + + private CompletableFuture onBuildRequest(ListAccountUsersRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListAccountUsersRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListAccountUsersRequest request) { + AsyncRetries retries = AsyncRetries.builder() + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .scheduler(retryScheduler) + .build(); + return retries.retry(() -> unchecked(() -> onBuildRequest(request)) + .get() + .thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "401", "403", "429", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity())) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response.headers().firstValue("Content-Type").orElse("application/octet-stream"); + com.cvent.models.operations.async.ListAccountUsersResponse.Builder resBuilder = + com.cvent.models.operations.async.ListAccountUsersResponse.builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.cvent.models.operations.async.ListAccountUsersResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return Utils.unmarshalAsync(response, new TypeReference() {}) + .thenApply(res::withAccountUsers); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "429")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return ErrorResponse12.fromAsync(response).thenCompose(CompletableFuture::failedFuture); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/packages/typescript/.speakeasy/gen.lock b/packages/typescript/.speakeasy/gen.lock index 559a2f98e..ad12b3848 100644 --- a/packages/typescript/.speakeasy/gen.lock +++ b/packages/typescript/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: fd015893-3730-4721-bf8d-bb6d3730cc0f management: - docChecksum: 8e90e333b47f5f578a3170e752d227a7 + docChecksum: 1fd9ebcd59841afef8d06776d975d698 docVersion: ea speakeasyVersion: 1.752.0 generationVersion: 2.859.2 - releaseVersion: 1.6.4 - configChecksum: 682494b818aa6d3de79e4af9d9fbef6e + releaseVersion: 1.6.5 + configChecksum: c4c3b05b92e8720c54cda9fda3de72f2 repoURL: https://github.com/cvent/rest-sdks repoSubDirectory: packages/typescript published: true @@ -70,10 +70,26 @@ trackedFiles: id: d033096dae65 last_write_checksum: sha1:73a340e706ddf5d8572ca3d3a2e942a56c479c23 pristine_git_object: 9b66bf5f562cbe421026a27573149a4b93546b3c + docs/models/components/accountuser.md: + last_write_checksum: sha1:3516da51cc6139d0076dc55307030e8e96b17268 + docs/models/components/accountuseraddress.md: + last_write_checksum: sha1:ba46f69b9296fd617fb9c2522e829723f7c53e53 + docs/models/components/accountuserauditdetails.md: + last_write_checksum: sha1:3a968280dba590c3fc9e5b2c182531e303e78b98 + docs/models/components/accountusercontactdetails.md: + last_write_checksum: sha1:0e269e6b640ca478da287ff3b54123715a372fef + docs/models/components/accountusercustomfield.md: + last_write_checksum: sha1:bee4f0d543967f43824e69332fbd2c219cd5f505 + docs/models/components/accountusercustomfieldtype.md: + last_write_checksum: sha1:9a65a2ad69f2d746870b1bdb57b979e43d5cb76b docs/models/components/accountusergroup.md: last_write_checksum: sha1:f8b227ddac47ea5ed68cad33f6d18f352c8cc13c docs/models/components/accountusergroupinput.md: last_write_checksum: sha1:0d69da3e749d971c877c2748384a68a83c163aa4 + docs/models/components/accountuserrolereference.md: + last_write_checksum: sha1:5425b0f04fc7fc39c0eff95bb675456ea56e6cfd + docs/models/components/accountusers.md: + last_write_checksum: sha1:b69273c6ed9d8655018b96df6bdc73de171e15f4 docs/models/components/action.md: last_write_checksum: sha1:3836d3f8d3366b1a5c30fc23c0264988203fb68d docs/models/components/activityad.md: @@ -1614,6 +1630,8 @@ trackedFiles: id: a192cc49954e last_write_checksum: sha1:b4f4eb77b2963572badacb6c4db2b20faf4a4401 pristine_git_object: 70f6d670b885aa074b3dcabfb178fd6c78bbf36e + docs/models/components/emailverified.md: + last_write_checksum: sha1:8d0a0f937bd8bf5b44f76ee79e2e3661539909ec docs/models/components/encodingprofile.md: last_write_checksum: sha1:21614649b276b0315166a67258bf1318fe808c87 docs/models/components/entitytype1.md: @@ -4650,6 +4668,8 @@ trackedFiles: last_write_checksum: sha1:790c4449675e1d762645e5b3530c938dac8d71e9 docs/models/components/virtualcardreportingfieldandvalue.md: last_write_checksum: sha1:2aafdc3789957b710708e35313ff4c2c2a97eb8c + docs/models/components/visibilityaccess.md: + last_write_checksum: sha1:f6dcce21ebdc74193c868fc6cdeefaf4380d614f docs/models/components/volumediscountthresholdtype.md: last_write_checksum: sha1:66660737b943b61006b4f27992aac69f3fbdf155 docs/models/components/voucher.md: @@ -5166,6 +5186,8 @@ trackedFiles: id: ad4e07233a82 last_write_checksum: sha1:721d412b9fb0280a6b16e46cc115258c4530906f pristine_git_object: f179a07e4340e732bfa5465248269f4cfcca65a4 + docs/models/operations/getaccountuserrequest.md: + last_write_checksum: sha1:e6c1b9833030cd17e5fee7faa27ba41c02b3193d docs/models/operations/getaccountvendorsrequest.md: last_write_checksum: sha1:50c18fef54b0adb98c7ee45ca1c26e6f041f156b docs/models/operations/getaccountvendorsresponse.md: @@ -6020,6 +6042,10 @@ trackedFiles: id: f54a53ff2911 last_write_checksum: sha1:658f128c9b6e460d7fa6a895ead5cb1986db6977 pristine_git_object: 443eb819e1517585f4af0c09ec691628aa8e2a62 + docs/models/operations/listaccountusersrequest.md: + last_write_checksum: sha1:ad2e670090fc8c33945922ee42b5b49c1675a754 + docs/models/operations/listaccountusersresponse.md: + last_write_checksum: sha1:a63daa80b8cfdae676dfa3954e9f9f5c66838cfa docs/models/operations/listadmissionitemspostfiltersrequest.md: id: 15eabc8fa1e6 last_write_checksum: sha1:5cd409eeceb923acdd2f1cb4602d9f38eb694b5f @@ -7306,7 +7332,7 @@ trackedFiles: pristine_git_object: 24841f2b8a93f604b2688e667f11634be8fe4516 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:62b93ff03edcd76afbb2fc4d19d4ef11c607f928 + last_write_checksum: sha1:3e8b50321e74d3c1c575a36715ecef40906093d2 pristine_git_object: a293d7d4616c674a1638ca92576c21332309c022 docs/sdks/userscim/README.md: id: 50529a579425 @@ -7354,11 +7380,11 @@ trackedFiles: pristine_git_object: 80795a72645811f07559dbfd91e59131f127b3d4 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:ceee3ec3b82f17bd7bafc4b48cdc3bde8f40e567 + last_write_checksum: sha1:f2d760f53331d450c58c6360a5a5c98f2d0b0a73 pristine_git_object: 3f8c18265e80f8c46d349b3a7d92f1a61f1d2dc9 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:9d5ee7cef05efed1335adc6c51f13d2bcfafee01 + last_write_checksum: sha1:c4ad8a816872398dd0f21913bd1b57a73e43a709 pristine_git_object: 3474c00ef1d014883367c7bbeca6cbe6e330ca41 src/core.ts: id: f431fdbcd144 @@ -9048,6 +9074,8 @@ trackedFiles: id: 2aa554835952 last_write_checksum: sha1:f5e54fa9f505fd9f69163ce08f04fe8398918e5d pristine_git_object: ab98638b910500d2868025ac4e308209e521a9b0 + src/funcs/usersGetAccountUser.ts: + last_write_checksum: sha1:64cbd2d517468f882d440e08439e81254c6b5f92 src/funcs/usersGetAccountUserGroup.ts: id: 75e71bb83d7c last_write_checksum: sha1:2ab072390e4448783ec7cf01e3bbecedf06ca071 @@ -9056,6 +9084,8 @@ trackedFiles: id: 13817fab73e1 last_write_checksum: sha1:e4d7fc373a4060ea5d4366d2984f3ba3af7f680d pristine_git_object: 55bbeef79367708fff6b7c5a53a1a7b8f20de6df + src/funcs/usersListAccountUsers.ts: + last_write_checksum: sha1:788cc0019cc679bf1699051ed55a0411cdabe40a src/funcs/usersUpdateAccountUserGroup.ts: id: 60d707976a43 last_write_checksum: sha1:a90ce857a3c54dea30affca58e6ad00778b85a76 @@ -9218,7 +9248,7 @@ trackedFiles: pristine_git_object: f60ec7acd76141a71d78008c5a362eb0236d8335 src/hooks/oauth2scopes.ts: id: a709b8ce2ddb - last_write_checksum: sha1:15674a71cbfb6cbdc0152916c12ba69a578293ed + last_write_checksum: sha1:b0bec6532636c5fd71c88b7638c43043532ce903 pristine_git_object: 2833d1e6072486c630391f889efb521f5ff51a91 src/hooks/types.ts: id: 2a02d86ec24f @@ -9234,7 +9264,7 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:7b544923ac65ba24ce97b9e635b076250524899b + last_write_checksum: sha1:3be35bb99016b74eff3427660b4a1baed3ca0e62 pristine_git_object: 95847bcf50487c6ea615eb470cacdf861e9ba5e2 src/lib/dlv.ts: id: b1988214835a @@ -9302,10 +9332,24 @@ trackedFiles: id: 102c93b74be1 last_write_checksum: sha1:74364143448e9aecf1daf5b46cb6bb7c71a1e186 pristine_git_object: 62d822796b9435a6821cdb8a924c06e2f4d11a7d + src/models/components/accountuser.ts: + last_write_checksum: sha1:1112eafe9aa48d6b1058cb5d3ba33274a41556ae + src/models/components/accountuseraddress.ts: + last_write_checksum: sha1:fa8d3bba979476b6de0e790881243d36581d987e + src/models/components/accountuserauditdetails.ts: + last_write_checksum: sha1:eb4b809a2a606b80f1048e66cd5a7372b396f6d2 + src/models/components/accountusercontactdetails.ts: + last_write_checksum: sha1:ecf5b9989d2385ef1f4a5191cfd1b7a78a01311a + src/models/components/accountusercustomfield.ts: + last_write_checksum: sha1:3d63a81ef80e0a4ab5795a7e42b0836b874dd0b5 src/models/components/accountusergroup.ts: last_write_checksum: sha1:e89cb16f7e1b8410ce12565a5b3001e7c60752e3 src/models/components/accountusergroupinput.ts: last_write_checksum: sha1:acfc597dd29328f0e7b8c3757f9e1be145243ed3 + src/models/components/accountuserrolereference.ts: + last_write_checksum: sha1:a91de3e10cd8ad73779f6adfdb950b84087b47ff + src/models/components/accountusers.ts: + last_write_checksum: sha1:5b85b206cf31e10ff4fd9135b9a98ea15b04e419 src/models/components/activityad.ts: last_write_checksum: sha1:ef87760113e55d43f3dbc84c90dc96a3da5cfbd8 src/models/components/activityappointment.ts: @@ -11094,7 +11138,7 @@ trackedFiles: last_write_checksum: sha1:6e87482e44b3abe1c9faeac44e9a54832224a19f src/models/components/index.ts: id: 0aa842dce54d - last_write_checksum: sha1:d8f7c1e10fd215743ad9cdc51bfff849dc0788be + last_write_checksum: sha1:952b346a69f87e89a8d7635417f0d07359a42a10 pristine_git_object: 1636a9903e66817622b1ea5a59afd4c1913879a5 src/models/components/industry1.ts: last_write_checksum: sha1:7fb959e90a20eb113fe328f20182355ca618f930 @@ -12594,6 +12638,8 @@ trackedFiles: last_write_checksum: sha1:689384ec218518235b99182951410bd22f987670 src/models/components/virtualcardreportingfieldandvalue.ts: last_write_checksum: sha1:253132ce66da7e3374b75362e57e68e46963827f + src/models/components/visibilityaccess.ts: + last_write_checksum: sha1:3286803045db41514dab15e7a02c120b0f210784 src/models/components/volumediscountthresholdtype.ts: last_write_checksum: sha1:2374d13e775e1f814a04ed8a98f1416798411980 src/models/components/voucher.ts: @@ -13080,6 +13126,8 @@ trackedFiles: last_write_checksum: sha1:a48a90160dd084922ebf103db33a89a0dc529589 src/models/operations/getaccounttransactions.ts: last_write_checksum: sha1:8ba2877779d55d52d6779939d44425d9cddd8445 + src/models/operations/getaccountuser.ts: + last_write_checksum: sha1:edb7f3b220bd6efcc018d571ec262b6d2072b1b5 src/models/operations/getaccountusergroup.ts: id: 4aef9cc47e84 last_write_checksum: sha1:33536400c1ae96f270a7ec090a92d16ea0e9909d @@ -13672,7 +13720,7 @@ trackedFiles: pristine_git_object: d6b13780a2a4052c16b56f17ccb2e26c3e53ead0 src/models/operations/index.ts: id: 0d9ffaf774d2 - last_write_checksum: sha1:9a39a1a349b0ae28164ebf58fc7ba2a6d5829337 + last_write_checksum: sha1:1c9542ed0cf34672edc4a55d64cf36224ae7714f pristine_git_object: d6029218a80f5414ff9998b5ebd1d283ca45ea4e src/models/operations/launcheventfeatures.ts: id: 1b0201a14151 @@ -13686,6 +13734,8 @@ trackedFiles: id: e612cc71b91a last_write_checksum: sha1:b399f3f3eca8a7b33a383766452a188e760c4a08 pristine_git_object: bc92d2e63e786c084eaf62c7e5d0473a4ba78b47 + src/models/operations/listaccountusers.ts: + last_write_checksum: sha1:6a892a2d8a1b4321b3c75d85a3d3c9410b88a620 src/models/operations/listadmissionitems.ts: id: b5a8f70b300a last_write_checksum: sha1:bdea1b8e235634aa98d04280d6aadc7172ceba4b @@ -14600,7 +14650,7 @@ trackedFiles: pristine_git_object: 79a619c28111e9871cc5c7fb077fc008c863dacf src/sdk/users.ts: id: 2df5828eed03 - last_write_checksum: sha1:40e1a5646bb37e0c13beb3bc8d4bedc7a8a50da7 + last_write_checksum: sha1:f68ebeb9a9dd0583b7e7384f955eb6e0286e10b9 pristine_git_object: 5e81da607a752d8eb427fb478403d4cde5ef66bf src/sdk/userscim.ts: id: baeb7ecc7592 @@ -20753,6 +20803,77 @@ examples: responses: "401": application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + listAccountUsers: + role: + parameters: + query: + filter: "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + active: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + created: + parameters: + query: + filter: "audit.created ge '2026-01-01T00:00:00.000Z'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + combined: + parameters: + query: + filter: "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + speakeasy-default-list-account-users: + parameters: + query: + filter: "active eq 'true'" + limit: 100 + token: "1a2b3c4d5e6f7g8h9i10j11k" + sort: "username DESC" + responses: + "200": + application/json: {"paging": {"previousToken": "1a2b3c4d5e6f7g8h9i10j11k", "nextToken": "1a2b3c4d5e6f7g8h9i10j11k", "currentToken": "1a2b3c4d5e6f7g8h9i10j11k", "limit": 100, "totalCount": 2, "_links": {"next": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "self": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}, "prev": {"href": "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}}, "data": [{"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": ["RFI"], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + "400": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} + getAccountUser: + speakeasy-default-get-account-user: + parameters: + path: + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c" + responses: + "200": + application/json: {"id": "501fbc6a-cfd4-468f-a2f7-14e521d33c71", "platformUserId": "00ad83olslLwIeKcW1m8", "username": "jsmith@example.com", "federatedSsoLoginName": "jsmith@example.com", "contact": {"honorificPrefix": "Mr.", "firstName": "Jack", "middleName": "John", "lastName": "Tripper", "title": "Senior Software Engineer", "organization": "Cvent", "email": "jack.tripper@example.com", "homePhone": "+17035551234", "homeFax": "+17035551234", "mobilePhone": "+17035551234", "workPhone": "+17035551234", "workFax": "+17035551234", "pager": "+17035551234", "address": {"address1": "1765 Greensboro Station Pl", "address2": "7th Floor", "address3": "", "city": "McLean", "countryCode": "US", "regionCode": "VA", "postalCode": "22102"}}, "locale": "en-US", "timezone": "America/New_York", "active": false, "usernameVerified": true, "emailVerified": "VERIFIED", "lockedOut": false, "termsOfUseAccepted": true, "failedLoginCount": 1, "markDocumentsAsInternal": false, "visibilityAccess": [], "audit": {"created": "2017-01-02T02:00:00Z", "createdBy": "hporter", "lastModified": "2019-02-12T03:00:00Z", "lastModifiedBy": "hporter", "lockedOutDate": "2017-01-02T02:00:00Z", "termsOfUseAcceptedDate": "2017-01-02T02:00:00Z", "lastLoginDate": "2017-01-02T02:00:00Z", "passwordLastModifiedDate": "2017-01-02T02:00:00Z"}, "customFields": [{"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "What is your favorite color?", "type": "Choice - Multiple Answers", "values": ["Choice C", "Choice A"], "order": 1}], "role": {"id": "946505f6-6b29-421a-bda2-0815fcdea73c"}} + "401": + application/json: {"code": 400, "message": "Bad Request", "target": "example target", "details": [{"code": 400, "message": "Bad Request", "target": "example target"}]} examplesVersion: 1.0.2 generatedTests: getAccountUserGroups: "2025-12-09T16:06:19-06:00" @@ -21188,3 +21309,9 @@ generatedTests: updateVenueAttraction: "2026-10-13T09:36:58-03:00" associateAttractionImage: "2026-10-13T09:36:58-03:00" getAttractionImages: "2026-10-13T09:36:58-03:00" + listAccountUsers-role: "2026-10-15T14:32:14-04:00" + listAccountUsers-active: "2026-10-15T14:32:14-04:00" + listAccountUsers-created: "2026-10-15T14:32:14-04:00" + listAccountUsers-combined: "2026-10-15T14:32:14-04:00" + listAccountUsers: "2026-10-15T14:32:14-04:00" + getAccountUser: "2026-10-15T14:32:14-04:00" diff --git a/packages/typescript/.speakeasy/gen.yaml b/packages/typescript/.speakeasy/gen.yaml index d2fe3a303..8806c0620 100644 --- a/packages/typescript/.speakeasy/gen.yaml +++ b/packages/typescript/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 1.6.4 + version: 1.6.5 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/packages/typescript/.speakeasy/tests.arazzo.yaml b/packages/typescript/.speakeasy/tests.arazzo.yaml index a59a7cacc..e0b6c3ed0 100644 --- a/packages/typescript/.speakeasy/tests.arazzo.yaml +++ b/packages/typescript/.speakeasy/tests.arazzo.yaml @@ -12058,3 +12058,150 @@ workflows: type: simple x-speakeasy-test-group: Venue Content x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-role + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-active + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-created + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: audit.created ge '2026-01-01T00:00:00.000Z' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers-combined + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true') + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: listAccountUsers + steps: + - stepId: test + operationId: listAccountUsers + parameters: + - name: filter + in: query + value: active eq 'true' + - name: limit + in: query + value: 100 + - name: token + in: query + value: 1a2b3c4d5e6f7g8h9i10j11k + - name: sort + in: query + value: username DESC + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"paging":{"previousToken":"1a2b3c4d5e6f7g8h9i10j11k","nextToken":"1a2b3c4d5e6f7g8h9i10j11k","currentToken":"1a2b3c4d5e6f7g8h9i10j11k","limit":100,"totalCount":2,"_links":{"next":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"self":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"},"prev":{"href":"?token=90c5f062-76ad-4ea4-aa53-00eb698d9262"}}},"data":[{"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":["RFI"],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}}]} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true + - workflowId: getAccountUser + steps: + - stepId: test + operationId: getAccountUser + parameters: + - name: userId + in: path + value: ff8af134-3505-4d67-aaea-1975d8e1327c + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + {"id":"501fbc6a-cfd4-468f-a2f7-14e521d33c71","platformUserId":"00ad83olslLwIeKcW1m8","username":"jsmith@example.com","federatedSsoLoginName":"jsmith@example.com","contact":{"honorificPrefix":"Mr.","firstName":"Jack","middleName":"John","lastName":"Tripper","title":"Senior Software Engineer","organization":"Cvent","email":"jack.tripper@example.com","homePhone":"+17035551234","homeFax":"+17035551234","mobilePhone":"+17035551234","workPhone":"+17035551234","workFax":"+17035551234","pager":"+17035551234","address":{"address1":"1765 Greensboro Station Pl","address2":"7th Floor","address3":"","city":"McLean","countryCode":"US","regionCode":"VA","postalCode":"22102"}},"locale":"en-US","timezone":"America/New_York","active":false,"usernameVerified":true,"emailVerified":"VERIFIED","lockedOut":false,"termsOfUseAccepted":true,"failedLoginCount":1,"markDocumentsAsInternal":false,"visibilityAccess":[],"audit":{"created":"2017-01-02T02:00:00Z","createdBy":"hporter","lastModified":"2019-02-12T03:00:00Z","lastModifiedBy":"hporter","lockedOutDate":"2017-01-02T02:00:00Z","termsOfUseAcceptedDate":"2017-01-02T02:00:00Z","lastLoginDate":"2017-01-02T02:00:00Z","passwordLastModifiedDate":"2017-01-02T02:00:00Z"},"customFields":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","name":"What is your favorite color?","type":"Choice - Multiple Answers","values":["Choice C","Choice A"],"order":1}],"role":{"id":"946505f6-6b29-421a-bda2-0815fcdea73c"}} + type: simple + x-speakeasy-test-group: Users + x-speakeasy-test-rebuild: true diff --git a/packages/typescript/README.md b/packages/typescript/README.md index 1bf19c24f..bbd175353 100644 --- a/packages/typescript/README.md +++ b/packages/typescript/README.md @@ -786,6 +786,8 @@ run(); * [deleteAccountUserGroup](docs/sdks/users/README.md#deleteaccountusergroup) - Delete Account User Group * [addUserToAccountUserGroup](docs/sdks/users/README.md#addusertoaccountusergroup) - Associate User to Group * [deleteUserFromAccountUserGroup](docs/sdks/users/README.md#deleteuserfromaccountusergroup) - Delete User from Group +* [listAccountUsers](docs/sdks/users/README.md#listaccountusers) - List Account Users +* [getAccountUser](docs/sdks/users/README.md#getaccountuser) - Get Account User ### [VenueAvailability](docs/sdks/venueavailability/README.md) @@ -1318,8 +1320,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`usersCreateAccountUserGroup`](docs/sdks/users/README.md#createaccountusergroup) - Create Account User Group - [`usersDeleteAccountUserGroup`](docs/sdks/users/README.md#deleteaccountusergroup) - Delete Account User Group - [`usersDeleteUserFromAccountUserGroup`](docs/sdks/users/README.md#deleteuserfromaccountusergroup) - Delete User from Group +- [`usersGetAccountUser`](docs/sdks/users/README.md#getaccountuser) - Get Account User - [`usersGetAccountUserGroup`](docs/sdks/users/README.md#getaccountusergroup) - Get Account User Group - [`usersGetAccountUserGroups`](docs/sdks/users/README.md#getaccountusergroups) - List Account User Groups +- [`usersListAccountUsers`](docs/sdks/users/README.md#listaccountusers) - List Account Users - [`usersUpdateAccountUserGroup`](docs/sdks/users/README.md#updateaccountusergroup) - Update Account User Group - [`venueAvailabilityCreateVenueNeedDate`](docs/sdks/venueavailability/README.md#createvenueneeddate) - Create Venue Need Date - [`venueAvailabilityDeleteVenueNeedDate`](docs/sdks/venueavailability/README.md#deletevenueneeddate) - Delete Venue Need Date @@ -1634,10 +1638,10 @@ run(); **Inherit from [`CventSDKError`](./src/models/errors/cventsdkerror.ts)**: -* [`ErrorResponse`](./src/models/errors/errorresponse.ts): Represents an error response with additional details of cascading error messages. Applicable to 18 of 497 methods.* -* [`ErrorResponse17`](./src/models/errors/errorresponse17.ts): The error response. Applicable to 11 of 497 methods.* -* [`SegmentsErrorResponse`](./src/models/errors/segmentserrorresponse.ts): Segments error response details. Status code `400`. Applicable to 2 of 497 methods.* -* [`Oauth2TokenPostResponse0Error`](./src/models/errors/oauth2tokenpostresponse0error.ts): A bad token response. Status code `400`. Applicable to 1 of 497 methods.* +* [`ErrorResponse`](./src/models/errors/errorresponse.ts): Represents an error response with additional details of cascading error messages. Applicable to 18 of 499 methods.* +* [`ErrorResponse17`](./src/models/errors/errorresponse17.ts): The error response. Applicable to 11 of 499 methods.* +* [`SegmentsErrorResponse`](./src/models/errors/segmentserrorresponse.ts): Segments error response details. Status code `400`. Applicable to 2 of 499 methods.* +* [`Oauth2TokenPostResponse0Error`](./src/models/errors/oauth2tokenpostresponse0error.ts): A bad token response. Status code `400`. Applicable to 1 of 499 methods.* * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. diff --git a/packages/typescript/docs/models/components/accountuser.md b/packages/typescript/docs/models/components/accountuser.md new file mode 100644 index 000000000..634823166 --- /dev/null +++ b/packages/typescript/docs/models/components/accountuser.md @@ -0,0 +1,97 @@ +# AccountUser + +Represents a Cvent core account user. + +## Example Usage + +```typescript +import { AccountUser } from "@cvent/sdk/models/components"; + +let value: AccountUser = { + id: "501fbc6a-cfd4-468f-a2f7-14e521d33c71", + platformUserId: "00ad83olslLwIeKcW1m8", + username: "jsmith@example.com", + federatedSsoLoginName: "jsmith@example.com", + contact: { + honorificPrefix: "Mr.", + firstName: "Jack", + middleName: "John", + lastName: "Tripper", + title: "Senior Software Engineer", + organization: "Cvent", + email: "jack.tripper@example.com", + homePhone: "+17035551234", + homeFax: "+17035551234", + mobilePhone: "+17035551234", + workPhone: "+17035551234", + workFax: "+17035551234", + pager: "+17035551234", + address: { + address1: "1765 Greensboro Station Pl", + address2: "7th Floor", + address3: "", + city: "McLean", + countryCode: "US", + regionCode: "VA", + postalCode: "22102", + }, + }, + locale: "en-US", + timezone: "America/New_York", + active: false, + usernameVerified: true, + emailVerified: "VERIFIED", + lockedOut: false, + termsOfUseAccepted: true, + failedLoginCount: 1, + visibilityAccess: [], + audit: { + created: new Date("2017-01-02T02:00:00Z"), + createdBy: "hporter", + lastModified: new Date("2019-02-12T03:00:00Z"), + lastModifiedBy: "hporter", + lockedOutDate: new Date("2017-01-02T02:00:00Z"), + termsOfUseAcceptedDate: new Date("2017-01-02T02:00:00Z"), + lastLoginDate: new Date("2017-01-02T02:00:00Z"), + passwordLastModifiedDate: new Date("2017-01-02T02:00:00Z"), + }, + customFields: [ + { + id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890", + name: "What is your favorite color?", + type: "Choice - Multiple Answers", + values: [ + "Choice C", + "Choice A", + ], + order: 1, + }, + ], + role: { + id: "946505f6-6b29-421a-bda2-0815fcdea73c", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The identifier of the Account User. | 501fbc6a-cfd4-468f-a2f7-14e521d33c71 | +| `platformUserId` | *string* | :heavy_minus_sign: | The account user's platform identifier. | 00ad83olslLwIeKcW1m8 | +| `username` | *string* | :heavy_check_mark: | The account user's username used to log into the account. | jsmith@example.com | +| `federatedSsoLoginName` | *string* | :heavy_minus_sign: | The account user's federated SSO login name. | jsmith@example.com | +| `contact` | [components.AccountUserContactDetails](../../models/components/accountusercontactdetails.md) | :heavy_check_mark: | The contact details of a Cvent core account user. | | +| `locale` | *string* | :heavy_check_mark: | Locale code | en-US | +| `timezone` | *string* | :heavy_check_mark: | The IANA timezone of the user. | America/New_York | +| `active` | *boolean* | :heavy_check_mark: | True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. | false | +| `usernameVerified` | *boolean* | :heavy_check_mark: | True indicates the account user's username has been verified. | true | +| `emailVerified` | [components.EmailVerified](../../models/components/emailverified.md) | :heavy_check_mark: | The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. | VERIFIED | +| `lockedOut` | *boolean* | :heavy_check_mark: | True indicates the account user is locked. | false | +| `termsOfUseAccepted` | *boolean* | :heavy_check_mark: | True indicates the account user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | true | +| `failedLoginCount` | *number* | :heavy_check_mark: | The number of failed login attempts. | 1 | +| `markDocumentsAsInternal` | *boolean* | :heavy_minus_sign: | True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. | | +| `visibilityAccess` | [components.VisibilityAccess](../../models/components/visibilityaccess.md)[] | :heavy_check_mark: | The visibility access of the user.

`DOCUMENT` - The user has the ability to view all documents uploaded within their account.

`EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account.

`EVENT` - The user has the ability to view all Events within their account.

`MEETING_REQUEST` - The user has the ability to view all meeting requests within their account.

`RFI` - The user has the ability to view all RFIs within their account.

`RFP` - The user has the ability to view all RFPs within their account.

`SURVEY` - The user has the ability to view all Surveys within their account. | | +| `audit` | [components.AccountUserAuditDetails](../../models/components/accountuserauditdetails.md) | :heavy_check_mark: | The audit details of a Cvent core account user. | | +| `customFields` | [components.AccountUserCustomField](../../models/components/accountusercustomfield.md)[] | :heavy_minus_sign: | The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). | [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "What is your favorite color?",
"type": "Choice - Multiple Answers",
"values": [
"Choice C",
"Choice A"
],
"order": 1
}
] | +| `role` | [components.AccountUserRoleReference](../../models/components/accountuserrolereference.md) | :heavy_check_mark: | A model used to reference a Cvent core account user role by its ID. | | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountuseraddress.md b/packages/typescript/docs/models/components/accountuseraddress.md new file mode 100644 index 000000000..9c4ab0121 --- /dev/null +++ b/packages/typescript/docs/models/components/accountuseraddress.md @@ -0,0 +1,31 @@ +# AccountUserAddress + +Represents the address of a Cvent core account user. + +## Example Usage + +```typescript +import { AccountUserAddress } from "@cvent/sdk/models/components"; + +let value: AccountUserAddress = { + address1: "1765 Greensboro Station Pl", + address2: "7th Floor", + address3: "", + city: "McLean", + countryCode: "US", + regionCode: "VA", + postalCode: "22102", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `address1` | *string* | :heavy_minus_sign: | First address line. | 1765 Greensboro Station Pl | +| `address2` | *string* | :heavy_minus_sign: | Second address line. | 7th Floor | +| `address3` | *string* | :heavy_minus_sign: | Third address line. | | +| `city` | *string* | :heavy_minus_sign: | Address city. | McLean | +| `countryCode` | *string* | :heavy_minus_sign: | The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. | US | +| `regionCode` | *string* | :heavy_minus_sign: | The region, province, or state code. Visit [Cvent's Region Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. | VA | +| `postalCode` | *string* | :heavy_minus_sign: | Address postal code. | 22102 | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountuserauditdetails.md b/packages/typescript/docs/models/components/accountuserauditdetails.md new file mode 100644 index 000000000..cabbb0717 --- /dev/null +++ b/packages/typescript/docs/models/components/accountuserauditdetails.md @@ -0,0 +1,33 @@ +# AccountUserAuditDetails + +The audit details of a Cvent core account user. + +## Example Usage + +```typescript +import { AccountUserAuditDetails } from "@cvent/sdk/models/components"; + +let value: AccountUserAuditDetails = { + created: new Date("2017-01-02T02:00:00Z"), + createdBy: "hporter", + lastModified: new Date("2019-02-12T03:00:00Z"), + lastModifiedBy: "hporter", + lockedOutDate: new Date("2017-01-02T02:00:00Z"), + termsOfUseAcceptedDate: new Date("2017-01-02T02:00:00Z"), + lastLoginDate: new Date("2017-01-02T02:00:00Z"), + passwordLastModifiedDate: new Date("2017-01-02T02:00:00Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `created` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was created. | 2017-01-02T02:00:00Z | +| `createdBy` | *string* | :heavy_check_mark: | The identifier of the user that created this record. | hporter | +| `lastModified` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when this record was updated. | 2019-02-12T03:00:00Z | +| `lastModifiedBy` | *string* | :heavy_check_mark: | The identifier of the user that last updated this record. | hporter | +| `lockedOutDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when the user was locked out. | 2017-01-02T02:00:00Z | +| `termsOfUseAcceptedDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). | 2017-01-02T02:00:00Z | +| `lastLoginDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when the user last logged in. | 2017-01-02T02:00:00Z | +| `passwordLastModifiedDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The ISO 8601 zoned date time when the user's password was last modified. | 2017-01-02T02:00:00Z | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountusercontactdetails.md b/packages/typescript/docs/models/components/accountusercontactdetails.md new file mode 100644 index 000000000..6ee0791e5 --- /dev/null +++ b/packages/typescript/docs/models/components/accountusercontactdetails.md @@ -0,0 +1,53 @@ +# AccountUserContactDetails + +The contact details of a Cvent core account user. + +## Example Usage + +```typescript +import { AccountUserContactDetails } from "@cvent/sdk/models/components"; + +let value: AccountUserContactDetails = { + honorificPrefix: "Mr.", + firstName: "Jack", + middleName: "John", + lastName: "Tripper", + title: "Senior Software Engineer", + organization: "Cvent", + email: "jack.tripper@example.com", + homePhone: "+17035551234", + homeFax: "+17035551234", + mobilePhone: "+17035551234", + workPhone: "+17035551234", + workFax: "+17035551234", + pager: "+17035551234", + address: { + address1: "1765 Greensboro Station Pl", + address2: "7th Floor", + address3: "", + city: "McLean", + countryCode: "US", + regionCode: "VA", + postalCode: "22102", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `honorificPrefix` | *string* | :heavy_minus_sign: | Honorific prefix to use before users name. | Mr. | +| `firstName` | *string* | :heavy_check_mark: | User's first name. | Jack | +| `middleName` | *string* | :heavy_minus_sign: | User's middle name. | John | +| `lastName` | *string* | :heavy_check_mark: | User's last name. | Tripper | +| `title` | *string* | :heavy_minus_sign: | Position held by the current user. | Senior Software Engineer | +| `organization` | *string* | :heavy_minus_sign: | Organization in which the user is employed. | Cvent | +| `email` | *string* | :heavy_check_mark: | User associated email. | jack.tripper@example.com | +| `homePhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `homeFax` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `mobilePhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `workPhone` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `workFax` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `pager` | *string* | :heavy_minus_sign: | Phone number associated to given user. | +17035551234 | +| `address` | [components.AccountUserAddress](../../models/components/accountuseraddress.md) | :heavy_minus_sign: | Represents the address of a Cvent core account user. | | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountusercustomfield.md b/packages/typescript/docs/models/components/accountusercustomfield.md new file mode 100644 index 000000000..7c1540779 --- /dev/null +++ b/packages/typescript/docs/models/components/accountusercustomfield.md @@ -0,0 +1,30 @@ +# AccountUserCustomField + +Represents an account user's answer to a custom field. + +## Example Usage + +```typescript +import { AccountUserCustomField } from "@cvent/sdk/models/components"; + +let value: AccountUserCustomField = { + id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890", + name: "What is your favorite color?", + type: "Choice - Single Answer", + values: [ + "Choice C", + "Choice A", + ], + order: 1, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The unique ID representing this custom field. | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | +| `name` | *string* | :heavy_minus_sign: | The actual text of the custom field. | What is your favorite color? | +| `type` | [components.AccountUserCustomFieldType](../../models/components/accountusercustomfieldtype.md) | :heavy_minus_sign: | The type of data collected by this custom field. | Choice - Single Answer | +| `values` | *string*[] | :heavy_check_mark: | The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. | [
"Choice C",
"Choice A"
] | +| `order` | *number* | :heavy_minus_sign: | The order of this custom field relative to other custom fields. | 1 | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountusercustomfieldtype.md b/packages/typescript/docs/models/components/accountusercustomfieldtype.md new file mode 100644 index 000000000..24fff6102 --- /dev/null +++ b/packages/typescript/docs/models/components/accountusercustomfieldtype.md @@ -0,0 +1,17 @@ +# AccountUserCustomFieldType + +The type of data collected by this custom field. + +## Example Usage + +```typescript +import { AccountUserCustomFieldType } from "@cvent/sdk/models/components"; + +let value: AccountUserCustomFieldType = "Choice - Single Answer"; +``` + +## Values + +```typescript +"Open Ended Text - Date/Time" | "Open Ended Text - One Line" | "Open Ended Text - Comment Box" | "Choice - Single Answer" | "Choice - Multiple Answers" | "Auto-Increment" +``` \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountuserrolereference.md b/packages/typescript/docs/models/components/accountuserrolereference.md new file mode 100644 index 000000000..53656f129 --- /dev/null +++ b/packages/typescript/docs/models/components/accountuserrolereference.md @@ -0,0 +1,19 @@ +# AccountUserRoleReference + +A model used to reference a Cvent core account user role by its ID. + +## Example Usage + +```typescript +import { AccountUserRoleReference } from "@cvent/sdk/models/components"; + +let value: AccountUserRoleReference = { + id: "946505f6-6b29-421a-bda2-0815fcdea73c", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | Represents the unique ID of an account user role. | 946505f6-6b29-421a-bda2-0815fcdea73c | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/accountusers.md b/packages/typescript/docs/models/components/accountusers.md new file mode 100644 index 000000000..3f0549b9f --- /dev/null +++ b/packages/typescript/docs/models/components/accountusers.md @@ -0,0 +1,103 @@ +# AccountUsers + +A paginated result for a list of account users. + +## Example Usage + +```typescript +import { AccountUsers } from "@cvent/sdk/models/components"; + +let value: AccountUsers = { + paging: { + previousToken: "1a2b3c4d5e6f7g8h9i10j11k", + nextToken: "1a2b3c4d5e6f7g8h9i10j11k", + currentToken: "1a2b3c4d5e6f7g8h9i10j11k", + limit: 100, + totalCount: 2, + links: { + next: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + self: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + prev: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + }, + }, + data: [ + { + id: "501fbc6a-cfd4-468f-a2f7-14e521d33c71", + platformUserId: "00ad83olslLwIeKcW1m8", + username: "jsmith@example.com", + federatedSsoLoginName: "jsmith@example.com", + contact: { + honorificPrefix: "Mr.", + firstName: "Jack", + middleName: "John", + lastName: "Tripper", + title: "Senior Software Engineer", + organization: "Cvent", + email: "jack.tripper@example.com", + homePhone: "+17035551234", + homeFax: "+17035551234", + mobilePhone: "+17035551234", + workPhone: "+17035551234", + workFax: "+17035551234", + pager: "+17035551234", + address: { + address1: "1765 Greensboro Station Pl", + address2: "7th Floor", + address3: "", + city: "McLean", + countryCode: "US", + regionCode: "VA", + postalCode: "22102", + }, + }, + locale: "en-US", + timezone: "America/New_York", + active: false, + usernameVerified: true, + emailVerified: "VERIFIED", + lockedOut: false, + termsOfUseAccepted: true, + failedLoginCount: 1, + visibilityAccess: [], + audit: { + created: new Date("2017-01-02T02:00:00Z"), + createdBy: "hporter", + lastModified: new Date("2019-02-12T03:00:00Z"), + lastModifiedBy: "hporter", + lockedOutDate: new Date("2017-01-02T02:00:00Z"), + termsOfUseAcceptedDate: new Date("2017-01-02T02:00:00Z"), + lastLoginDate: new Date("2017-01-02T02:00:00Z"), + passwordLastModifiedDate: new Date("2017-01-02T02:00:00Z"), + }, + customFields: [ + { + id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890", + name: "What is your favorite color?", + type: "Choice - Multiple Answers", + values: [ + "Choice C", + "Choice A", + ], + order: 1, + }, + ], + role: { + id: "946505f6-6b29-421a-bda2-0815fcdea73c", + }, + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `paging` | [components.Paging](../../models/components/paging.md) | :heavy_check_mark: | Represents pagination information for a collection of resources. | +| `data` | [components.AccountUser](../../models/components/accountuser.md)[] | :heavy_check_mark: | The list of Account Users retrieved for the specified page. | \ No newline at end of file diff --git a/packages/typescript/docs/models/components/emailverified.md b/packages/typescript/docs/models/components/emailverified.md new file mode 100644 index 000000000..553b4808e --- /dev/null +++ b/packages/typescript/docs/models/components/emailverified.md @@ -0,0 +1,17 @@ +# EmailVerified + +The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + +## Example Usage + +```typescript +import { EmailVerified } from "@cvent/sdk/models/components"; + +let value: EmailVerified = "VERIFIED"; +``` + +## Values + +```typescript +"UNVERIFIED" | "VERIFIED" | "UNVERIFIED_BLOCK_LOGIN" +``` \ No newline at end of file diff --git a/packages/typescript/docs/models/components/visibilityaccess.md b/packages/typescript/docs/models/components/visibilityaccess.md new file mode 100644 index 000000000..643ce673d --- /dev/null +++ b/packages/typescript/docs/models/components/visibilityaccess.md @@ -0,0 +1,31 @@ +# VisibilityAccess + +Enumerated type to outline what the user has access to. + + `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + + `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + + `EVENT` - The user has the ability to view all Events within their account. + + `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + + `RFI` - The user has the ability to view all RFIs within their account. + + `RFP` - The user has the ability to view all RFPs within their account. + + `SURVEY` - The user has the ability to view all Surveys within their account. + +## Example Usage + +```typescript +import { VisibilityAccess } from "@cvent/sdk/models/components"; + +let value: VisibilityAccess = "EVENT"; +``` + +## Values + +```typescript +"DOCUMENT" | "EMARKETING_CAMPAIGN" | "EVENT" | "MEETING_REQUEST" | "RFI" | "RFP" | "SURVEY" +``` \ No newline at end of file diff --git a/packages/typescript/docs/models/operations/getaccountuserrequest.md b/packages/typescript/docs/models/operations/getaccountuserrequest.md new file mode 100644 index 000000000..58bf487a9 --- /dev/null +++ b/packages/typescript/docs/models/operations/getaccountuserrequest.md @@ -0,0 +1,17 @@ +# GetAccountUserRequest + +## Example Usage + +```typescript +import { GetAccountUserRequest } from "@cvent/sdk/models/operations"; + +let value: GetAccountUserRequest = { + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `userId` | *string* | :heavy_check_mark: | The Account User's Id.
| ff8af134-3505-4d67-aaea-1975d8e1327c | \ No newline at end of file diff --git a/packages/typescript/docs/models/operations/listaccountusersrequest.md b/packages/typescript/docs/models/operations/listaccountusersrequest.md new file mode 100644 index 000000000..bb90a3892 --- /dev/null +++ b/packages/typescript/docs/models/operations/listaccountusersrequest.md @@ -0,0 +1,22 @@ +# ListAccountUsersRequest + +## Example Usage + +```typescript +import { ListAccountUsersRequest } from "@cvent/sdk/models/operations"; + +let value: ListAccountUsersRequest = { + filter: "active eq 'true'", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filter` | *string* | :heavy_minus_sign: | A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses.

Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter.

## Supported Account Users Filters:

\| Field Path \| Operators \|
\|--------------------\|---------------------------------------------\|
\| role.id \| `in`, `eq`, `ne` \|
\| id \| `in`, `eq`, `ne` \|
\| active \| `eq`, `ne` \|
\| lockedOut \| `eq`, `ne` \|
\| audit.created \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
\| audit.lastModified \| `eq`, `ne`, `lt`, `gt`, `le`, `ge` \|
| active eq 'true' | +| `limit` | *number* | :heavy_minus_sign: | The maximum number of records to return per page. | 100 | +| `token` | *string* | :heavy_minus_sign: | The pagination token returned from a previous call.
This will override any other pageable parameters provided.
| 1a2b3c4d5e6f7g8h9i10j11k | +| `sort` | *string* | :heavy_minus_sign: | Sorts items in the list of results.

There are two orders:
- ascending: ASC
- descending: DESC

The following fields are sortable:
- username
| username DESC | \ No newline at end of file diff --git a/packages/typescript/docs/models/operations/listaccountusersresponse.md b/packages/typescript/docs/models/operations/listaccountusersresponse.md new file mode 100644 index 000000000..1d3445855 --- /dev/null +++ b/packages/typescript/docs/models/operations/listaccountusersresponse.md @@ -0,0 +1,37 @@ +# ListAccountUsersResponse + +## Example Usage + +```typescript +import { ListAccountUsersResponse } from "@cvent/sdk/models/operations"; + +let value: ListAccountUsersResponse = { + result: { + paging: { + previousToken: "1a2b3c4d5e6f7g8h9i10j11k", + nextToken: "1a2b3c4d5e6f7g8h9i10j11k", + currentToken: "1a2b3c4d5e6f7g8h9i10j11k", + limit: 100, + totalCount: 2, + links: { + next: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + self: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + prev: { + href: "?token=90c5f062-76ad-4ea4-aa53-00eb698d9262", + }, + }, + }, + data: [], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `result` | [components.AccountUsers](../../models/components/accountusers.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/packages/typescript/docs/sdks/users/README.md b/packages/typescript/docs/sdks/users/README.md index 139013fe6..a05d57a6f 100644 --- a/packages/typescript/docs/sdks/users/README.md +++ b/packages/typescript/docs/sdks/users/README.md @@ -13,6 +13,8 @@ Operations for managing account users and user groups, including creation, retri * [deleteAccountUserGroup](#deleteaccountusergroup) - Delete Account User Group * [addUserToAccountUserGroup](#addusertoaccountusergroup) - Associate User to Group * [deleteUserFromAccountUserGroup](#deleteuserfromaccountusergroup) - Delete User from Group +* [listAccountUsers](#listaccountusers) - List Account Users +* [getAccountUser](#getaccountuser) - Get Account User ## getAccountUserGroups @@ -649,4 +651,401 @@ run(); | Error Type | Status Code | Content Type | | ----------------------- | ----------------------- | ----------------------- | | errors.ErrorResponse12 | 400, 401, 403, 404, 429 | application/json | -| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file +| errors.APIError | 4XX, 5XX | \*/\* | + +## listAccountUsers + +Gets a list of all users associated with your account. + +### Example Usage: active + + +```typescript +import { CventSDK } from "@cvent/sdk"; + +const cventSDK = new CventSDK({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const result = await cventSDK.users.listAccountUsers({ + filter: "active eq 'true'", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + + for await (const page of result) { + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { CventSDKCore } from "@cvent/sdk/core.js"; +import { usersListAccountUsers } from "@cvent/sdk/funcs/usersListAccountUsers.js"; + +// Use `CventSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const cventSDK = new CventSDKCore({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const res = await usersListAccountUsers(cventSDK, { + filter: "active eq 'true'", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + if (res.ok) { + const { value: result } = res; + for await (const page of result) { + console.log(page); + } + } else { + console.log("usersListAccountUsers failed:", res.error); + } +} + +run(); +``` +### Example Usage: combined + + +```typescript +import { CventSDK } from "@cvent/sdk"; + +const cventSDK = new CventSDK({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const result = await cventSDK.users.listAccountUsers({ + filter: "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + + for await (const page of result) { + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { CventSDKCore } from "@cvent/sdk/core.js"; +import { usersListAccountUsers } from "@cvent/sdk/funcs/usersListAccountUsers.js"; + +// Use `CventSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const cventSDK = new CventSDKCore({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const res = await usersListAccountUsers(cventSDK, { + filter: "active eq 'true' and (role.id eq '007cfa3b-8c25-4b3b-b5d3-f6280aa7e6ee' or lockedOut eq 'true')", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + if (res.ok) { + const { value: result } = res; + for await (const page of result) { + console.log(page); + } + } else { + console.log("usersListAccountUsers failed:", res.error); + } +} + +run(); +``` +### Example Usage: created + + +```typescript +import { CventSDK } from "@cvent/sdk"; + +const cventSDK = new CventSDK({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const result = await cventSDK.users.listAccountUsers({ + filter: "audit.created ge '2026-01-01T00:00:00.000Z'", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + + for await (const page of result) { + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { CventSDKCore } from "@cvent/sdk/core.js"; +import { usersListAccountUsers } from "@cvent/sdk/funcs/usersListAccountUsers.js"; + +// Use `CventSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const cventSDK = new CventSDKCore({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const res = await usersListAccountUsers(cventSDK, { + filter: "audit.created ge '2026-01-01T00:00:00.000Z'", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + if (res.ok) { + const { value: result } = res; + for await (const page of result) { + console.log(page); + } + } else { + console.log("usersListAccountUsers failed:", res.error); + } +} + +run(); +``` +### Example Usage: role + + +```typescript +import { CventSDK } from "@cvent/sdk"; + +const cventSDK = new CventSDK({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const result = await cventSDK.users.listAccountUsers({ + filter: "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + + for await (const page of result) { + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { CventSDKCore } from "@cvent/sdk/core.js"; +import { usersListAccountUsers } from "@cvent/sdk/funcs/usersListAccountUsers.js"; + +// Use `CventSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const cventSDK = new CventSDKCore({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const res = await usersListAccountUsers(cventSDK, { + filter: "role.id in ('e7e8c33e-aa42-40cd-b600-7d02d9c53f89', 'b41709f9-5f31-4ee5-800a-b77989d01b5d')", + token: "1a2b3c4d5e6f7g8h9i10j11k", + sort: "username DESC", + }); + if (res.ok) { + const { value: result } = res; + for await (const page of result) { + console.log(page); + } + } else { + console.log("usersListAccountUsers failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ListAccountUsersRequest](../../models/operations/listaccountusersrequest.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.ListAccountUsersResponse](../../models/operations/listaccountusersresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| errors.ErrorResponse12 | 400, 401, 403, 429 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## getAccountUser + +Gets a single account user. + +### Example Usage + + +```typescript +import { CventSDK } from "@cvent/sdk"; + +const cventSDK = new CventSDK({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const result = await cventSDK.users.getAccountUser({ + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { CventSDKCore } from "@cvent/sdk/core.js"; +import { usersGetAccountUser } from "@cvent/sdk/funcs/usersGetAccountUser.js"; + +// Use `CventSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const cventSDK = new CventSDKCore({ + security: { + oAuth2ClientCredentials: { + clientID: process.env["CVENTSDK_CLIENT_ID"] ?? "", + clientSecret: process.env["CVENTSDK_CLIENT_SECRET"] ?? "", + tokenURL: process.env["CVENTSDK_TOKEN_URL"] ?? "", + scopes: process.env["CVENTSDK_SCOPES"] ?? "", + }, + }, +}); + +async function run() { + const res = await usersGetAccountUser(cventSDK, { + userId: "ff8af134-3505-4d67-aaea-1975d8e1327c", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("usersGetAccountUser failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetAccountUserRequest](../../models/operations/getaccountuserrequest.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.AccountUser](../../models/components/accountuser.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| errors.ErrorResponse12 | 401, 403, 404, 429 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/packages/typescript/jsr.json b/packages/typescript/jsr.json index 97020aa2c..5c9c7591a 100644 --- a/packages/typescript/jsr.json +++ b/packages/typescript/jsr.json @@ -2,7 +2,7 @@ { "name": "@cvent/sdk", - "version": "1.6.4", + "version": "1.6.5", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 282ca4398..6ad351de8 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@cvent/sdk", - "version": "1.6.4", + "version": "1.6.5", "author": "Cvent", "files": [ "dist/", diff --git a/packages/typescript/src/funcs/usersGetAccountUser.ts b/packages/typescript/src/funcs/usersGetAccountUser.ts new file mode 100644 index 000000000..eea6782b8 --- /dev/null +++ b/packages/typescript/src/funcs/usersGetAccountUser.ts @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { CventSDKCore } 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 { CventSDKError } from "../models/errors/cventsdkerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.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 Account User + * + * @remarks + * Gets a single account user. + */ +export function usersGetAccountUser( + client: CventSDKCore, + request: operations.GetAccountUserRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.AccountUser, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: CventSDKCore, + request: operations.GetAccountUserRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.AccountUser, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.GetAccountUserRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + userId: encodeSimple("userId", payload.userId, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/users/{userId}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "getAccountUser", + oAuth2Scopes: ["account/users:read"], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 2000, + maxInterval: 16000, + exponent: 2, + maxElapsedTime: 40000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["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: ["401", "403", "404", "429", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + components.AccountUser, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.AccountUser$inboundSchema), + M.jsonErr([401, 403, 404, 429], errors.ErrorResponse12$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/packages/typescript/src/funcs/usersListAccountUsers.ts b/packages/typescript/src/funcs/usersListAccountUsers.ts new file mode 100644 index 000000000..9b17049b3 --- /dev/null +++ b/packages/typescript/src/funcs/usersListAccountUsers.ts @@ -0,0 +1,249 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { CventSDKCore } from "../core.js"; +import { dlv } from "../lib/dlv.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 { CventSDKError } from "../models/errors/cventsdkerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.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"; +import { + createPageIterator, + haltIterator, + PageIterator, + Paginator, +} from "../types/operations.js"; + +/** + * List Account Users + * + * @remarks + * Gets a list of all users associated with your account. + */ +export function usersListAccountUsers( + client: CventSDKCore, + request: operations.ListAccountUsersRequest, + options?: RequestOptions, +): APIPromise< + PageIterator< + Result< + operations.ListAccountUsersResponse, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + { cursor: string } + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: CventSDKCore, + request: operations.ListAccountUsersRequest, + options?: RequestOptions, +): Promise< + [ + PageIterator< + Result< + operations.ListAccountUsersResponse, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + { cursor: string } + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => operations.ListAccountUsersRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [haltIterator(parsed), { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/users")(); + + const query = encodeFormQuery({ + "filter": payload.filter, + "limit": payload.limit, + "sort": payload.sort, + "token": payload.token, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const securityInput = await extractSecurity(client._options.security); + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "listAccountUsers", + oAuth2Scopes: ["account/users:read"], + + resolvedSecurity: requestSecurity, + + securitySource: client._options.security, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 2000, + maxInterval: 16000, + exponent: 2, + maxElapsedTime: 40000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["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 [haltIterator(requestRes), { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "403", "429", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [haltIterator(doResult), { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result, raw] = await M.match< + operations.ListAccountUsersResponse, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.ListAccountUsersResponse$inboundSchema, { + key: "Result", + }), + M.jsonErr([400, 401, 403, 429], errors.ErrorResponse12$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [haltIterator(result), { + status: "complete", + request: req, + response, + }]; + } + + const nextFunc = ( + responseData: unknown, + ): { + next: Paginator< + Result< + operations.ListAccountUsersResponse, + | errors.ErrorResponse12 + | CventSDKError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > + >; + "~next"?: { cursor: string }; + } => { + const nextCursor = dlv(responseData, "paging.nextToken"); + if (typeof nextCursor !== "string") { + return { next: () => null }; + } + if (nextCursor.trim() === "") { + return { next: () => null }; + } + + const nextVal = () => + usersListAccountUsers( + client, + { + ...request, + token: nextCursor, + }, + options, + ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; + }; + + const page = { ...result, ...nextFunc(raw) }; + return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { + status: "complete", + request: req, + response, + }]; +} diff --git a/packages/typescript/src/hooks/oauth2scopes.ts b/packages/typescript/src/hooks/oauth2scopes.ts index c5c8f7e5b..c6a5c34e7 100644 --- a/packages/typescript/src/hooks/oauth2scopes.ts +++ b/packages/typescript/src/hooks/oauth2scopes.ts @@ -38,7 +38,7 @@ export type OAuth2AuthorizationCodeOAuth2Scope = */ | "account/users:delete" /** - * Allows the reading of User, User Group + * Allows the reading of account users */ | "account/users:read" /** @@ -938,7 +938,7 @@ export type OAuth2ClientCredentialsOAuth2Scope = */ | "account/users:delete" /** - * Allows the reading of User, User Group + * Allows the reading of account users */ | "account/users:read" /** diff --git a/packages/typescript/src/lib/config.ts b/packages/typescript/src/lib/config.ts index 85b3deae5..78cef8385 100644 --- a/packages/typescript/src/lib/config.ts +++ b/packages/typescript/src/lib/config.ts @@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "ea", - sdkVersion: "1.6.4", + sdkVersion: "1.6.5", genVersion: "2.859.2", - userAgent: "speakeasy-sdk/typescript 1.6.4 2.859.2 ea @cvent/sdk", + userAgent: "speakeasy-sdk/typescript 1.6.5 2.859.2 ea @cvent/sdk", } as const; diff --git a/packages/typescript/src/models/components/accountuser.ts b/packages/typescript/src/models/components/accountuser.ts new file mode 100644 index 000000000..1a9b95930 --- /dev/null +++ b/packages/typescript/src/models/components/accountuser.ts @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + AccountUserAuditDetails, + AccountUserAuditDetails$inboundSchema, +} from "./accountuserauditdetails.js"; +import { + AccountUserContactDetails, + AccountUserContactDetails$inboundSchema, +} from "./accountusercontactdetails.js"; +import { + AccountUserCustomField, + AccountUserCustomField$inboundSchema, +} from "./accountusercustomfield.js"; +import { + AccountUserRoleReference, + AccountUserRoleReference$inboundSchema, +} from "./accountuserrolereference.js"; +import { + VisibilityAccess, + VisibilityAccess$inboundSchema, +} from "./visibilityaccess.js"; + +/** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + */ +export const EmailVerified = { + Unverified: "UNVERIFIED", + Verified: "VERIFIED", + UnverifiedBlockLogin: "UNVERIFIED_BLOCK_LOGIN", +} as const; +/** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + */ +export type EmailVerified = ClosedEnum; + +/** + * Represents a Cvent core account user. + */ +export type AccountUser = { + /** + * The identifier of the Account User. + */ + id: string; + /** + * The account user's platform identifier. + */ + platformUserId?: string | undefined; + /** + * The account user's username used to log into the account. + */ + username: string; + /** + * The account user's federated SSO login name. + */ + federatedSsoLoginName?: string | undefined; + /** + * The contact details of a Cvent core account user. + */ + contact: AccountUserContactDetails; + /** + * Locale code + */ + locale: string; + /** + * The IANA timezone of the user. + */ + timezone: string; + /** + * True indicates the account user is active. Active users can log into the account. Account users are created with this flag set to false by default. + */ + active: boolean; + /** + * True indicates the account user's username has been verified. + */ + usernameVerified: boolean; + /** + * The account user's email verification status: `UNVERIFIED` indicates the email address has not been verified, `VERIFIED` indicates the email address has been verified, and `UNVERIFIED_BLOCK_LOGIN` indicates the email address has not been verified and the account user is blocked from logging in. + */ + emailVerified: EmailVerified; + /** + * True indicates the account user is locked. + */ + lockedOut: boolean; + /** + * True indicates the account user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). + */ + termsOfUseAccepted: boolean; + /** + * The number of failed login attempts. + */ + failedLoginCount: number; + /** + * True indicates the account user's uploaded documents will be considered internal and can only be viewed within the Cvent Platform. + */ + markDocumentsAsInternal: boolean; + /** + * The visibility access of the user. + * + * @remarks + * + * `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + * `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + * + * `EVENT` - The user has the ability to view all Events within their account. + * + * `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + * `RFI` - The user has the ability to view all RFIs within their account. + * + * `RFP` - The user has the ability to view all RFPs within their account. + * + * `SURVEY` - The user has the ability to view all Surveys within their account. + */ + visibilityAccess: Array; + /** + * The audit details of a Cvent core account user. + */ + audit: AccountUserAuditDetails; + /** + * The account user's answers to account-level custom fields. Each item includes the custom field's ID, name, type, and submitted answer value(s). + */ + customFields?: Array | undefined; + /** + * A model used to reference a Cvent core account user role by its ID. + */ + role: AccountUserRoleReference; +}; + +/** @internal */ +export const EmailVerified$inboundSchema: z.ZodNativeEnum< + typeof EmailVerified +> = z.nativeEnum(EmailVerified); + +/** @internal */ +export const AccountUser$inboundSchema: z.ZodType< + AccountUser, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + platformUserId: z.string().optional(), + username: z.string(), + federatedSsoLoginName: z.string().optional(), + contact: AccountUserContactDetails$inboundSchema, + locale: z.string(), + timezone: z.string(), + active: z.boolean(), + usernameVerified: z.boolean(), + emailVerified: EmailVerified$inboundSchema, + lockedOut: z.boolean(), + termsOfUseAccepted: z.boolean(), + failedLoginCount: z.number().int(), + markDocumentsAsInternal: z.boolean().default(false), + visibilityAccess: z.array(VisibilityAccess$inboundSchema), + audit: AccountUserAuditDetails$inboundSchema, + customFields: z.array(AccountUserCustomField$inboundSchema).optional(), + role: AccountUserRoleReference$inboundSchema, +}); + +export function accountUserFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUser$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUser' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountuseraddress.ts b/packages/typescript/src/models/components/accountuseraddress.ts new file mode 100644 index 000000000..1172e0133 --- /dev/null +++ b/packages/typescript/src/models/components/accountuseraddress.ts @@ -0,0 +1,67 @@ +/* + * 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"; + +/** + * Represents the address of a Cvent core account user. + */ +export type AccountUserAddress = { + /** + * First address line. + */ + address1?: string | undefined; + /** + * Second address line. + */ + address2?: string | undefined; + /** + * Third address line. + */ + address3?: string | undefined; + /** + * Address city. + */ + city?: string | undefined; + /** + * The ISO 3166-1 alpha-2 code which represents the Country. Visit [Cvent's Country Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#country-codes) to learn more. + */ + countryCode?: string | undefined; + /** + * The region, province, or state code. Visit [Cvent's Region Code API Standards](https://developers.cvent.com/docs/rest-api/api-standards#region-codes) to learn more. + */ + regionCode?: string | undefined; + /** + * Address postal code. + */ + postalCode?: string | undefined; +}; + +/** @internal */ +export const AccountUserAddress$inboundSchema: z.ZodType< + AccountUserAddress, + z.ZodTypeDef, + unknown +> = z.object({ + address1: z.string().optional(), + address2: z.string().optional(), + address3: z.string().optional(), + city: z.string().optional(), + countryCode: z.string().optional(), + regionCode: z.string().optional(), + postalCode: z.string().optional(), +}); + +export function accountUserAddressFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUserAddress$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUserAddress' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountuserauditdetails.ts b/packages/typescript/src/models/components/accountuserauditdetails.ts new file mode 100644 index 000000000..9ee0c62aa --- /dev/null +++ b/packages/typescript/src/models/components/accountuserauditdetails.ts @@ -0,0 +1,82 @@ +/* + * 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"; + +/** + * The audit details of a Cvent core account user. + */ +export type AccountUserAuditDetails = { + /** + * The ISO 8601 zoned date time when this record was created. + */ + created: Date; + /** + * The identifier of the user that created this record. + */ + createdBy: string; + /** + * The ISO 8601 zoned date time when this record was updated. + */ + lastModified: Date; + /** + * The identifier of the user that last updated this record. + */ + lastModifiedBy: string; + /** + * The ISO 8601 zoned date time when the user was locked out. + */ + lockedOutDate: Date; + /** + * The ISO 8601 zoned date time when the user has accepted [Cvent's Terms of Use](https://www.cvent.com/en/product-terms-of-use). + */ + termsOfUseAcceptedDate: Date; + /** + * The ISO 8601 zoned date time when the user last logged in. + */ + lastLoginDate: Date; + /** + * The ISO 8601 zoned date time when the user's password was last modified. + */ + passwordLastModifiedDate: Date; +}; + +/** @internal */ +export const AccountUserAuditDetails$inboundSchema: z.ZodType< + AccountUserAuditDetails, + z.ZodTypeDef, + unknown +> = z.object({ + created: z.string().datetime({ offset: true }).transform(v => new Date(v)), + createdBy: z.string(), + lastModified: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), + lastModifiedBy: z.string(), + lockedOutDate: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), + termsOfUseAcceptedDate: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), + lastLoginDate: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), + passwordLastModifiedDate: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), +}); + +export function accountUserAuditDetailsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUserAuditDetails$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUserAuditDetails' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountusercontactdetails.ts b/packages/typescript/src/models/components/accountusercontactdetails.ts new file mode 100644 index 000000000..62dbec65c --- /dev/null +++ b/packages/typescript/src/models/components/accountusercontactdetails.ts @@ -0,0 +1,106 @@ +/* + * 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 { + AccountUserAddress, + AccountUserAddress$inboundSchema, +} from "./accountuseraddress.js"; + +/** + * The contact details of a Cvent core account user. + */ +export type AccountUserContactDetails = { + /** + * Honorific prefix to use before users name. + */ + honorificPrefix?: string | undefined; + /** + * User's first name. + */ + firstName: string; + /** + * User's middle name. + */ + middleName?: string | undefined; + /** + * User's last name. + */ + lastName: string; + /** + * Position held by the current user. + */ + title?: string | undefined; + /** + * Organization in which the user is employed. + */ + organization?: string | undefined; + /** + * User associated email. + */ + email: string; + /** + * Phone number associated to given user. + */ + homePhone?: string | undefined; + /** + * Phone number associated to given user. + */ + homeFax?: string | undefined; + /** + * Phone number associated to given user. + */ + mobilePhone?: string | undefined; + /** + * Phone number associated to given user. + */ + workPhone?: string | undefined; + /** + * Phone number associated to given user. + */ + workFax?: string | undefined; + /** + * Phone number associated to given user. + */ + pager?: string | undefined; + /** + * Represents the address of a Cvent core account user. + */ + address?: AccountUserAddress | undefined; +}; + +/** @internal */ +export const AccountUserContactDetails$inboundSchema: z.ZodType< + AccountUserContactDetails, + z.ZodTypeDef, + unknown +> = z.object({ + honorificPrefix: z.string().optional(), + firstName: z.string(), + middleName: z.string().optional(), + lastName: z.string(), + title: z.string().optional(), + organization: z.string().optional(), + email: z.string(), + homePhone: z.string().optional(), + homeFax: z.string().optional(), + mobilePhone: z.string().optional(), + workPhone: z.string().optional(), + workFax: z.string().optional(), + pager: z.string().optional(), + address: AccountUserAddress$inboundSchema.optional(), +}); + +export function accountUserContactDetailsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUserContactDetails$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUserContactDetails' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountusercustomfield.ts b/packages/typescript/src/models/components/accountusercustomfield.ts new file mode 100644 index 000000000..d8866171f --- /dev/null +++ b/packages/typescript/src/models/components/accountusercustomfield.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * The type of data collected by this custom field. + */ +export const AccountUserCustomFieldType = { + OpenEndedTextDateTime: "Open Ended Text - Date/Time", + OpenEndedTextOneLine: "Open Ended Text - One Line", + OpenEndedTextCommentBox: "Open Ended Text - Comment Box", + ChoiceSingleAnswer: "Choice - Single Answer", + ChoiceMultipleAnswers: "Choice - Multiple Answers", + AutoIncrement: "Auto-Increment", +} as const; +/** + * The type of data collected by this custom field. + */ +export type AccountUserCustomFieldType = ClosedEnum< + typeof AccountUserCustomFieldType +>; + +/** + * Represents an account user's answer to a custom field. + */ +export type AccountUserCustomField = { + /** + * The unique ID representing this custom field. + */ + id: string; + /** + * The actual text of the custom field. + */ + name?: string | undefined; + /** + * The type of data collected by this custom field. + */ + type?: AccountUserCustomFieldType | undefined; + /** + * The custom field answer or answers, represented as an array of strings. Single-answer or text fields contain one string; multiple-answer fields may contain multiple strings. + */ + values: Array; + /** + * The order of this custom field relative to other custom fields. + */ + order?: number | undefined; +}; + +/** @internal */ +export const AccountUserCustomFieldType$inboundSchema: z.ZodNativeEnum< + typeof AccountUserCustomFieldType +> = z.nativeEnum(AccountUserCustomFieldType); + +/** @internal */ +export const AccountUserCustomField$inboundSchema: z.ZodType< + AccountUserCustomField, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + name: z.string().optional(), + type: AccountUserCustomFieldType$inboundSchema.optional(), + values: z.array(z.string()), + order: z.number().int().optional(), +}); + +export function accountUserCustomFieldFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUserCustomField$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUserCustomField' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountuserrolereference.ts b/packages/typescript/src/models/components/accountuserrolereference.ts new file mode 100644 index 000000000..b8a9c8f58 --- /dev/null +++ b/packages/typescript/src/models/components/accountuserrolereference.ts @@ -0,0 +1,37 @@ +/* + * 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"; + +/** + * A model used to reference a Cvent core account user role by its ID. + */ +export type AccountUserRoleReference = { + /** + * Represents the unique ID of an account user role. + */ + id: string; +}; + +/** @internal */ +export const AccountUserRoleReference$inboundSchema: z.ZodType< + AccountUserRoleReference, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); + +export function accountUserRoleReferenceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUserRoleReference$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUserRoleReference' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/accountusers.ts b/packages/typescript/src/models/components/accountusers.ts new file mode 100644 index 000000000..18d8b0e1f --- /dev/null +++ b/packages/typescript/src/models/components/accountusers.ts @@ -0,0 +1,44 @@ +/* + * 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 { AccountUser, AccountUser$inboundSchema } from "./accountuser.js"; +import { Paging, Paging$inboundSchema } from "./paging.js"; + +/** + * A paginated result for a list of account users. + */ +export type AccountUsers = { + /** + * Represents pagination information for a collection of resources. + */ + paging: Paging; + /** + * The list of Account Users retrieved for the specified page. + */ + data: Array; +}; + +/** @internal */ +export const AccountUsers$inboundSchema: z.ZodType< + AccountUsers, + z.ZodTypeDef, + unknown +> = z.object({ + paging: Paging$inboundSchema, + data: z.array(AccountUser$inboundSchema), +}); + +export function accountUsersFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountUsers$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountUsers' from JSON`, + ); +} diff --git a/packages/typescript/src/models/components/index.ts b/packages/typescript/src/models/components/index.ts index efc37d831..dadc7f8f9 100644 --- a/packages/typescript/src/models/components/index.ts +++ b/packages/typescript/src/models/components/index.ts @@ -4,8 +4,15 @@ export * from "./accountbudgetitemlistresponse.js"; export * from "./accountbudgetitemspaginatedresponse.js"; +export * from "./accountuser.js"; +export * from "./accountuseraddress.js"; +export * from "./accountuserauditdetails.js"; +export * from "./accountusercontactdetails.js"; +export * from "./accountusercustomfield.js"; export * from "./accountusergroup.js"; export * from "./accountusergroupinput.js"; +export * from "./accountuserrolereference.js"; +export * from "./accountusers.js"; export * from "./activityad.js"; export * from "./activityappointment.js"; export * from "./activitybaseappointment.js"; @@ -1225,6 +1232,7 @@ export * from "./videowarning.js"; export * from "./videowarningcode.js"; export * from "./viewtype1.js"; export * from "./virtualcardreportingfieldandvalue.js"; +export * from "./visibilityaccess.js"; export * from "./volumediscountthresholdtype.js"; export * from "./voucher.js"; export * from "./vouchercapacity.js"; diff --git a/packages/typescript/src/models/components/visibilityaccess.ts b/packages/typescript/src/models/components/visibilityaccess.ts new file mode 100644 index 000000000..4f4806643 --- /dev/null +++ b/packages/typescript/src/models/components/visibilityaccess.ts @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * Enumerated type to outline what the user has access to. + * + * @remarks + * + * `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + * `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + * + * `EVENT` - The user has the ability to view all Events within their account. + * + * `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + * `RFI` - The user has the ability to view all RFIs within their account. + * + * `RFP` - The user has the ability to view all RFPs within their account. + * + * `SURVEY` - The user has the ability to view all Surveys within their account. + */ +export const VisibilityAccess = { + Document: "DOCUMENT", + EmarketingCampaign: "EMARKETING_CAMPAIGN", + Event: "EVENT", + MeetingRequest: "MEETING_REQUEST", + Rfi: "RFI", + Rfp: "RFP", + Survey: "SURVEY", +} as const; +/** + * Enumerated type to outline what the user has access to. + * + * @remarks + * + * `DOCUMENT` - The user has the ability to view all documents uploaded within their account. + * + * `EMARKETING_CAMPAIGN` - The user has the ability to view all eMarketing campaigns within their account. + * + * `EVENT` - The user has the ability to view all Events within their account. + * + * `MEETING_REQUEST` - The user has the ability to view all meeting requests within their account. + * + * `RFI` - The user has the ability to view all RFIs within their account. + * + * `RFP` - The user has the ability to view all RFPs within their account. + * + * `SURVEY` - The user has the ability to view all Surveys within their account. + */ +export type VisibilityAccess = ClosedEnum; + +/** @internal */ +export const VisibilityAccess$inboundSchema: z.ZodNativeEnum< + typeof VisibilityAccess +> = z.nativeEnum(VisibilityAccess); diff --git a/packages/typescript/src/models/operations/getaccountuser.ts b/packages/typescript/src/models/operations/getaccountuser.ts new file mode 100644 index 000000000..7c02caa3b --- /dev/null +++ b/packages/typescript/src/models/operations/getaccountuser.ts @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; + +export type GetAccountUserRequest = { + /** + * The Account User's Id. + * + * @remarks + */ + userId: string; +}; + +/** @internal */ +export type GetAccountUserRequest$Outbound = { + userId: string; +}; + +/** @internal */ +export const GetAccountUserRequest$outboundSchema: z.ZodType< + GetAccountUserRequest$Outbound, + z.ZodTypeDef, + GetAccountUserRequest +> = z.object({ + userId: z.string(), +}); + +export function getAccountUserRequestToJSON( + getAccountUserRequest: GetAccountUserRequest, +): string { + return JSON.stringify( + GetAccountUserRequest$outboundSchema.parse(getAccountUserRequest), + ); +} diff --git a/packages/typescript/src/models/operations/index.ts b/packages/typescript/src/models/operations/index.ts index f4cfc70f3..5d5bd20fe 100644 --- a/packages/typescript/src/models/operations/index.ts +++ b/packages/typescript/src/models/operations/index.ts @@ -111,6 +111,7 @@ export * from "./getaccountorders.js"; export * from "./getaccounttransactionitem.js"; export * from "./getaccounttransactionitems.js"; export * from "./getaccounttransactions.js"; +export * from "./getaccountuser.js"; export * from "./getaccountusergroup.js"; export * from "./getaccountusergroups.js"; export * from "./getaccountvendors.js"; @@ -271,6 +272,7 @@ export * from "./getwebcastbyid.js"; export * from "./launcheventfeatures.js"; export * from "./linkagendaitemtodiscount.js"; export * from "./linkreservation.js"; +export * from "./listaccountusers.js"; export * from "./listadmissionitems.js"; export * from "./listadmissionitemspostfilters.js"; export * from "./listappointmentattendees.js"; diff --git a/packages/typescript/src/models/operations/listaccountusers.ts b/packages/typescript/src/models/operations/listaccountusers.ts new file mode 100644 index 000000000..cd5974107 --- /dev/null +++ b/packages/typescript/src/models/operations/listaccountusers.ts @@ -0,0 +1,111 @@ +/* + * 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 ListAccountUsersRequest = { + /** + * A Cvent DSL filter expression used to apply a filtered down list of account users. Combine multiple conditions using the `and` and `or` logical operators, and group them with parentheses. + * + * @remarks + * + * Fields that may contain personally identifiable information (PII) are excluded from this filter query parameter. + * + * ## Supported Account Users Filters: + * + * | Field Path | Operators | + * |--------------------|---------------------------------------------| + * | role.id | `in`, `eq`, `ne` | + * | id | `in`, `eq`, `ne` | + * | active | `eq`, `ne` | + * | lockedOut | `eq`, `ne` | + * | audit.created | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + * | audit.lastModified | `eq`, `ne`, `lt`, `gt`, `le`, `ge` | + */ + filter?: string | undefined; + /** + * The maximum number of records to return per page. + */ + limit?: number | undefined; + /** + * The pagination token returned from a previous call. + * + * @remarks + * This will override any other pageable parameters provided. + */ + token?: string | undefined; + /** + * Sorts items in the list of results. + * + * @remarks + * + * There are two orders: + * - ascending: ASC + * - descending: DESC + * + * The following fields are sortable: + * - username + */ + sort?: string | undefined; +}; + +export type ListAccountUsersResponse = { + result: components.AccountUsers; +}; + +/** @internal */ +export type ListAccountUsersRequest$Outbound = { + filter?: string | undefined; + limit: number; + token?: string | undefined; + sort?: string | undefined; +}; + +/** @internal */ +export const ListAccountUsersRequest$outboundSchema: z.ZodType< + ListAccountUsersRequest$Outbound, + z.ZodTypeDef, + ListAccountUsersRequest +> = z.object({ + filter: z.string().optional(), + limit: z.number().int().default(100), + token: z.string().optional(), + sort: z.string().optional(), +}); + +export function listAccountUsersRequestToJSON( + listAccountUsersRequest: ListAccountUsersRequest, +): string { + return JSON.stringify( + ListAccountUsersRequest$outboundSchema.parse(listAccountUsersRequest), + ); +} + +/** @internal */ +export const ListAccountUsersResponse$inboundSchema: z.ZodType< + ListAccountUsersResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Result: components.AccountUsers$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Result": "result", + }); +}); + +export function listAccountUsersResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListAccountUsersResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListAccountUsersResponse' from JSON`, + ); +} diff --git a/packages/typescript/src/sdk/users.ts b/packages/typescript/src/sdk/users.ts index cb650ada1..9ebf5c3ed 100644 --- a/packages/typescript/src/sdk/users.ts +++ b/packages/typescript/src/sdk/users.ts @@ -6,8 +6,10 @@ import { usersAddUserToAccountUserGroup } from "../funcs/usersAddUserToAccountUs import { usersCreateAccountUserGroup } from "../funcs/usersCreateAccountUserGroup.js"; import { usersDeleteAccountUserGroup } from "../funcs/usersDeleteAccountUserGroup.js"; import { usersDeleteUserFromAccountUserGroup } from "../funcs/usersDeleteUserFromAccountUserGroup.js"; +import { usersGetAccountUser } from "../funcs/usersGetAccountUser.js"; import { usersGetAccountUserGroup } from "../funcs/usersGetAccountUserGroup.js"; import { usersGetAccountUserGroups } from "../funcs/usersGetAccountUserGroups.js"; +import { usersListAccountUsers } from "../funcs/usersListAccountUsers.js"; import { usersUpdateAccountUserGroup } from "../funcs/usersUpdateAccountUserGroup.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -136,4 +138,40 @@ export class Users extends ClientSDK { options, )); } + + /** + * List Account Users + * + * @remarks + * Gets a list of all users associated with your account. + */ + async listAccountUsers( + request: operations.ListAccountUsersRequest, + options?: RequestOptions, + ): Promise< + PageIterator + > { + return unwrapResultIterator(usersListAccountUsers( + this, + request, + options, + )); + } + + /** + * Get Account User + * + * @remarks + * Gets a single account user. + */ + async getAccountUser( + request: operations.GetAccountUserRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(usersGetAccountUser( + this, + request, + options, + )); + } }