diff --git a/.eslintrc.json b/.eslintrc.json index da8663d..3202e44 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,6 +25,7 @@ "error", "single" ], + "curly": ["warn", "all"], "@typescript-eslint/interface-name-prefix": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", diff --git a/graphql/mutations/authorization-reset-account.graphql b/graphql/mutations/authorization-reset-account.graphql new file mode 100644 index 0000000..2dced3d --- /dev/null +++ b/graphql/mutations/authorization-reset-account.graphql @@ -0,0 +1,9 @@ +mutation authorizationPolicyResetOnAccount( + $authorizationResetData: AccountAuthorizationResetInput! +) { + authorizationPolicyResetOnAccount( + authorizationResetData: $authorizationResetData + ) { + id + } +} diff --git a/graphql/mutations/authorization-reset-space.graphql b/graphql/mutations/authorization-reset-space.graphql deleted file mode 100755 index a548166..0000000 --- a/graphql/mutations/authorization-reset-space.graphql +++ /dev/null @@ -1,9 +0,0 @@ -mutation authorizationPolicyResetOnSpace( - $authorizationResetData: SpaceAuthorizationResetInput! -) { - authorizationPolicyResetOnSpace( - authorizationResetData: $authorizationResetData - ) { - nameID - } -} diff --git a/graphql/queries/spaces-all-visibilities.graphql b/graphql/queries/spaces-all-visibilities.graphql index 901e746..38eb0eb 100644 --- a/graphql/queries/spaces-all-visibilities.graphql +++ b/graphql/queries/spaces-all-visibilities.graphql @@ -2,5 +2,8 @@ query spacesAllVisibilities { spaces(filter: { visibilities: [DEMO, ARCHIVED, ACTIVE] }) { id nameID + account { + id + } } } diff --git a/graphql/queries/spaces-challenge-opportunities.graphql b/graphql/queries/spaces-subspace-subsubspaces.graphql similarity index 89% rename from graphql/queries/spaces-challenge-opportunities.graphql rename to graphql/queries/spaces-subspace-subsubspaces.graphql index c790069..fc727fd 100644 --- a/graphql/queries/spaces-challenge-opportunities.graphql +++ b/graphql/queries/spaces-subspace-subsubspaces.graphql @@ -1,6 +1,6 @@ -query spaceChallengeOpportunities( +query spaceSubspaceSubspaces( $spaceId: UUID_NAMEID! - $challengeId: UUID_NAMEID! + $subspaceId: UUID_NAMEID! ) { space(ID: $spaceId) { id @@ -12,7 +12,7 @@ query spaceChallengeOpportunities( collaboration { id } - challenge(ID: $challengeId) { + subspace(ID: $subspaceId) { id nameID profile { @@ -26,7 +26,7 @@ query spaceChallengeOpportunities( type } } - opportunities { + subspaces { nameID profile { displayName diff --git a/graphql/queries/spaces-challenges-callouts.graphql b/graphql/queries/spaces-subspaces-collaboration.graphql similarity index 82% rename from graphql/queries/spaces-challenges-callouts.graphql rename to graphql/queries/spaces-subspaces-collaboration.graphql index 60a8897..274d467 100644 --- a/graphql/queries/spaces-challenges-callouts.graphql +++ b/graphql/queries/spaces-subspaces-collaboration.graphql @@ -1,4 +1,4 @@ -query spaceChallengesCallouts { +query spaceSubspacesCollaboration { spaces { id nameID @@ -9,7 +9,7 @@ query spaceChallengesCallouts { id } } - challenges { + subspaces { id nameID collaboration { diff --git a/graphql/queries/spaces-challenges-communities.graphql b/graphql/queries/spaces-subspaces-communities.graphql similarity index 65% rename from graphql/queries/spaces-challenges-communities.graphql rename to graphql/queries/spaces-subspaces-communities.graphql index 3a62b92..a7ed1da 100644 --- a/graphql/queries/spaces-challenges-communities.graphql +++ b/graphql/queries/spaces-subspaces-communities.graphql @@ -1,11 +1,11 @@ -query spaceChallengesCommunities($spaceId: UUID_NAMEID!) { +query spaceSubspacesCommunities($spaceId: UUID_NAMEID!) { space(ID: $spaceId) { id nameID community { id } - challenges { + subspaces { id nameID community { diff --git a/graphql/queries/task.graphql b/graphql/queries/task.graphql new file mode 100644 index 0000000..c845b65 --- /dev/null +++ b/graphql/queries/task.graphql @@ -0,0 +1,7 @@ +query task($taskId: UUID!) { + task(id: $taskId) { + status + results + errors + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1ae5379..cffae96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@alkemio/cli", - "version": "0.7.0", + "version": "0.8.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@alkemio/cli", - "version": "0.7.0", + "version": "0.8.0", "license": "EUPL-1.2", "dependencies": { - "@alkemio/client-lib": "^0.27.0", + "@alkemio/client-lib": "^0.30.4", "@graphql-codegen/typescript-graphql-request": "^4.5.3", "@graphql-codegen/typescript-operations": "^2.5.3", "@types/graphql-upload": "^8.0.11", @@ -41,9 +41,9 @@ } }, "node_modules/@alkemio/client-lib": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@alkemio/client-lib/-/client-lib-0.27.0.tgz", - "integrity": "sha512-Gv4Ku6ZVt8+aF1Nsi1GLVzm2fCzTroS6szKs3/qZIqcFLkgFWEKNpPqb3ROU09c2qVD5tJMmsb5Zdetc/abO2Q==", + "version": "0.30.4", + "resolved": "https://registry.npmjs.org/@alkemio/client-lib/-/client-lib-0.30.4.tgz", + "integrity": "sha512-rDiIjn/w1wFnbHSwVhzVGGX9Rgj28T2ivY9uuPdYHhdybJP0yk4jcuMzLOsbpHsQgXWe2r7HhZbnsTjjruH36g==", "dependencies": { "@graphql-codegen/typescript-graphql-request": "^4.5.3", "@graphql-codegen/typescript-operations": "^2.5.3", @@ -7397,9 +7397,9 @@ }, "dependencies": { "@alkemio/client-lib": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@alkemio/client-lib/-/client-lib-0.27.0.tgz", - "integrity": "sha512-Gv4Ku6ZVt8+aF1Nsi1GLVzm2fCzTroS6szKs3/qZIqcFLkgFWEKNpPqb3ROU09c2qVD5tJMmsb5Zdetc/abO2Q==", + "version": "0.30.4", + "resolved": "https://registry.npmjs.org/@alkemio/client-lib/-/client-lib-0.30.4.tgz", + "integrity": "sha512-rDiIjn/w1wFnbHSwVhzVGGX9Rgj28T2ivY9uuPdYHhdybJP0yk4jcuMzLOsbpHsQgXWe2r7HhZbnsTjjruH36g==", "requires": { "@graphql-codegen/typescript-graphql-request": "^4.5.3", "@graphql-codegen/typescript-operations": "^2.5.3", diff --git a/package.json b/package.json index d5b309a..9f65da4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alkemio/cli", - "version": "0.7.0", + "version": "0.8.0", "author": "Alkemio Foundation", "private": false, "license": "EUPL-1.2", @@ -19,14 +19,13 @@ "lint": "tsc --noEmit && eslint src/**/*.ts{,x}", "lint:fix": "tsc --noEmit && eslint src/**/*.ts{,x} --fix", "nodemon": "nodemon", - "delete-space-force": "ts-node-dev src/delete-space-force.ts", "delete-organization": "ts-node-dev src/delete-organization.ts", "remove-user-from-organizations": "ts-node-dev src/remove-user-from-organizations.ts", "authorization-reset-platform": "ts-node-dev src/authorization-reset-platform.ts", "authorization-reset-with-config": "ts-node-dev src/authorization-reset-all.ts true", "authorization-reset-all": "ts-node-dev src/authorization-reset-all.ts", "authorization-reset-all-users": "ts-node-dev src/authorization-reset-all-users.ts", - "authorization-reset-all-spaces": "ts-node-dev src/authorization-reset-all-spaces.ts", + "authorization-reset-all-accounts": "ts-node-dev src/authorization-reset-all-accounts.ts", "authorization-reset-all-organizations": "ts-node-dev src/authorization-reset-all-organizations.ts", "authorization-detect-orphaned-credentials-from-users": "ts-node-dev src/orphaned-credentials/authorization-detect-orphaned-credentials-from-users.ts", "migration-add-default-discussion-callouts": "ts-node-dev src/migration/add-default-discussion-callouts.ts", @@ -36,6 +35,9 @@ "prepublishOnly": "npm run build", "codegen": "graphql-codegen --config codegen.yml", "prune-orphans": "ts-node-dev src/prune-orphan-data/prune-orphan-data.ts", + "digital-twin-demo": "ts-node-dev src/digital-twin-demo/digital-twin-demo.ts", + "prune-orphans-old": "ts-node-dev src/prune-orphan-data/prune-orphan-data.ts", + "prune-orphans-v2": "ts-node-dev src/prune-orphan-data/prune-orphan-data-v2.ts", "search-ingestion": "ts-node-dev src/search-ingestion/search-ingestion.ts" }, "repository": { @@ -61,7 +63,7 @@ "ts-node-dev": "^2.0.0" }, "dependencies": { - "@alkemio/client-lib": "^0.27.0", + "@alkemio/client-lib": "^0.30.4", "@graphql-codegen/typescript-graphql-request": "^4.5.3", "@graphql-codegen/typescript-operations": "^2.5.3", "@types/graphql-upload": "^8.0.11", diff --git a/src/authorization-reset-all-spaces.ts b/src/authorization-reset-all-accounts.ts similarity index 84% rename from src/authorization-reset-all-spaces.ts rename to src/authorization-reset-all-accounts.ts index 9e24606..7025a5c 100644 --- a/src/authorization-reset-all-spaces.ts +++ b/src/authorization-reset-all-accounts.ts @@ -5,10 +5,10 @@ import { EntityType, retryFunction, shouldProcessEntity } from './util'; const main = async (useConfig = false) => { if (process.argv[2]) useConfig = process.argv[2] === 'true'; - await resetAllSpaces(useConfig); + await resetAllAccounts(useConfig); }; -export const resetAllSpaces = async (useConfig: boolean) => { +export const resetAllAccounts = async (useConfig: boolean) => { const logger = createLogger(); const config = createConfigUsingEnvVars(); @@ -30,7 +30,9 @@ export const resetAllSpaces = async (useConfig: boolean) => { logger.info(`[${count}] - processing space (${space.nameID})`); await retryFunction( - alkemioCliClient.authorizationResetSpace({ spaceID: space.id }) + alkemioCliClient.authorizationResetAccount({ + accountID: space.account.id, + }) ); } } diff --git a/src/authorization-reset-all.ts b/src/authorization-reset-all.ts index 4fbde9d..2551df4 100644 --- a/src/authorization-reset-all.ts +++ b/src/authorization-reset-all.ts @@ -1,12 +1,12 @@ import { resetAllUsers } from './authorization-reset-all-users'; -import { resetAllSpaces } from './authorization-reset-all-spaces'; +import { resetAllAccounts } from './authorization-reset-all-accounts'; import { resetAllOrganizations } from './authorization-reset-all-organizations'; import { resetPlatform } from './authorization-reset-platform'; const main = async (useConfig = false) => { if (process.argv[2]) useConfig = process.argv[2] === 'true'; await resetAllUsers(useConfig); - await resetAllSpaces(useConfig); + await resetAllAccounts(useConfig); await resetAllOrganizations(useConfig); await resetPlatform(); }; diff --git a/src/client/AlkemioCliClient.ts b/src/client/AlkemioCliClient.ts index 9a899ea..5bdf175 100644 --- a/src/client/AlkemioCliClient.ts +++ b/src/client/AlkemioCliClient.ts @@ -4,8 +4,8 @@ import { Sdk, getSdk, OrganizationAuthorizationResetInput, - SpaceAuthorizationResetInput, UserAuthorizationResetInput, + AccountAuthorizationResetInput, } from '../generated/graphql'; import { Logger } from 'winston'; import { AlkemioClient, AlkemioClientConfig } from '@alkemio/client-lib'; @@ -61,10 +61,10 @@ export class AlkemioCliClient { return result.data; } - public async authorizationResetSpace( - authorizationResetData: SpaceAuthorizationResetInput + public async authorizationResetAccount( + authorizationResetData: AccountAuthorizationResetInput ) { - const result = await this.sdkClient.authorizationPolicyResetOnSpace({ + const result = await this.sdkClient.authorizationPolicyResetOnAccount({ authorizationResetData: authorizationResetData, }); diff --git a/src/delete-space-force.ts b/src/delete-space-force.ts deleted file mode 100644 index 0777016..0000000 --- a/src/delete-space-force.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { createConfigUsingEnvVars } from './util/create-config-using-envvars'; -import { AlkemioCliClient } from './client/AlkemioCliClient'; -import { createLogger } from './util/create-logger'; - -const main = async () => { - const spaceID = process.argv[2]; - await deleteSpace(spaceID); -}; - -export const deleteSpace = async (spaceID: string) => { - const logger = createLogger(); - const config = createConfigUsingEnvVars(); - - const alkemioCliClient = new AlkemioCliClient(config, logger); - await alkemioCliClient.initialise(); - await alkemioCliClient.logUser(); - - await alkemioCliClient.validateConnection(); - - const spaceInfo = await alkemioCliClient.alkemioLibClient.spaceInfo(spaceID); - logger.info(`Space information: ${spaceInfo?.nameID}`); - if (spaceInfo?.nameID) { - const opportunities = await alkemioCliClient.alkemioLibClient.opportunities( - spaceID - ); - if (opportunities) { - for (const opportunity of opportunities) { - logger.info(`==> Opportunity: ${opportunity?.nameID}`); - await alkemioCliClient.alkemioLibClient.privateClient.deleteOpportunity( - { - deleteData: { - ID: opportunity.id, - }, - } - ); - } - } - const challenges = await alkemioCliClient.alkemioLibClient.challenges( - spaceID - ); - if (challenges) { - for (const challenge of challenges) { - logger.info(`==> Challenge: ${challenge?.nameID}`); - await alkemioCliClient.alkemioLibClient.privateClient.deleteChallenge({ - deleteData: { - ID: challenge.id, - }, - }); - } - } - } -}; - -main().catch(error => { - console.error(error); -}); diff --git a/src/digital-twin-demo/digital-twin-demo.graphql b/src/digital-twin-demo/digital-twin-demo.graphql new file mode 100644 index 0000000..cf653f7 --- /dev/null +++ b/src/digital-twin-demo/digital-twin-demo.graphql @@ -0,0 +1,30 @@ +query digitalTwinDemo( + $spaceNameID: UUID_NAMEID! +){ + space(ID:$spaceNameID) { + id + subspaces { + profile { + displayName + tagline + } + context { + vision + impact + } + collaboration { + callouts { + comments { + messagesCount + } + framing { + profile { + displayName + tagline + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/digital-twin-demo/digital-twin-demo.ts b/src/digital-twin-demo/digital-twin-demo.ts new file mode 100644 index 0000000..388ff27 --- /dev/null +++ b/src/digital-twin-demo/digital-twin-demo.ts @@ -0,0 +1,32 @@ +import { createConfigUsingEnvVars } from '../util/create-config-using-envvars'; +import { AlkemioCliClient } from '../client/AlkemioCliClient'; +import { createLogger } from '../util/create-logger'; + +const main = async () => { + await digitalTwinDemo(); +}; + +export const digitalTwinDemo = async () => { + const logger = createLogger(); + const config = createConfigUsingEnvVars(); + + const alkemioCliClient = new AlkemioCliClient(config, logger); + await alkemioCliClient.initialise(); + await alkemioCliClient.logUser(); + await alkemioCliClient.validateConnection(); + + const spacesQueryResult = await alkemioCliClient.sdkClient.digitalTwinDemo({ + spaceNameID: 'digileefomgeving', + }); + + const space = spacesQueryResult.data.space; + + const subspaces = space.subspaces || []; + + logger.info(`...total number of subspaces: ${subspaces.length}`); + logger.info(`...${JSON.stringify(space)}`); +}; + +main().catch(error => { + console.error(error); +}); diff --git a/src/digital-twin-demo/model/spaceMetaInfo.ts b/src/digital-twin-demo/model/spaceMetaInfo.ts new file mode 100644 index 0000000..8d47038 --- /dev/null +++ b/src/digital-twin-demo/model/spaceMetaInfo.ts @@ -0,0 +1,10 @@ +export class SpaceMetaInfo { + Name = ''; + ChallengesCount = 0; + MembersCount = 0; + HostOrgName = ''; + HostOrgOwnerName = ''; + Visibility = ''; + FeatureFlagWhiteboard = false; + FeatureFlagCalloutTemplates = false; +} diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index b2fd1b8..ca7fc4a 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -54,20 +54,40 @@ export type Apm = { }; export type Account = { + /** The "highest" subscription active for this Account. */ + activeSubscription?: Maybe; + /** The Agent representing this Account. */ + agent: Agent; /** The authorization rules for the entity */ authorization?: Maybe; /** The defaults in use by this Account */ defaults?: Maybe; /** The Account host. */ - host?: Maybe; + host?: Maybe; /** The ID of the entity */ id: Scalars['UUID']; /** The Library in use by this Account */ library?: Maybe; /** The License governing platform functionality in use by this Account */ license: License; - /** The ID of the associated root Space. */ + /** The ID for the root space for the Account . */ spaceID: Scalars['String']; + /** The subscriptions active for this Account. */ + subscriptions: Array; + /** The virtual contributors for this Account. */ + virtualContributors: Array; +}; + +export type AccountAuthorizationResetInput = { + /** The identifier of the Account whose Authorization Policy should be reset. */ + accountID: Scalars['UUID_NAMEID']; +}; + +export type AccountSubscription = { + /** The expiry date of this subscription, null if it does never expire. */ + expires?: Maybe; + /** The name of the Subscription. */ + name: LicenseCredential; }; export type ActivityCreatedSubscriptionInput = { @@ -149,12 +169,12 @@ export type ActivityLogEntry = { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -175,12 +195,12 @@ export type ActivityLogEntryCalendarEventCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -199,12 +219,12 @@ export type ActivityLogEntryCalloutDiscussionComment = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -223,14 +243,14 @@ export type ActivityLogEntryCalloutLinkCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The Link that was created. */ link: Link; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -249,14 +269,14 @@ export type ActivityLogEntryCalloutPostComment = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; /** The Post that was commented on. */ post: Post; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -275,14 +295,14 @@ export type ActivityLogEntryCalloutPostCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; /** The Post that was created. */ post: Post; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -301,12 +321,12 @@ export type ActivityLogEntryCalloutPublished = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -326,12 +346,12 @@ export type ActivityLogEntryCalloutWhiteboardContentModified = /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -352,12 +372,12 @@ export type ActivityLogEntryCalloutWhiteboardCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -367,8 +387,6 @@ export type ActivityLogEntryCalloutWhiteboardCreated = ActivityLogEntry & { }; export type ActivityLogEntryChallengeCreated = ActivityLogEntry & { - /** The Challenge that was created. */ - challenge: Challenge; /** Indicates if this Activity happened on a child Collaboration. Child results can be included via the "includeChild" parameter. */ child: Scalars['Boolean']; /** The id of the Collaboration entity within which the Activity was generated. */ @@ -378,12 +396,14 @@ export type ActivityLogEntryChallengeCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; + /** The Subspace that was created. */ + subspace: Space; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -404,12 +424,12 @@ export type ActivityLogEntryMemberJoined = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -428,14 +448,14 @@ export type ActivityLogEntryOpportunityCreated = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; - /** The Opportunity that was created. */ - opportunity: Opportunity; /** The display name of the parent */ parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; + /** The Subsubspace that was created. */ + subsubspace: Space; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -452,8 +472,6 @@ export type ActivityLogEntryUpdateSent = ActivityLogEntry & { /** The text details for this Activity. */ description: Scalars['String']; id: Scalars['UUID']; - /** The journey where the activity happened */ - journey?: Maybe; /** The url to the Journey. */ journeyUrl: Scalars['String']; /** The Message that been sent to this Community. */ @@ -462,6 +480,8 @@ export type ActivityLogEntryUpdateSent = ActivityLogEntry & { parentDisplayName: Scalars['String']; /** The nameID of the parent */ parentNameID: Scalars['NameID']; + /** The Space where the activity happened */ + space?: Maybe; /** The user that triggered this Activity. */ triggeredBy: User; /** The event type for this Activity. */ @@ -507,11 +527,6 @@ export type ActorGroup = { name: Scalars['String']; }; -export type AdminSearchIngestResult = { - /** The result of the operation. */ - results: Array; -}; - export type Agent = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -539,6 +554,8 @@ export type AgentBeginVerifiedCredentialRequestOutput = { qrCodeImg: Scalars['String']; }; +export type AnyInvitation = Invitation | InvitationExternal; + export type Application = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -559,8 +576,6 @@ export type ApplicationEventInput = { }; export type ApplicationForRoleResult = { - /** ID for the Challenge being applied to, if any. Or the Challenge containing the Opportunity being applied to. */ - challengeID?: Maybe; /** ID for the community */ communityID: Scalars['UUID']; /** Date of creation */ @@ -569,10 +584,10 @@ export type ApplicationForRoleResult = { displayName: Scalars['String']; /** ID for the application */ id: Scalars['UUID']; - /** ID for the Opportunity being applied to, if any. */ - opportunityID?: Maybe; /** ID for the ultimate containing Space */ spaceID: Scalars['UUID']; + /** Nesting level of the Space */ + spaceLevel: Scalars['Float']; /** The current state of the application. */ state: Scalars['String']; /** Date of last update */ @@ -597,30 +612,23 @@ export type AssignCommunityRoleToVirtualInput = { virtualContributorID: Scalars['UUID_NAMEID']; }; -export type AssignGlobalAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type AssignGlobalCommunityAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type AssignGlobalSpacesAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type AssignOrganizationAdminInput = { - organizationID: Scalars['UUID_NAMEID']; - userID: Scalars['UUID_NAMEID_EMAIL']; +export type AssignLicensePlanToAccount = { + /** The ID of the Account to assign the LicensePlan to. */ + accountID: Scalars['UUID']; + /** The ID of the LicensePlan to assign. */ + licensePlanID: Scalars['UUID']; + /** The ID of the Licensing to use. */ + licensingID?: InputMaybe; }; -export type AssignOrganizationAssociateInput = { +export type AssignOrganizationRoleToUserInput = { organizationID: Scalars['UUID_NAMEID']; + role: OrganizationRole; userID: Scalars['UUID_NAMEID_EMAIL']; }; -export type AssignOrganizationOwnerInput = { - organizationID: Scalars['UUID_NAMEID']; +export type AssignPlatformRoleToUserInput = { + role: PlatformRole; userID: Scalars['UUID_NAMEID_EMAIL']; }; @@ -666,27 +674,22 @@ export type Authorization = { }; export enum AuthorizationCredential { + AccountHost = 'ACCOUNT_HOST', BetaTester = 'BETA_TESTER', - ChallengeAdmin = 'CHALLENGE_ADMIN', - ChallengeHost = 'CHALLENGE_HOST', - ChallengeLead = 'CHALLENGE_LEAD', - ChallengeMember = 'CHALLENGE_MEMBER', GlobalAdmin = 'GLOBAL_ADMIN', - GlobalAdminCommunity = 'GLOBAL_ADMIN_COMMUNITY', - GlobalAdminSpaces = 'GLOBAL_ADMIN_SPACES', + GlobalCommunityRead = 'GLOBAL_COMMUNITY_READ', + GlobalLicenseManager = 'GLOBAL_LICENSE_MANAGER', GlobalRegistered = 'GLOBAL_REGISTERED', + GlobalSpacesReader = 'GLOBAL_SPACES_READER', + GlobalSupport = 'GLOBAL_SUPPORT', InnovationPackProvider = 'INNOVATION_PACK_PROVIDER', - OpportunityAdmin = 'OPPORTUNITY_ADMIN', - OpportunityHost = 'OPPORTUNITY_HOST', - OpportunityLead = 'OPPORTUNITY_LEAD', - OpportunityMember = 'OPPORTUNITY_MEMBER', OrganizationAdmin = 'ORGANIZATION_ADMIN', OrganizationAssociate = 'ORGANIZATION_ASSOCIATE', OrganizationOwner = 'ORGANIZATION_OWNER', SpaceAdmin = 'SPACE_ADMIN', - SpaceHost = 'SPACE_HOST', SpaceLead = 'SPACE_LEAD', SpaceMember = 'SPACE_MEMBER', + SpaceSubspaceAdmin = 'SPACE_SUBSPACE_ADMIN', UserGroupMember = 'USER_GROUP_MEMBER', UserSelfManagement = 'USER_SELF_MANAGEMENT', } @@ -714,27 +717,24 @@ export enum AuthorizationPrivilege { AccessDashboardRefresh = 'ACCESS_DASHBOARD_REFRESH', AccessInteractiveGuidance = 'ACCESS_INTERACTIVE_GUIDANCE', AccessVirtualContributor = 'ACCESS_VIRTUAL_CONTRIBUTOR', - Admin = 'ADMIN', AuthorizationReset = 'AUTHORIZATION_RESET', CommunityAddMember = 'COMMUNITY_ADD_MEMBER', CommunityApply = 'COMMUNITY_APPLY', - CommunityContextReview = 'COMMUNITY_CONTEXT_REVIEW', CommunityInvite = 'COMMUNITY_INVITE', CommunityInviteAccept = 'COMMUNITY_INVITE_ACCEPT', CommunityJoin = 'COMMUNITY_JOIN', Contribute = 'CONTRIBUTE', Create = 'CREATE', CreateCallout = 'CREATE_CALLOUT', - CreateChallenge = 'CREATE_CHALLENGE', CreateDiscussion = 'CREATE_DISCUSSION', CreateMessage = 'CREATE_MESSAGE', CreateMessageReaction = 'CREATE_MESSAGE_REACTION', CreateMessageReply = 'CREATE_MESSAGE_REPLY', - CreateOpportunity = 'CREATE_OPPORTUNITY', CreateOrganization = 'CREATE_ORGANIZATION', CreatePost = 'CREATE_POST', - CreateRelation = 'CREATE_RELATION', CreateSpace = 'CREATE_SPACE', + CreateSubspace = 'CREATE_SUBSPACE', + CreateVirtualContributor = 'CREATE_VIRTUAL_CONTRIBUTOR', CreateWhiteboard = 'CREATE_WHITEBOARD', CreateWhiteboardRt = 'CREATE_WHITEBOARD_RT', Delete = 'DELETE', @@ -748,6 +748,7 @@ export enum AuthorizationPrivilege { Read = 'READ', ReadUsers = 'READ_USERS', ReadUserPii = 'READ_USER_PII', + ReadUserSettings = 'READ_USER_SETTINGS', SaveAsTemplate = 'SAVE_AS_TEMPLATE', Update = 'UPDATE', UpdateCalloutPublisher = 'UPDATE_CALLOUT_PUBLISHER', @@ -756,6 +757,11 @@ export enum AuthorizationPrivilege { UpdateWhiteboard = 'UPDATE_WHITEBOARD', } +export enum BodyOfKnowledgeType { + Other = 'OTHER', + Space = 'SPACE', +} + export type Calendar = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -823,7 +829,7 @@ export type Callout = { /** The ContributionPolicy for this Callout. */ contributionPolicy: CalloutContributionPolicy; /** The Contributions that have been made to this Callout. */ - contributions?: Maybe>; + contributions: Array; /** The user that created this Callout */ createdBy?: Maybe; /** The Callout Framing associated with this Callout. */ @@ -920,15 +926,11 @@ export type CalloutGroup = { }; export enum CalloutGroupName { - Community_1 = 'COMMUNITY_1', - Community_2 = 'COMMUNITY_2', - Contribute_1 = 'CONTRIBUTE_1', - Contribute_2 = 'CONTRIBUTE_2', - Home_1 = 'HOME_1', - Home_2 = 'HOME_2', + Community = 'COMMUNITY', + Contribute = 'CONTRIBUTE', + Home = 'HOME', Knowledge = 'KNOWLEDGE', - Subspaces_1 = 'SUBSPACES_1', - Subspaces_2 = 'SUBSPACES_2', + Subspaces = 'SUBSPACES', } export type CalloutPostCreated = { @@ -974,65 +976,6 @@ export enum CalloutVisibility { Published = 'PUBLISHED', } -export type Challenge = Journey & { - /** The Account for this Challenge */ - account: Account; - /** The Agent representing this Challenge. */ - agent?: Maybe; - /** The authorization rules for the Journey */ - authorization?: Maybe; - /** Collaboration object for the Journey */ - collaboration?: Maybe; - /** The community for the challenge. */ - community?: Maybe; - /** The context for the challenge. */ - context?: Maybe; - /** The ID of the Journey */ - id: Scalars['UUID']; - /** Metrics about activity within this Challenge. */ - metrics?: Maybe>; - /** A name identifier of the Journey, unique within a given scope. */ - nameID: Scalars['NameID']; - /** The Opportunities for the challenge. */ - opportunities?: Maybe>; - /** The preferences for this Challenge */ - preferences: Array; - /** The Profile for the Challenge. */ - profile: Profile; - /** The StorageAggregator in use by this Challenge */ - storageAggregator?: Maybe; -}; - -export type ChallengeOpportunitiesArgs = { - IDs?: InputMaybe>; - limit?: InputMaybe; - shuffle?: InputMaybe; -}; - -export type ChallengeCreated = { - /** The Challenge that has been created. */ - challenge: Challenge; - /** The identifier for the Space on which the Challenge was created. */ - spaceID: Scalars['UUID_NAMEID']; -}; - -export enum ChallengePreferenceType { - AllowContributorsToCreateCallouts = 'ALLOW_CONTRIBUTORS_TO_CREATE_CALLOUTS', - AllowContributorsToCreateOpportunities = 'ALLOW_CONTRIBUTORS_TO_CREATE_OPPORTUNITIES', - AllowNonMembersReadAccess = 'ALLOW_NON_MEMBERS_READ_ACCESS', - AllowSpaceMembersToContribute = 'ALLOW_SPACE_MEMBERS_TO_CONTRIBUTE', - MembershipApplyChallengeFromSpaceMembers = 'MEMBERSHIP_APPLY_CHALLENGE_FROM_SPACE_MEMBERS', - MembershipFeedbackOnChallengeContext = 'MEMBERSHIP_FEEDBACK_ON_CHALLENGE_CONTEXT', - MembershipJoinChallengeFromSpaceMembers = 'MEMBERSHIP_JOIN_CHALLENGE_FROM_SPACE_MEMBERS', -} - -export type ChallengeTemplate = { - /** Feedback templates. */ - feedback?: Maybe>; - /** Challenge template name. */ - name: Scalars['String']; -}; - export type ChatGuidanceAnswerRelevanceInput = { /** The answer id. */ id: Scalars['UUID']; @@ -1062,19 +1005,19 @@ export type Collaboration = { /** The authorization rules for the entity */ authorization?: Maybe; /** The list of Callouts for this Collaboration object. */ - callouts?: Maybe>; + callouts: Array; /** The set of CalloutGroups in use in this Collaboration. */ groups: Array; /** The ID of the entity */ id: Scalars['UUID']; /** The InnovationFlow for the Collaboration. */ - innovationFlow?: Maybe; + innovationFlow: InnovationFlow; /** List of relations */ relations?: Maybe>; /** The tagset templates on this Collaboration. */ tagsetTemplates?: Maybe>; /** The timeline with events in use by this Space */ - timeline?: Maybe; + timeline: Timeline; }; export type CollaborationCalloutsArgs = { @@ -1205,41 +1148,45 @@ export type CommunicationSendMessageToUserInput = { export type Community = Groupable & { /** The Form used for Applications to this community. */ - applicationForm?: Maybe
; + applicationForm: Form; /** Applications available for this community. */ - applications?: Maybe>; + applications: Array; /** The authorization rules for the entity */ authorization?: Maybe; /** All member users excluding the current lead users in this Community. */ - availableLeadUsers?: Maybe; + availableLeadUsers: PaginatedUsers; /** All available users that are potential Community members. */ - availableMemberUsers?: Maybe; + availableMemberUsers: PaginatedUsers; /** The Communications for this Community. */ - communication?: Maybe; + communication: Communication; + /** The user group with the specified id anywhere in the space */ + group: UserGroup; /** Groups of users related to a Community. */ - groups?: Maybe>; + groups: Array; /** The guidelines for members of this Community. */ - guidelines?: Maybe; + guidelines: CommunityGuidelines; /** The ID of the entity */ id: Scalars['UUID']; /** Invitations for this community. */ - invitations?: Maybe>; + invitations: Array; /** Invitations to join this Community for users not yet on the Alkemio platform. */ - invitationsExternal?: Maybe>; + invitationsExternal: Array; /** All users that are contributing to this Community. */ - memberUsers?: Maybe>; + memberUsers: Array; /** The membership status of the currently logged in user. */ myMembershipStatus?: Maybe; /** The roles on this community for the currently logged in user. */ - myRoles?: Maybe>; + myRoles: Array; + /** The implicit roles on this community for the currently logged in user. */ + myRolesImplicit: Array; /** All Organizations that have the specified Role in this Community. */ - organizationsInRole?: Maybe>; + organizationsInRole: Array; /** The policy that defines the roles for this Community. */ - policy?: Maybe; + policy: CommunityPolicy; /** All users that have the specified Role in this Community. */ - usersInRole?: Maybe>; + usersInRole: Array; /** All virtuals that have the specified Role in this Community. */ - virtualContributorsInRole?: Maybe>; + virtualContributorsInRole: Array; }; export type CommunityAvailableLeadUsersArgs = { @@ -1258,6 +1205,10 @@ export type CommunityAvailableMemberUsersArgs = { last?: InputMaybe; }; +export type CommunityGroupArgs = { + ID: Scalars['UUID']; +}; + export type CommunityMemberUsersArgs = { limit?: InputMaybe; }; @@ -1288,10 +1239,27 @@ export type CommunityGuidelines = { profile: Profile; }; +export type CommunityGuidelinesTemplate = { + /** The authorization rules for the entity */ + authorization?: Maybe; + /** The community guidelines. */ + guidelines: CommunityGuidelines; + /** The ID of the entity */ + id: Scalars['UUID']; + /** The Profile for this template. */ + profile: Profile; +}; + export type CommunityJoinInput = { communityID: Scalars['UUID']; }; +export enum CommunityMembershipPolicy { + Applications = 'APPLICATIONS', + Invitations = 'INVITATIONS', + Open = 'OPEN', +} + export enum CommunityMembershipStatus { ApplicationPending = 'APPLICATION_PENDING', InvitationPending = 'INVITATION_PENDING', @@ -1302,8 +1270,6 @@ export enum CommunityMembershipStatus { export type CommunityPolicy = { /** The role policy that defines the Admins for this Community. */ admin: CommunityRolePolicy; - /** The role policy that defines the hosts for this Community. */ - host: CommunityRolePolicy; /** The ID of the entity */ id: Scalars['UUID']; /** The role policy that defines the leads for this Community. */ @@ -1314,11 +1280,14 @@ export type CommunityPolicy = { export enum CommunityRole { Admin = 'ADMIN', - Host = 'HOST', Lead = 'LEAD', Member = 'MEMBER', } +export enum CommunityRoleImplicit { + SubspaceAdmin = 'SUBSPACE_ADMIN', +} + export type CommunityRolePolicy = { /** The CredentialDefinition that is associated with this role */ credential: CredentialDefinition; @@ -1351,8 +1320,6 @@ export type Config = { sentry: Sentry; /** Configuration for storage providers, e.g. file */ storage: StorageConfig; - /** Alkemio template configuration. */ - template: Template; }; export enum ContentUpdatePolicy { @@ -1364,8 +1331,6 @@ export enum ContentUpdatePolicy { export type Context = { /** The authorization rules for the entity */ authorization?: Maybe; - /** The EcosystemModel for this Context. */ - ecosystemModel?: Maybe; /** The ID of the entity */ id: Scalars['UUID']; /** What is the potential impact? */ @@ -1376,6 +1341,19 @@ export type Context = { who?: Maybe; }; +export type Contributor = { + /** The Agent for the Contributor. */ + agent: Agent; + /** The authorization rules for the Contributor */ + authorization?: Maybe; + /** The ID of the Contributor */ + id: Scalars['UUID']; + /** A name identifier of the Contributor, unique within a given scope. */ + nameID: Scalars['NameID']; + /** The profile for the Contributor. */ + profile: Profile; +}; + export type ContributorFilterInput = { /** Return contributors with credentials in the provided list */ credentials?: InputMaybe>; @@ -1401,19 +1379,23 @@ export type ContributorRolesInvitationsArgs = { states?: InputMaybe>; }; -export type ConvertChallengeToSpaceInput = { - /** The Challenge to be promoted to be a new Space. Note: the original Challenge will no longer exist after the conversion. */ - challengeID: Scalars['UUID_NAMEID']; +export type ConvertSubspaceToSpaceInput = { + /** The subspace to be promoted to be a new Space. Note: the original Subspace will no longer exist after the conversion. */ + subspaceID: Scalars['UUID_NAMEID']; }; -export type ConvertOpportunityToChallengeInput = { - /** The Opportunity to be promoted to be a new Challenge. Note: the original Opportunity will no longer exist after the conversion. */ - opportunityID: Scalars['UUID_NAMEID']; +export type ConvertSubsubspaceToSubspaceInput = { + /** The subsubspace to be promoted. Note: the original Opportunity will no longer exist after the conversion. */ + subsubspaceID: Scalars['UUID_NAMEID']; }; export type CreateAccountInput = { - /** The host Organization for the account */ + /** The host Organization or User for the account */ hostID: Scalars['UUID_NAMEID']; + /** The license plan selected for the account */ + licensePlanID?: InputMaybe; + /** The root Space to be created. */ + spaceData: CreateSpaceInput; }; export type CreateActorGroupInput = { @@ -1489,6 +1471,7 @@ export type CreateCalloutTemplateOnTemplatesSetInput = { contributionDefaults: CreateCalloutContributionDefaultsInput; contributionPolicy: CreateCalloutContributionPolicyInput; framing: CreateCalloutFramingInput; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -1497,18 +1480,6 @@ export type CreateCalloutTemplateOnTemplatesSetInput = { visualUri?: InputMaybe; }; -export type CreateChallengeOnSpaceInput = { - collaborationData?: InputMaybe; - context?: InputMaybe; - /** Set lead Organizations for the Challenge. */ - leadOrganizations?: InputMaybe>; - /** A readable identifier, unique within the containing scope. */ - nameID?: InputMaybe; - profileData: CreateProfileInput; - spaceID?: Scalars['UUID_NAMEID']; - tags?: InputMaybe>; -}; - export type CreateCollaborationInput = { /** Add default callouts to the Collaboration; defaults to true. */ addDefaultCallouts?: InputMaybe; @@ -1518,6 +1489,22 @@ export type CreateCollaborationInput = { innovationFlowTemplateID?: InputMaybe; }; +export type CreateCommunityGuidelinesInput = { + profile: CreateProfileInput; +}; + +export type CreateCommunityGuidelinesTemplateOnTemplatesSetInput = { + /** The Community guidelines to associate with this template. */ + communityGuidelines?: InputMaybe; + /** The ID of the Community guidelines to associate with this template. */ + communityGuidelinesID?: InputMaybe; + /** The profile of the template. */ + profile: CreateProfileInput; + tags?: InputMaybe>; + templatesSetID: Scalars['UUID']; + visualUri?: InputMaybe; +}; + export type CreateContextInput = { impact?: InputMaybe; vision?: InputMaybe; @@ -1531,12 +1518,8 @@ export type CreateContributionOnCalloutInput = { whiteboard?: InputMaybe; }; -export type CreateFeedbackOnCommunityContextInput = { - communityID: Scalars['UUID']; - questions: Array; -}; - export type CreateInnovationFlowTemplateOnTemplatesSetInput = { + /** The profile of the template. */ profile: CreateProfileInput; states?: InputMaybe>; tags?: InputMaybe>; @@ -1545,6 +1528,8 @@ export type CreateInnovationFlowTemplateOnTemplatesSetInput = { }; export type CreateInnovationHubInput = { + /** Account ID, associated with the Innovation Hub. */ + accountID?: InputMaybe; /** A readable identifier, unique within the containing scope. */ nameID?: InputMaybe; profileData: CreateProfileInput; @@ -1567,14 +1552,14 @@ export type CreateInnovationPackOnLibraryInput = { tags?: InputMaybe>; }; -export type CreateInvitationExistingUserOnCommunityInput = { +export type CreateInvitationForUsersOnCommunityInput = { communityID: Scalars['UUID']; - /** The identifier for the user being invited. */ + /** The identifiers for the users being invited. */ invitedUsers: Array; welcomeMessage?: InputMaybe; }; -export type CreateInvitationExternalUserOnCommunityInput = { +export type CreateInvitationUserByEmailOnCommunityInput = { communityID: Scalars['UUID']; email: Scalars['String']; firstName?: InputMaybe; @@ -1582,6 +1567,12 @@ export type CreateInvitationExternalUserOnCommunityInput = { welcomeMessage?: InputMaybe; }; +export type CreateLicensePlanOnLicensingInput = { + licensingID: Scalars['UUID']; + /** The name of the License Plan */ + name: Scalars['String']; +}; + export type CreateLinkInput = { profile: CreateProfileInput; uri?: InputMaybe; @@ -1602,22 +1593,12 @@ export type CreateNvpInput = { value: Scalars['String']; }; -export type CreateOpportunityInput = { - challengeID: Scalars['UUID']; - collaborationData?: InputMaybe; - context?: InputMaybe; - /** A readable identifier, unique within the containing scope. */ - nameID?: InputMaybe; - profileData: CreateProfileInput; - tags?: InputMaybe>; -}; - export type CreateOrganizationInput = { contactEmail?: InputMaybe; domain?: InputMaybe; legalEntityName?: InputMaybe; /** A readable identifier, unique within the containing scope. */ - nameID: Scalars['NameID']; + nameID?: InputMaybe; profileData: CreateProfileInput; website?: InputMaybe; }; @@ -1634,6 +1615,7 @@ export type CreatePostInput = { export type CreatePostTemplateOnTemplatesSetInput = { /** The default description to be pre-filled when users create Posts based on this template. */ defaultDescription?: InputMaybe; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -1678,11 +1660,21 @@ export type CreateRelationOnCollaborationInput = { }; export type CreateSpaceInput = { - accountData: CreateAccountInput; + collaborationData?: InputMaybe; context?: InputMaybe; - /** A readable identifier, unique within the containing scope. */ - nameID: Scalars['NameID']; + /** A readable identifier, unique within the containing Account. */ + nameID?: InputMaybe; + profileData: CreateProfileInput; + tags?: InputMaybe>; +}; + +export type CreateSubspaceInput = { + collaborationData?: InputMaybe; + context?: InputMaybe; + /** A readable identifier, unique within the containing Account. */ + nameID?: InputMaybe; profileData: CreateProfileInput; + spaceID: Scalars['UUID_NAMEID']; tags?: InputMaybe>; }; @@ -1701,7 +1693,7 @@ export type CreateTagsetOnProfileInput = { export type CreateUserGroupInput = { parentID: Scalars['UUID']; - profileData: CreateProfileInput; + profile: CreateProfileInput; }; export type CreateUserInput = { @@ -1711,24 +1703,27 @@ export type CreateUserInput = { gender?: InputMaybe; lastName?: InputMaybe; /** A readable identifier, unique within the containing scope. */ - nameID: Scalars['NameID']; + nameID?: InputMaybe; phone?: InputMaybe; profileData: CreateProfileInput; }; -export type CreateVirtualContributorInput = { +export type CreateVirtualContributorOnAccountInput = { + accountID: Scalars['UUID']; + bodyOfKnowledgeID?: InputMaybe; + bodyOfKnowledgeType?: InputMaybe; /** A readable identifier, unique within the containing scope. */ - nameID: Scalars['NameID']; + nameID?: InputMaybe; profileData: CreateProfileInput; - virtualPersonaID: Scalars['UUID']; + virtualPersonaID?: InputMaybe; }; export type CreateVirtualPersonaInput = { - engine: VirtualPersonaEngine; + engine: VirtualContributorEngine; /** A readable identifier, unique within the containing scope. */ nameID: Scalars['NameID']; profileData: CreateProfileInput; - prompt: Scalars['JSON']; + prompt?: InputMaybe; }; export type CreateWhiteboardInput = { @@ -1740,6 +1735,7 @@ export type CreateWhiteboardInput = { export type CreateWhiteboardTemplateOnTemplatesSetInput = { content?: InputMaybe; + /** The profile of the template. */ profile: CreateProfileInput; tags?: InputMaybe>; templatesSetID: Scalars['UUID']; @@ -1749,10 +1745,14 @@ export type CreateWhiteboardTemplateOnTemplatesSetInput = { }; export type Credential = { + /** The timestamp for the expiry of this credential. */ + expires?: Maybe; /** The ID of the entity */ id: Scalars['UUID']; + /** The User issuing the credential */ + issuer?: Maybe; resourceID: Scalars['String']; - type: AuthorizationCredential; + type: CredentialType; }; export type CredentialDefinition = { @@ -1777,6 +1777,31 @@ export type CredentialMetadataOutput = { uniqueType: Scalars['String']; }; +export enum CredentialType { + AccountHost = 'ACCOUNT_HOST', + BetaTester = 'BETA_TESTER', + GlobalAdmin = 'GLOBAL_ADMIN', + GlobalCommunityRead = 'GLOBAL_COMMUNITY_READ', + GlobalLicenseManager = 'GLOBAL_LICENSE_MANAGER', + GlobalRegistered = 'GLOBAL_REGISTERED', + GlobalSpacesReader = 'GLOBAL_SPACES_READER', + GlobalSupport = 'GLOBAL_SUPPORT', + InnovationPackProvider = 'INNOVATION_PACK_PROVIDER', + LicenseSpaceEnterprise = 'LICENSE_SPACE_ENTERPRISE', + LicenseSpaceFree = 'LICENSE_SPACE_FREE', + LicenseSpacePlus = 'LICENSE_SPACE_PLUS', + LicenseSpacePremium = 'LICENSE_SPACE_PREMIUM', + OrganizationAdmin = 'ORGANIZATION_ADMIN', + OrganizationAssociate = 'ORGANIZATION_ASSOCIATE', + OrganizationOwner = 'ORGANIZATION_OWNER', + SpaceAdmin = 'SPACE_ADMIN', + SpaceLead = 'SPACE_LEAD', + SpaceMember = 'SPACE_MEMBER', + SpaceSubspaceAdmin = 'SPACE_SUBSPACE_ADMIN', + UserGroupMember = 'USER_GROUP_MEMBER', + UserSelfManagement = 'USER_SELF_MANAGEMENT', +} + export type DeleteActorGroupInput = { ID: Scalars['UUID']; }; @@ -1801,11 +1826,11 @@ export type DeleteCalloutTemplateInput = { ID: Scalars['UUID']; }; -export type DeleteChallengeInput = { +export type DeleteCollaborationInput = { ID: Scalars['UUID']; }; -export type DeleteCollaborationInput = { +export type DeleteCommunityGuidelinesTemplateInput = { ID: Scalars['UUID']; }; @@ -1837,11 +1862,11 @@ export type DeleteInvitationInput = { ID: Scalars['UUID']; }; -export type DeleteLinkInput = { +export type DeleteLicensePlanInput = { ID: Scalars['UUID']; }; -export type DeleteOpportunityInput = { +export type DeleteLinkInput = { ID: Scalars['UUID']; }; @@ -1984,13 +2009,6 @@ export type EcosystemModel = { id: Scalars['UUID']; }; -export type FeedbackTemplate = { - /** Feedback template name. */ - name: Scalars['String']; - /** Template questions. */ - questions: Array; -}; - export type FileStorageConfig = { /** Max file size, in bytes. */ maxFileSize: Scalars['Float']; @@ -2049,6 +2067,8 @@ export type Groupable = { export type ISearchResults = { /** The search results for Callouts. */ calloutResults: Array; + /** The total number of results for Callouts. */ + calloutResultsCount: Scalars['Float']; /** The search results for contributions (Posts, Whiteboards etc). */ contributionResults: Array; /** The total number of search results for contributions (Posts, Whiteboards etc). */ @@ -2059,9 +2079,9 @@ export type ISearchResults = { contributorResultsCount: Scalars['Float']; /** The search results for Groups. */ groupResults: Array; - /** The search results for Spaces / Challenges / Opportunities. */ + /** The search results for Spaces / Subspaces. */ journeyResults: Array; - /** The total number of results for Spaces / Challenges / Opportunities. */ + /** The total number of results for Spaces / Subspaces. */ journeyResultsCount: Scalars['Float']; }; @@ -2081,6 +2101,11 @@ export type IngestResult = { total?: Maybe; }; +export type IngestSpaceInput = { + /** The identifier for the Space to be ingested. */ + spaceID: Scalars['UUID']; +}; + export type InnovationFlow = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -2113,6 +2138,8 @@ export type InnovationFlowTemplate = { }; export type InnovationHub = { + /** The Innovation Hub account. */ + account: Account; /** The authorization rules for the entity */ authorization?: Maybe; /** The ID of the entity */ @@ -2171,6 +2198,8 @@ export type Invitation = { createdDate: Scalars['DateTime']; /** The ID of the entity */ id: Scalars['UUID']; + /** Whether to also add the invited user to the parent community. */ + invitedToParent: Scalars['Boolean']; lifecycle: Lifecycle; updatedDate: Scalars['DateTime']; /** The User who is invited. */ @@ -2194,6 +2223,8 @@ export type InvitationExternal = { firstName: Scalars['String']; /** The ID of the entity */ id: Scalars['UUID']; + /** Whether to also add the invited user to the parent community. */ + invitedToParent: Scalars['Boolean']; lastName: Scalars['String']; /** Whether a new user profile has been created. */ profileCreated: Scalars['Boolean']; @@ -2201,8 +2232,6 @@ export type InvitationExternal = { }; export type InvitationForRoleResult = { - /** ID for the Challenge being invited to, if any. Or the Challenge containing the Opportunity being invited to. */ - challengeID?: Maybe; /** ID for the community */ communityID: Scalars['UUID']; /** ID for the user that created the invitation. */ @@ -2213,10 +2242,10 @@ export type InvitationForRoleResult = { displayName: Scalars['String']; /** ID for the application */ id: Scalars['UUID']; - /** ID for the Opportunity being invited to, if any. */ - opportunityID?: Maybe; /** ID for the ultimate containing Space */ spaceID: Scalars['UUID']; + /** Nesting level of the Space */ + spaceLevel: Scalars['Float']; /** The current state of the invitation. */ state: Scalars['String']; /** Date of last update */ @@ -2225,17 +2254,6 @@ export type InvitationForRoleResult = { welcomeMessage?: Maybe; }; -export type Journey = { - /** The authorization rules for the Journey */ - authorization?: Maybe; - /** Collaboration object for the Journey */ - collaboration?: Maybe; - /** The ID of the Journey */ - id: Scalars['UUID']; - /** A name identifier of the Journey, unique within a given scope. */ - nameID: Scalars['NameID']; -}; - export type LatestReleaseDiscussion = { /** Id of the latest release discussion. */ id: Scalars['String']; @@ -2271,10 +2289,19 @@ export type License = { featureFlags: Array; /** The ID of the entity */ id: Scalars['UUID']; + /** The privileges granted based on this License. */ + privileges?: Maybe>; /** Visibility of the Space. */ visibility: SpaceVisibility; }; +export enum LicenseCredential { + LicenseSpaceEnterprise = 'LICENSE_SPACE_ENTERPRISE', + LicenseSpaceFree = 'LICENSE_SPACE_FREE', + LicenseSpacePlus = 'LICENSE_SPACE_PLUS', + LicenseSpacePremium = 'LICENSE_SPACE_PREMIUM', +} + export type LicenseFeatureFlag = { /** Is this feature flag enabled? */ enabled: Scalars['Boolean']; @@ -2288,6 +2315,63 @@ export enum LicenseFeatureFlagName { WhiteboardMultiUser = 'WHITEBOARD_MULTI_USER', } +export type LicensePlan = { + /** Is this plan enabled? */ + enabled: Scalars['Boolean']; + /** The ID of the entity */ + id: Scalars['UUID']; + /** Is this plan free? */ + isFree: Scalars['Boolean']; + /** The credential to represent this plan */ + licenseCredential: LicenseCredential; + /** The name of the License Plan */ + name: Scalars['String']; + /** The price per month of this plan. */ + pricePerMonth?: Maybe; + /** Does this plan require contact support */ + requiresContactSupport: Scalars['Boolean']; + /** Does this plan require a payment method? */ + requiresPaymentMethod: Scalars['Boolean']; + /** The sorting order for this Plan. */ + sortOrder: Scalars['Float']; + /** Is there a trial period enabled */ + trialEnabled: Scalars['Boolean']; +}; + +export type LicensePolicy = { + /** The authorization rules for the entity */ + authorization?: Maybe; + /** The set of credential rules that are contained by this License Policy. */ + featureFlagRules?: Maybe>; + /** The ID of the entity */ + id: Scalars['UUID']; +}; + +export type LicensePolicyRuleFeatureFlag = { + featureFlagName: LicenseFeatureFlagName; + grantedPrivileges: Array; + name?: Maybe; +}; + +export enum LicensePrivilege { + CalloutSaveAsTemplate = 'CALLOUT_SAVE_AS_TEMPLATE', + VirtualContributorAccess = 'VIRTUAL_CONTRIBUTOR_ACCESS', + WhiteboardMultiUser = 'WHITEBOARD_MULTI_USER', +} + +export type Licensing = { + /** The authorization rules for the entity */ + authorization?: Maybe; + /** The base License Plan assigned to all Accounts in use on the platform. */ + basePlan: LicensePlan; + /** The ID of the entity */ + id: Scalars['UUID']; + /** The License Plans in use on the platform. */ + plans: Array; + /** The LicensePolicy in use by the Licensing setup. */ + policy: LicensePolicy; +}; + export type Lifecycle = { /** The ID of the entity */ id: Scalars['UUID']; @@ -2340,12 +2424,14 @@ export type LookupQueryResults = { callout?: Maybe; /** Lookup the specified Callout Template */ calloutTemplate?: Maybe; - /** Lookup the specified Challenge */ - challenge?: Maybe; /** Lookup the specified Collaboration */ collaboration?: Maybe; /** Lookup the specified Community */ community?: Maybe; + /** Lookup the specified Community guidelines */ + communityGuidelines?: Maybe; + /** Lookup the specified InnovationFlow Template */ + communityGuidelinesTemplate?: Maybe; /** Lookup the specified Context */ context?: Maybe; /** Lookup the specified Document */ @@ -2356,14 +2442,14 @@ export type LookupQueryResults = { innovationFlowTemplate?: Maybe; /** Lookup the specified Invitation */ invitation?: Maybe; - /** Lookup the specified Opportunity */ - opportunity?: Maybe; /** Lookup the specified Post */ post?: Maybe; /** Lookup the specified Profile */ profile?: Maybe; /** Lookup the specified Room */ room?: Maybe; + /** Lookup the specified Space */ + space?: Maybe; /** Lookup the specified StorageAggregator */ storageAggregator?: Maybe; /** Lookup the specified Whiteboard */ @@ -2401,15 +2487,19 @@ export type LookupQueryResultsCalloutTemplateArgs = { ID: Scalars['UUID']; }; -export type LookupQueryResultsChallengeArgs = { +export type LookupQueryResultsCollaborationArgs = { ID: Scalars['UUID']; }; -export type LookupQueryResultsCollaborationArgs = { +export type LookupQueryResultsCommunityArgs = { ID: Scalars['UUID']; }; -export type LookupQueryResultsCommunityArgs = { +export type LookupQueryResultsCommunityGuidelinesArgs = { + ID: Scalars['UUID']; +}; + +export type LookupQueryResultsCommunityGuidelinesTemplateArgs = { ID: Scalars['UUID']; }; @@ -2433,10 +2523,6 @@ export type LookupQueryResultsInvitationArgs = { ID: Scalars['UUID']; }; -export type LookupQueryResultsOpportunityArgs = { - ID: Scalars['UUID']; -}; - export type LookupQueryResultsPostArgs = { ID: Scalars['UUID']; }; @@ -2449,6 +2535,10 @@ export type LookupQueryResultsRoomArgs = { ID: Scalars['UUID']; }; +export type LookupQueryResultsSpaceArgs = { + ID: Scalars['UUID']; +}; + export type LookupQueryResultsStorageAggregatorArgs = { ID: Scalars['UUID']; }; @@ -2464,12 +2554,14 @@ export type LookupQueryResultsWhiteboardTemplateArgs = { export type MeQueryResults = { /** The applications of the current authenticated user */ applications: Array; + /** Can I create a free space? */ + canCreateFreeSpace: Scalars['Boolean']; /** The query id */ id: Scalars['String']; /** The invitations of the current authenticated user */ invitations: Array; - /** The Journeys I am contributing to */ - myJourneys: Array; + /** The Spaces I am contributing to */ + mySpaces: Array; /** The applications of the current authenticated user */ spaceMemberships: Array; /** The current authenticated User; null if not yet registered on the platform */ @@ -2484,8 +2576,9 @@ export type MeQueryResultsInvitationsArgs = { states?: InputMaybe>; }; -export type MeQueryResultsMyJourneysArgs = { +export type MeQueryResultsMySpacesArgs = { limit?: InputMaybe; + showOnlyMyCreatedSpaces?: InputMaybe; }; export type MeQueryResultsSpaceMembershipsArgs = { @@ -2501,15 +2594,13 @@ export type Message = { /** Reactions on this message */ reactions: Array; /** The User or Virtual Contributor that created this Message */ - sender?: Maybe; + sender?: Maybe; /** The message being replied to */ threadID?: Maybe; /** The server timestamp in UTC */ timestamp: Scalars['Float']; }; -export type MessageSender = User | VirtualContributor; - export type Metadata = { /** Collection of metadata about Alkemio services. */ services: Array; @@ -2545,7 +2636,7 @@ export type Mutation = { /** Allow updating the rule for joining rooms: public or invite. */ adminCommunicationUpdateRoomsJoinRule: Scalars['Boolean']; /** Ingests new data into Elasticsearch from scratch. This will delete all existing data and ingest new data from the source. This is an admin only operation. */ - adminSearchIngestFromScratch: AdminSearchIngestResult; + adminSearchIngestFromScratch: Scalars['String']; /** Apply to join the specified Community as a member. */ applyForCommunityMembership: Application; /** Assigns an Organization a Role in the specified Community. */ @@ -2554,34 +2645,24 @@ export type Mutation = { assignCommunityRoleToUser: User; /** Assigns a Virtual Contributor to a role in the specified Community. */ assignCommunityRoleToVirtual: VirtualContributor; - /** Assigns a User as a Global Admin. */ - assignUserAsGlobalAdmin: User; - /** Assigns a User as a Global Community Admin. */ - assignUserAsGlobalCommunityAdmin: User; - /** Assigns a User as a Global Spaces Admin. */ - assignUserAsGlobalSpacesAdmin: User; - /** Assigns a User as an Organization Admin. */ - assignUserAsOrganizationAdmin: User; - /** Assigns a User as an Organization Owner. */ - assignUserAsOrganizationOwner: User; + /** Assign the specified LicensePlan to an Account. */ + assignLicensePlanToAccount: Account; + /** Assigns an Organization Role to user. */ + assignOrganizationRoleToUser: User; + /** Assigns a platform role to a User. */ + assignPlatformRoleToUser: User; /** Assigns a User as a member of the specified User Group. */ assignUserToGroup: UserGroup; - /** Assigns a User as an associate of the specified Organization. */ - assignUserToOrganization: Organization; /** Reset the Authorization Policy on all entities */ authorizationPolicyResetAll: Scalars['String']; + /** Reset the Authorization Policy on the specified Account. */ + authorizationPolicyResetOnAccount: Account; /** Reset the Authorization Policy on the specified Organization. */ authorizationPolicyResetOnOrganization: Organization; /** Reset the Authorization Policy on the specified Platform. */ authorizationPolicyResetOnPlatform: Platform; - /** Reset the Authorization Policy on the specified Space. */ - authorizationPolicyResetOnSpace: Space; /** Reset the Authorization policy on the specified User. */ authorizationPolicyResetOnUser: User; - /** Reset the Authorization Policy on the specified VirtualContributor. */ - authorizationPolicyResetOnVirtualContributor: VirtualContributor; - /** Reset the Authorization Policy on the specified VirtualPersona. */ - authorizationPolicyResetOnVirtualPersona: VirtualPersona; /** Reset the specified Authorization Policy to global admin privileges */ authorizationPolicyResetToGlobalAdminsAccess: Authorization; /** Generate Alkemio user credential offer */ @@ -2593,7 +2674,9 @@ export type Mutation = { /** Creates a new Space by converting an existing Challenge. */ convertChallengeToSpace: Space; /** Creates a new Challenge by converting an existing Opportunity. */ - convertOpportunityToChallenge: Challenge; + convertOpportunityToChallenge: Space; + /** Creates a new Account with a single root Space. */ + createAccount: Account; /** Creates a new Actor in the specified ActorGroup. */ createActor: Actor; /** Create a new Actor Group on the EcosystemModel. */ @@ -2602,16 +2685,14 @@ export type Mutation = { createCalloutOnCollaboration: Callout; /** Creates a new CalloutTemplate on the specified TemplatesSet. */ createCalloutTemplate: CalloutTemplate; - /** Creates a new Challenge within the specified Space. */ - createChallenge: Challenge; + /** Creates a new CommunityGuidelinesTemplate on the specified TemplatesSet. */ + createCommunityGuidelinesTemplate: CommunityGuidelinesTemplate; /** Create a new Contribution on the Callout. */ createContributionOnCallout: CalloutContribution; /** Creates a new Discussion as part of this Communication. */ createDiscussion: Discussion; /** Create a new CalendarEvent on the Calendar. */ createEventOnCalendar: CalendarEvent; - /** Creates feedback on community context from users having COMMUNITY_CONTEXT_REVIEW privilege */ - createFeedbackOnCommunityContext: Scalars['Boolean']; /** Creates a new User Group in the specified Community. */ createGroupOnCommunity: UserGroup; /** Creates a new User Group for the specified Organization. */ @@ -2622,8 +2703,8 @@ export type Mutation = { createInnovationHub: InnovationHub; /** Create a new InnovatonPack on the Library. */ createInnovationPackOnLibrary: InnovationPack; - /** Creates a new Opportunity within the parent Challenge. */ - createOpportunity: Opportunity; + /** Create a new LicensePlan on the Licensing. */ + createLicensePlan: LicensePlan; /** Creates a new Organization on the platform. */ createOrganization: Organization; /** Creates a new PostTemplate on the specified TemplatesSet. */ @@ -2632,15 +2713,15 @@ export type Mutation = { createReferenceOnProfile: Reference; /** Create a new Relation on the Collaboration. */ createRelationOnCollaboration: Relation; - /** Creates a new Space. */ - createSpace: Space; + /** Creates a new Subspace within the specified Space. */ + createSubspace: Space; /** Creates a new Tagset on the specified Profile */ createTagsetOnProfile: Tagset; /** Creates a new User on the platform. */ createUser: User; /** Creates a new User profile on the platform for a user that has a valid Authentication session. */ createUserNewRegistration: User; - /** Creates a new VirtualContributor on the platform. */ + /** Creates a new VirtualContributor on an Account. */ createVirtualContributor: VirtualContributor; /** Creates a new VirtualPersona on the platform. */ createVirtualPersona: VirtualPersona; @@ -2656,10 +2737,10 @@ export type Mutation = { deleteCallout: Callout; /** Deletes the specified CalloutTemplate. */ deleteCalloutTemplate: CalloutTemplate; - /** Deletes the specified Challenge. */ - deleteChallenge: Challenge; /** Delete Collaboration. */ deleteCollaboration: Collaboration; + /** Deletes the specified CommunityGuidelines Template. */ + deleteCommunityGuidelinesTemplate: CommunityGuidelinesTemplate; /** Deletes the specified Discussion. */ deleteDiscussion: Discussion; /** Deletes the specified Document. */ @@ -2674,10 +2755,10 @@ export type Mutation = { deleteInvitation: Invitation; /** Removes the specified User invitationExternal. */ deleteInvitationExternal: InvitationExternal; + /** Deletes the specified LicensePlan. */ + deleteLicensePlan: LicensePlan; /** Deletes the specified Link. */ deleteLink: Link; - /** Deletes the specified Opportunity. */ - deleteOpportunity: Opportunity; /** Deletes the specified Organization. */ deleteOrganization: Organization; /** Deletes the specified Post. */ @@ -2718,10 +2799,12 @@ export type Mutation = { grantCredentialToUser: User; /** Resets the interaction with the chat engine. */ ingest: Scalars['Boolean']; + /** Triggers space ingestion. */ + ingestSpace: Space; /** Invite an existing User to join the specified Community as a member. */ inviteExistingUserForCommunityMembership: Array; /** Invite an external User to join the specified Community as a member. */ - inviteExternalUserForCommunityMembership: InvitationExternal; + inviteForCommunityMembershipByEmail: AnyInvitation; /** Join the specified Community as a member, without going through an approval process. */ joinCommunity: Community; /** Sends a message on the specified User`s behalf and returns the room id */ @@ -2736,30 +2819,22 @@ export type Mutation = { removeCommunityRoleFromVirtual: VirtualContributor; /** Removes a message. */ removeMessageOnRoom: Scalars['MessageID']; + /** Removes Organization Role from user. */ + removeOrganizationRoleFromUser: User; + /** Removes a User from a platform role. */ + removePlatformRoleFromUser: User; /** Remove a reaction on a message from the specified Room. */ removeReactionToMessageInRoom: Scalars['Boolean']; - /** Removes a User from being a Global Admin. */ - removeUserAsGlobalAdmin: User; - /** Removes a User from being a Global Community Admin. */ - removeUserAsGlobalCommunityAdmin: User; - /** Removes a User from being a Global Spaces Admin. */ - removeUserAsGlobalSpacesAdmin: User; - /** Removes a User from being an Organization Admin. */ - removeUserAsOrganizationAdmin: User; - /** Removes a User from being an Organization Owner. */ - removeUserAsOrganizationOwner: User; /** Removes the specified User from specified user group */ removeUserFromGroup: UserGroup; - /** Removes a User as a member of the specified Organization. */ - removeUserFromOrganization: Organization; /** Resets the interaction with the chat engine. */ resetChatGuidance: Scalars['Boolean']; - /** Resets the interaction with the chat engine. */ - resetVirtualContributor: Scalars['Boolean']; /** Removes an authorization credential from an Organization. */ revokeCredentialFromOrganization: Organization; /** Removes an authorization credential from a User. */ revokeCredentialFromUser: User; + /** Revokes the specified LicensePlan on an Account. */ + revokeLicensePlanFromAccount: Account; /** Sends a reply to a message from the specified Room. */ sendMessageReplyToRoom: Message; /** Send message to Community Leads. */ @@ -2770,6 +2845,8 @@ export type Mutation = { sendMessageToRoom: Message; /** Send message to a User. */ sendMessageToUser: Scalars['Boolean']; + /** Update the platform settings, such as license, of the specified Account. */ + updateAccountPlatformSettings: Account; /** Updates the specified Actor. */ updateActor: Actor; /** User vote if a specific answer is relevant. */ @@ -2786,12 +2863,12 @@ export type Mutation = { updateCalloutVisibility: Callout; /** Update the sortOrder field of the supplied Callouts to increase as per the order that they are provided in. */ updateCalloutsSortOrder: Array; - /** Updates the specified Challenge. */ - updateChallenge: Challenge; /** Update the Application Form used by this Community. */ updateCommunityApplicationForm: Community; /** Updates the CommunityGuidelines. */ updateCommunityGuidelines: CommunityGuidelines; + /** Updates the specified CommunityGuidelinesTemplate. */ + updateCommunityGuidelinesTemplate: CommunityGuidelinesTemplate; /** Updates the specified Discussion. */ updateDiscussion: Discussion; /** Updates the specified Document. */ @@ -2810,25 +2887,23 @@ export type Mutation = { updateInnovationFlowTemplate: InnovationFlowTemplate; /** Update Innovation Hub. */ updateInnovationHub: InnovationHub; + /** Update Innovation Hub Settings. */ + updateInnovationHubPlatformSettings: InnovationHub; /** Updates the InnovationPack. */ updateInnovationPack: InnovationPack; + /** Updates the LicensePlan. */ + updateLicensePlan: LicensePlan; /** Updates the specified Link. */ updateLink: Link; - /** Updates the specified Opportunity. */ - updateOpportunity: Opportunity; /** Updates the specified Organization. */ updateOrganization: Organization; /** Updates the specified Post. */ updatePost: Post; /** Updates the specified PostTemplate. */ updatePostTemplate: PostTemplate; - /** Updates one of the Preferences on a Challenge */ - updatePreferenceOnChallenge: Preference; /** Updates one of the Preferences on an Organization */ updatePreferenceOnOrganization: Preference; /** Updates one of the Preferences on a Space */ - updatePreferenceOnSpace: Preference; - /** Updates one of the Preferences on a Space */ updatePreferenceOnUser: Preference; /** Updates the specified Profile. */ updateProfile: Profile; @@ -2838,8 +2913,10 @@ export type Mutation = { updateSpace: Space; /** Updates the specified SpaceDefaults. */ updateSpaceDefaults: SpaceDefaults; - /** Update the platform settings, such as license, of the specified Space. */ + /** Update the platform settings, such as nameID, of the specified Space. */ updateSpacePlatformSettings: Space; + /** Updates one of the Setting on a Space */ + updateSpaceSettings: Space; /** Updates the specified Tagset. */ updateTagset: Tagset; /** Updates the User. */ @@ -2850,6 +2927,8 @@ export type Mutation = { updateUserPlatformSettings: User; /** Updates the specified VirtualContributor. */ updateVirtualContributor: VirtualContributor; + /** Update VirtualContributor Platform Settings. */ + updateVirtualContributorPlatformSettings: VirtualContributor; /** Updates the specified VirtualPersona. */ updateVirtualPersona: VirtualPersona; /** Updates the image URI for the specified Visual. */ @@ -2902,54 +2981,34 @@ export type MutationAssignCommunityRoleToVirtualArgs = { roleData: AssignCommunityRoleToVirtualInput; }; -export type MutationAssignUserAsGlobalAdminArgs = { - membershipData: AssignGlobalAdminInput; -}; - -export type MutationAssignUserAsGlobalCommunityAdminArgs = { - membershipData: AssignGlobalCommunityAdminInput; -}; - -export type MutationAssignUserAsGlobalSpacesAdminArgs = { - membershipData: AssignGlobalSpacesAdminInput; +export type MutationAssignLicensePlanToAccountArgs = { + planData: AssignLicensePlanToAccount; }; -export type MutationAssignUserAsOrganizationAdminArgs = { - membershipData: AssignOrganizationAdminInput; +export type MutationAssignOrganizationRoleToUserArgs = { + membershipData: AssignOrganizationRoleToUserInput; }; -export type MutationAssignUserAsOrganizationOwnerArgs = { - membershipData: AssignOrganizationOwnerInput; +export type MutationAssignPlatformRoleToUserArgs = { + membershipData: AssignPlatformRoleToUserInput; }; export type MutationAssignUserToGroupArgs = { membershipData: AssignUserGroupMemberInput; }; -export type MutationAssignUserToOrganizationArgs = { - membershipData: AssignOrganizationAssociateInput; +export type MutationAuthorizationPolicyResetOnAccountArgs = { + authorizationResetData: AccountAuthorizationResetInput; }; export type MutationAuthorizationPolicyResetOnOrganizationArgs = { authorizationResetData: OrganizationAuthorizationResetInput; }; -export type MutationAuthorizationPolicyResetOnSpaceArgs = { - authorizationResetData: SpaceAuthorizationResetInput; -}; - export type MutationAuthorizationPolicyResetOnUserArgs = { authorizationResetData: UserAuthorizationResetInput; }; -export type MutationAuthorizationPolicyResetOnVirtualContributorArgs = { - authorizationResetData: VirtualContributorAuthorizationResetInput; -}; - -export type MutationAuthorizationPolicyResetOnVirtualPersonaArgs = { - authorizationResetData: VirtualPersonaAuthorizationResetInput; -}; - export type MutationAuthorizationPolicyResetToGlobalAdminsAccessArgs = { authorizationID: Scalars['String']; }; @@ -2964,11 +3023,15 @@ export type MutationBeginVerifiedCredentialRequestInteractionArgs = { }; export type MutationConvertChallengeToSpaceArgs = { - convertData: ConvertChallengeToSpaceInput; + convertData: ConvertSubspaceToSpaceInput; }; export type MutationConvertOpportunityToChallengeArgs = { - convertData: ConvertOpportunityToChallengeInput; + convertData: ConvertSubsubspaceToSubspaceInput; +}; + +export type MutationCreateAccountArgs = { + accountData: CreateAccountInput; }; export type MutationCreateActorArgs = { @@ -2987,8 +3050,8 @@ export type MutationCreateCalloutTemplateArgs = { calloutTemplateInput: CreateCalloutTemplateOnTemplatesSetInput; }; -export type MutationCreateChallengeArgs = { - challengeData: CreateChallengeOnSpaceInput; +export type MutationCreateCommunityGuidelinesTemplateArgs = { + communityGuidelinesTemplateInput: CreateCommunityGuidelinesTemplateOnTemplatesSetInput; }; export type MutationCreateContributionOnCalloutArgs = { @@ -3003,10 +3066,6 @@ export type MutationCreateEventOnCalendarArgs = { eventData: CreateCalendarEventOnCalendarInput; }; -export type MutationCreateFeedbackOnCommunityContextArgs = { - feedbackData: CreateFeedbackOnCommunityContextInput; -}; - export type MutationCreateGroupOnCommunityArgs = { groupData: CreateUserGroupInput; }; @@ -3027,8 +3086,8 @@ export type MutationCreateInnovationPackOnLibraryArgs = { packData: CreateInnovationPackOnLibraryInput; }; -export type MutationCreateOpportunityArgs = { - opportunityData: CreateOpportunityInput; +export type MutationCreateLicensePlanArgs = { + planData: CreateLicensePlanOnLicensingInput; }; export type MutationCreateOrganizationArgs = { @@ -3047,8 +3106,8 @@ export type MutationCreateRelationOnCollaborationArgs = { relationData: CreateRelationOnCollaborationInput; }; -export type MutationCreateSpaceArgs = { - spaceData: CreateSpaceInput; +export type MutationCreateSubspaceArgs = { + subspaceData: CreateSubspaceInput; }; export type MutationCreateTagsetOnProfileArgs = { @@ -3060,7 +3119,7 @@ export type MutationCreateUserArgs = { }; export type MutationCreateVirtualContributorArgs = { - virtualContributorData: CreateVirtualContributorInput; + virtualContributorData: CreateVirtualContributorOnAccountInput; }; export type MutationCreateVirtualPersonaArgs = { @@ -3091,14 +3150,14 @@ export type MutationDeleteCalloutTemplateArgs = { deleteData: DeleteCalloutTemplateInput; }; -export type MutationDeleteChallengeArgs = { - deleteData: DeleteChallengeInput; -}; - export type MutationDeleteCollaborationArgs = { deleteData: DeleteCollaborationInput; }; +export type MutationDeleteCommunityGuidelinesTemplateArgs = { + deleteData: DeleteCommunityGuidelinesTemplateInput; +}; + export type MutationDeleteDiscussionArgs = { deleteData: DeleteDiscussionInput; }; @@ -3127,12 +3186,12 @@ export type MutationDeleteInvitationExternalArgs = { deleteData: DeleteInvitationExternalInput; }; -export type MutationDeleteLinkArgs = { - deleteData: DeleteLinkInput; +export type MutationDeleteLicensePlanArgs = { + deleteData: DeleteLicensePlanInput; }; -export type MutationDeleteOpportunityArgs = { - deleteData: DeleteOpportunityInput; +export type MutationDeleteLinkArgs = { + deleteData: DeleteLinkInput; }; export type MutationDeleteOrganizationArgs = { @@ -3211,12 +3270,16 @@ export type MutationGrantCredentialToUserArgs = { grantCredentialData: GrantAuthorizationCredentialInput; }; +export type MutationIngestSpaceArgs = { + ingestSpaceData: IngestSpaceInput; +}; + export type MutationInviteExistingUserForCommunityMembershipArgs = { - invitationData: CreateInvitationExistingUserOnCommunityInput; + invitationData: CreateInvitationForUsersOnCommunityInput; }; -export type MutationInviteExternalUserForCommunityMembershipArgs = { - invitationData: CreateInvitationExternalUserOnCommunityInput; +export type MutationInviteForCommunityMembershipByEmailArgs = { + invitationData: CreateInvitationUserByEmailOnCommunityInput; }; export type MutationJoinCommunityArgs = { @@ -3247,38 +3310,22 @@ export type MutationRemoveMessageOnRoomArgs = { messageData: RoomRemoveMessageInput; }; -export type MutationRemoveReactionToMessageInRoomArgs = { - reactionData: RoomRemoveReactionToMessageInput; -}; - -export type MutationRemoveUserAsGlobalAdminArgs = { - membershipData: RemoveGlobalAdminInput; -}; - -export type MutationRemoveUserAsGlobalCommunityAdminArgs = { - membershipData: RemoveGlobalCommunityAdminInput; +export type MutationRemoveOrganizationRoleFromUserArgs = { + membershipData: RemoveOrganizationRoleFromUserInput; }; -export type MutationRemoveUserAsGlobalSpacesAdminArgs = { - membershipData: RemoveGlobalSpacesAdminInput; +export type MutationRemovePlatformRoleFromUserArgs = { + membershipData: RemovePlatformRoleFromUserInput; }; -export type MutationRemoveUserAsOrganizationAdminArgs = { - membershipData: RemoveOrganizationAdminInput; -}; - -export type MutationRemoveUserAsOrganizationOwnerArgs = { - membershipData: RemoveOrganizationOwnerInput; +export type MutationRemoveReactionToMessageInRoomArgs = { + reactionData: RoomRemoveReactionToMessageInput; }; export type MutationRemoveUserFromGroupArgs = { membershipData: RemoveUserGroupMemberInput; }; -export type MutationRemoveUserFromOrganizationArgs = { - membershipData: RemoveOrganizationAssociateInput; -}; - export type MutationRevokeCredentialFromOrganizationArgs = { revokeCredentialData: RevokeOrganizationAuthorizationCredentialInput; }; @@ -3287,6 +3334,10 @@ export type MutationRevokeCredentialFromUserArgs = { revokeCredentialData: RevokeAuthorizationCredentialInput; }; +export type MutationRevokeLicensePlanFromAccountArgs = { + planData: RevokeLicensePlanFromAccount; +}; + export type MutationSendMessageReplyToRoomArgs = { messageData: RoomSendMessageReplyInput; }; @@ -3307,6 +3358,10 @@ export type MutationSendMessageToUserArgs = { messageData: CommunicationSendMessageToUserInput; }; +export type MutationUpdateAccountPlatformSettingsArgs = { + updateData: UpdateAccountPlatformSettingsInput; +}; + export type MutationUpdateActorArgs = { actorData: UpdateActorInput; }; @@ -3339,10 +3394,6 @@ export type MutationUpdateCalloutsSortOrderArgs = { sortOrderData: UpdateCollaborationCalloutsSortOrderInput; }; -export type MutationUpdateChallengeArgs = { - challengeData: UpdateChallengeInput; -}; - export type MutationUpdateCommunityApplicationFormArgs = { applicationFormData: UpdateCommunityApplicationFormInput; }; @@ -3351,6 +3402,10 @@ export type MutationUpdateCommunityGuidelinesArgs = { communityGuidelinesData: UpdateCommunityGuidelinesInput; }; +export type MutationUpdateCommunityGuidelinesTemplateArgs = { + communityGuidelinesTemplateInput: UpdateCommunityGuidelinesTemplateInput; +}; + export type MutationUpdateDiscussionArgs = { updateData: UpdateDiscussionInput; }; @@ -3387,16 +3442,20 @@ export type MutationUpdateInnovationHubArgs = { updateData: UpdateInnovationHubInput; }; +export type MutationUpdateInnovationHubPlatformSettingsArgs = { + updateData: UpdateInnovationHubPlatformSettingsInput; +}; + export type MutationUpdateInnovationPackArgs = { innovationPackData: UpdateInnovationPackInput; }; -export type MutationUpdateLinkArgs = { - linkData: UpdateLinkInput; +export type MutationUpdateLicensePlanArgs = { + updateData: UpdateLicensePlanInput; }; -export type MutationUpdateOpportunityArgs = { - opportunityData: UpdateOpportunityInput; +export type MutationUpdateLinkArgs = { + linkData: UpdateLinkInput; }; export type MutationUpdateOrganizationArgs = { @@ -3411,18 +3470,10 @@ export type MutationUpdatePostTemplateArgs = { postTemplateInput: UpdatePostTemplateInput; }; -export type MutationUpdatePreferenceOnChallengeArgs = { - preferenceData: UpdateChallengePreferenceInput; -}; - export type MutationUpdatePreferenceOnOrganizationArgs = { preferenceData: UpdateOrganizationPreferenceInput; }; -export type MutationUpdatePreferenceOnSpaceArgs = { - preferenceData: UpdateSpacePreferenceInput; -}; - export type MutationUpdatePreferenceOnUserArgs = { preferenceData: UpdateUserPreferenceInput; }; @@ -3447,6 +3498,10 @@ export type MutationUpdateSpacePlatformSettingsArgs = { updateData: UpdateSpacePlatformSettingsInput; }; +export type MutationUpdateSpaceSettingsArgs = { + settingsData: UpdateSpaceSettingsInput; +}; + export type MutationUpdateTagsetArgs = { updateData: UpdateTagsetInput; }; @@ -3467,6 +3522,10 @@ export type MutationUpdateVirtualContributorArgs = { virtualContributorData: UpdateVirtualContributorInput; }; +export type MutationUpdateVirtualContributorPlatformSettingsArgs = { + updateData: UpdateVirtualContributorPlatformSettingsInput; +}; + export type MutationUpdateVirtualPersonaArgs = { virtualPersonaData: UpdateVirtualPersonaInput; }; @@ -3513,9 +3572,9 @@ export enum MutationType { Update = 'UPDATE', } -export type MyJourneyResults = { - journey: Journey; +export type MySpaceResults = { latestActivity?: Maybe; + space: Space; }; export type Nvp = { @@ -3525,77 +3584,46 @@ export type Nvp = { value: Scalars['String']; }; -export type Opportunity = Journey & { - /** The Account for this Opportunity */ - account: Account; - /** The authorization rules for the Journey */ - authorization?: Maybe; - /** Collaboration object for the Journey */ - collaboration?: Maybe; - /** The community for the Opportunity. */ - community?: Maybe; - /** The context for the Opportunity. */ - context?: Maybe; - /** The ID of the Journey */ - id: Scalars['UUID']; - /** Metrics about the activity within this Opportunity. */ - metrics?: Maybe>; - /** A name identifier of the Journey, unique within a given scope. */ - nameID: Scalars['NameID']; - /** The parent entity name (challenge) ID. */ - parentNameID?: Maybe; - /** The Profile for the Opportunity. */ - profile: Profile; - /** The StorageAggregator in use by this Opportunity */ - storageAggregator?: Maybe; -}; - -export type OpportunityCreated = { - /** The identifier for the Challenge on which the Opportunity was created. */ - challengeID: Scalars['UUID']; - /** The Opportunity that has been created. */ - opportunity: Opportunity; -}; - -export type Organization = Groupable & { - /** All Users that are admins of this Organization. */ - admins?: Maybe>; - /** The Agent representing this User. */ - agent?: Maybe; - /** All Users that are associated with this Organization. */ - associates?: Maybe>; - /** The authorization rules for the entity */ - authorization?: Maybe; - /** Organization contact email */ - contactEmail?: Maybe; - /** Domain name; what is verified, eg. alkem.io */ - domain?: Maybe; - /** Group defined on this organization. */ - group?: Maybe; - /** Groups defined on this organization. */ - groups?: Maybe>; - /** The ID of the entity */ - id: Scalars['UUID']; - /** Legal name - required if hosting an Space */ - legalEntityName?: Maybe; - /** Metrics about the activity within this Organization. */ - metrics?: Maybe>; - /** The roles on this Organization for the currently logged in user. */ - myRoles?: Maybe>; - /** A name identifier of the entity, unique within a given scope. */ - nameID: Scalars['NameID']; - /** All Users that are owners of this Organization. */ - owners?: Maybe>; - /** The preferences for this Organization */ - preferences: Array; - /** The profile for this Organization. */ - profile: Profile; - /** The StorageAggregator for managing storage buckets in use by this Organization */ - storageAggregator?: Maybe; - verification: OrganizationVerification; - /** Organization website */ - website?: Maybe; -}; +export type Organization = Contributor & + Groupable & { + /** All Users that are admins of this Organization. */ + admins?: Maybe>; + /** The Agent representing this User. */ + agent: Agent; + /** All Users that are associated with this Organization. */ + associates?: Maybe>; + /** The authorization rules for the Contributor */ + authorization?: Maybe; + /** Organization contact email */ + contactEmail?: Maybe; + /** Domain name; what is verified, eg. alkem.io */ + domain?: Maybe; + /** Group defined on this organization. */ + group?: Maybe; + /** Groups defined on this organization. */ + groups?: Maybe>; + /** The ID of the Contributor */ + id: Scalars['UUID']; + /** Legal name - required if hosting an Space */ + legalEntityName?: Maybe; + /** Metrics about the activity within this Organization. */ + metrics?: Maybe>; + /** The roles on this Organization for the currently logged in user. */ + myRoles?: Maybe>; + /** A name identifier of the Contributor, unique within a given scope. */ + nameID: Scalars['NameID']; + /** All Users that are owners of this Organization. */ + owners?: Maybe>; + /** The preferences for this Organization */ + preferences: Array; + /** The profile for this Organization. */ + profile: Profile; + /** The StorageAggregator for managing storage buckets in use by this Organization */ + storageAggregator?: Maybe; + verification: OrganizationVerification; + /** Organization website */ + website?: Maybe; + }; export type OrganizationGroupArgs = { ID: Scalars['UUID']; @@ -3697,6 +3725,8 @@ export type Platform = { latestReleaseDiscussion?: Maybe; /** The Innovation Library for the platform */ library: Library; + /** The Licensing in use by the platform. */ + licensing: Licensing; /** Alkemio Services Metadata. */ metadata: Metadata; /** The StorageAggregator with documents in use by Users + Organizations on the Platform. */ @@ -3735,6 +3765,8 @@ export type PlatformLocations = { blog: Scalars['String']; /** URL where users can see the community forum */ community: Scalars['String']; + /** URL for the link Contact in the HomePage and to create a new space with Enterprise plan */ + contactsupport: Scalars['String']; /** Main domain of the environment */ domain: Scalars['String']; /** Name of the environment */ @@ -3767,12 +3799,23 @@ export type PlatformLocations = { security: Scalars['String']; /** URL where users can get support for the platform */ support: Scalars['String']; + /** URL for the link Contact in the HomePage to switch between plans */ + switchplan: Scalars['String']; /** URL to the terms of usage for the platform */ terms: Scalars['String']; /** URL where users can get tips and tricks */ tips: Scalars['String']; }; +export enum PlatformRole { + BetaTester = 'BETA_TESTER', + CommunityReader = 'COMMUNITY_READER', + GlobalAdmin = 'GLOBAL_ADMIN', + LicenseManager = 'LICENSE_MANAGER', + SpacesReader = 'SPACES_READER', + Support = 'SUPPORT', +} + export type Post = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -3831,20 +3874,7 @@ export type PreferenceDefinition = { }; export enum PreferenceType { - AllowContributorsToCreateCallouts = 'ALLOW_CONTRIBUTORS_TO_CREATE_CALLOUTS', - AllowContributorsToCreateOpportunities = 'ALLOW_CONTRIBUTORS_TO_CREATE_OPPORTUNITIES', - AllowMembersToCreateCallouts = 'ALLOW_MEMBERS_TO_CREATE_CALLOUTS', - AllowMembersToCreateChallenges = 'ALLOW_MEMBERS_TO_CREATE_CHALLENGES', - AllowNonMembersReadAccess = 'ALLOW_NON_MEMBERS_READ_ACCESS', - AllowSpaceMembersToContribute = 'ALLOW_SPACE_MEMBERS_TO_CONTRIBUTE', - AuthorizationAnonymousReadAccess = 'AUTHORIZATION_ANONYMOUS_READ_ACCESS', AuthorizationOrganizationMatchDomain = 'AUTHORIZATION_ORGANIZATION_MATCH_DOMAIN', - MembershipApplicationsFromAnyone = 'MEMBERSHIP_APPLICATIONS_FROM_ANYONE', - MembershipApplyChallengeFromSpaceMembers = 'MEMBERSHIP_APPLY_CHALLENGE_FROM_SPACE_MEMBERS', - MembershipFeedbackOnChallengeContext = 'MEMBERSHIP_FEEDBACK_ON_CHALLENGE_CONTEXT', - MembershipJoinChallengeFromSpaceMembers = 'MEMBERSHIP_JOIN_CHALLENGE_FROM_SPACE_MEMBERS', - MembershipJoinSpaceFromAnyone = 'MEMBERSHIP_JOIN_SPACE_FROM_ANYONE', - MembershipJoinSpaceFromHostOrganizationMembers = 'MEMBERSHIP_JOIN_SPACE_FROM_HOST_ORGANIZATION_MEMBERS', NotificationApplicationReceived = 'NOTIFICATION_APPLICATION_RECEIVED', NotificationApplicationSubmitted = 'NOTIFICATION_APPLICATION_SUBMITTED', NotificationCalloutPublished = 'NOTIFICATION_CALLOUT_PUBLISHED', @@ -3934,6 +3964,7 @@ export enum ProfileType { CalloutTemplate = 'CALLOUT_TEMPLATE', Challenge = 'CHALLENGE', CommunityGuidelines = 'COMMUNITY_GUIDELINES', + CommunityGuidelinesTemplate = 'COMMUNITY_GUIDELINES_TEMPLATE', ContributionLink = 'CONTRIBUTION_LINK', Discussion = 'DISCUSSION', InnovationFlow = 'INNOVATION_FLOW', @@ -3954,6 +3985,10 @@ export enum ProfileType { } export type Query = { + /** An account. If no ID is specified then the first Account is returned. */ + account: Account; + /** The Accounts on this platform; If accessed through an Innovation Hub will return ONLY the Accounts defined in it. */ + accounts: Array; /** Activity events related to the current user. */ activityFeed: ActivityFeed; /** Activity events related to the current user grouped by Activity type and resource. */ @@ -3988,7 +4023,7 @@ export type Query = { rolesUser: ContributorRoles; /** Search the platform for terms supplied */ search: ISearchResults; - /** An space. If no ID is specified then the first Space is returned. */ + /** Look up a top level Space (i.e. a Space that does not have a parent Space) by the UUID or NameID. */ space: Space; /** The Spaces on this platform; If accessed through an Innovation Hub will return ONLY the Spaces defined in it. */ spaces: Array; @@ -4018,6 +4053,10 @@ export type Query = { virtualPersonas: Array; }; +export type QueryAccountArgs = { + ID: Scalars['UUID_NAMEID']; +}; + export type QueryActivityFeedArgs = { after?: InputMaybe; args?: InputMaybe; @@ -4149,15 +4188,6 @@ export type Question = { value: Scalars['String']; }; -export type QuestionTemplate = { - /** Question template. */ - question: Scalars['String']; - /** Is question required? */ - required: Scalars['Boolean']; - /** Sorting order for the question. Lower is first. */ - sortOrder?: Maybe; -}; - /** A reaction to a message. */ export type Reaction = { /** The reaction Emoji */ @@ -4195,65 +4225,53 @@ export type Relation = { type: Scalars['String']; }; -export type RelayPaginatedSpace = Journey & { - /** The Account for this space */ +export type RelayPaginatedSpace = { + /** The Account that this Space is part of. */ account: Account; /** The Agent representing this Space. */ - agent?: Maybe; - /** The authorization rules for the Journey */ + agent: Agent; + /** The authorization rules for the entity */ authorization?: Maybe; - /** A particular Challenge, either by its ID or nameID */ - challenge: Challenge; - /** The challenges for the space. */ - challenges?: Maybe>; - /** Collaboration object for the Journey */ - collaboration?: Maybe; + /** The collaboration for the Space. */ + collaboration: Collaboration; /** Get the Community for the Space. */ - community?: Maybe; + community: Community; /** The context for the space. */ - context?: Maybe; + context: Context; /** The date for the creation of this Space. */ createdDate?: Maybe; - /** The user group with the specified id anywhere in the space */ - group: UserGroup; - /** The User Groups on this Space */ - groups: Array; - /** The Space host. */ - host?: Maybe; - /** The ID of the Journey */ + /** The ID of the entity */ id: Scalars['UUID']; + /** The level of this Space, representing the number of Spaces above this one. */ + level: Scalars['Float']; /** Metrics about activity within this Space. */ metrics?: Maybe>; - /** A name identifier of the Journey, unique within a given scope. */ + /** A name identifier of the entity, unique within a given scope. */ nameID: Scalars['NameID']; - /** A particular Opportunity, either by its ID or nameID */ - opportunity: Opportunity; - /** The preferences for this Space */ - preferences?: Maybe>; /** The Profile for the Space. */ profile: Profile; + /** The settings for this Space. */ + settings: SpaceSettings; /** The StorageAggregator in use by this Space */ - storageAggregator?: Maybe; + storageAggregator: StorageAggregator; + /** A particular subspace, either by its ID or nameID */ + subspace: Space; + /** The subspaces for the space. */ + subspaces: Array; + /** The Type of the Space e.g. space/challenge/opportunity. */ + type: SpaceType; }; -export type RelayPaginatedSpaceChallengeArgs = { +export type RelayPaginatedSpaceSubspaceArgs = { ID: Scalars['UUID_NAMEID']; }; -export type RelayPaginatedSpaceChallengesArgs = { +export type RelayPaginatedSpaceSubspacesArgs = { IDs?: InputMaybe>; limit?: InputMaybe; shuffle?: InputMaybe; }; -export type RelayPaginatedSpaceGroupArgs = { - ID: Scalars['UUID']; -}; - -export type RelayPaginatedSpaceOpportunityArgs = { - ID: Scalars['UUID_NAMEID']; -}; - export type RelayPaginatedSpaceEdge = { node: RelayPaginatedSpace; }; @@ -4269,53 +4287,6 @@ export type RelayPaginatedSpacePageInfo = { startCursor?: Maybe; }; -export type RelayPaginatedUser = { - /** The unique personal identifier (upn) for the account associated with this user profile */ - accountUpn: Scalars['String']; - /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ - authorization?: Maybe; - /** The Community rooms this user is a member of */ - communityRooms?: Maybe>; - /** The direct rooms this user is a member of */ - directRooms?: Maybe>; - /** The email address for this User. */ - email: Scalars['String']; - firstName: Scalars['String']; - gender: Scalars['String']; - /** The ID of the entity */ - id: Scalars['UUID']; - /** Can a message be sent to this User. */ - isContactable: Scalars['Boolean']; - lastName: Scalars['String']; - /** A name identifier of the entity, unique within a given scope. */ - nameID: Scalars['NameID']; - /** The phone number for this User. */ - phone: Scalars['String']; - /** The preferences for this user */ - preferences: Array; - /** The Profile for this User. */ - profile: Profile; - /** The StorageAggregator for managing storage buckets in use by this User */ - storageAggregator?: Maybe; -}; - -export type RelayPaginatedUserEdge = { - node: RelayPaginatedUser; -}; - -export type RelayPaginatedUserPageInfo = { - /** The last cursor of the page result */ - endCursor?: Maybe; - /** Indicate whether more items exist after the returned ones */ - hasNextPage: Scalars['Boolean']; - /** Indicate whether more items exist before the returned ones */ - hasPreviousPage: Scalars['Boolean']; - /** The first cursor of the page result */ - startCursor?: Maybe; -}; - export type RemoveCommunityRoleFromOrganizationInput = { communityID: Scalars['UUID']; organizationID: Scalars['UUID_NAMEID']; @@ -4334,30 +4305,14 @@ export type RemoveCommunityRoleFromVirtualInput = { virtualContributorID: Scalars['UUID_NAMEID']; }; -export type RemoveGlobalAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type RemoveGlobalCommunityAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type RemoveGlobalSpacesAdminInput = { - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type RemoveOrganizationAdminInput = { - organizationID: Scalars['UUID_NAMEID']; - userID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export type RemoveOrganizationAssociateInput = { +export type RemoveOrganizationRoleFromUserInput = { organizationID: Scalars['UUID_NAMEID']; + role: OrganizationRole; userID: Scalars['UUID_NAMEID_EMAIL']; }; -export type RemoveOrganizationOwnerInput = { - organizationID: Scalars['UUID_NAMEID']; +export type RemovePlatformRoleFromUserInput = { + role: PlatformRole; userID: Scalars['UUID_NAMEID_EMAIL']; }; @@ -4374,6 +4329,15 @@ export type RevokeAuthorizationCredentialInput = { userID: Scalars['UUID_NAMEID_EMAIL']; }; +export type RevokeLicensePlanFromAccount = { + /** The ID of the Account to assign the LicensePlan to. */ + accountID: Scalars['UUID']; + /** The ID of the LicensePlan to assign. */ + licensePlanID: Scalars['UUID']; + /** The ID of the Licensing to use. */ + licensingID?: InputMaybe; +}; + export type RevokeOrganizationAuthorizationCredentialInput = { /** The Organization from whom the credential is being removed. */ organizationID: Scalars['UUID']; @@ -4409,8 +4373,8 @@ export type RolesResultCommunity = { nameID: Scalars['NameID']; /** The roles held by the contributor */ roles: Array; - /** Details of the Groups in the Organizations the user is a member of */ - userGroups: Array; + /** The Type of the Space e.g. space/challenge/opportunity. */ + type: SpaceType; }; export type RolesResultOrganization = { @@ -4429,22 +4393,20 @@ export type RolesResultOrganization = { }; export type RolesResultSpace = { - /** Details of the Challenges the user is a member of */ - challenges: Array; /** Display name of the entity */ displayName: Scalars['String']; /** A unique identifier for this membership result. */ id: Scalars['String']; /** Name Identifier of the entity */ nameID: Scalars['NameID']; - /** Details of the Opportunities the Contributor is a member of */ - opportunities: Array; /** The roles held by the contributor */ roles: Array; /** The Space ID */ spaceID: Scalars['String']; - /** Details of the Groups in the Organizations the user is a member of */ - userGroups: Array; + /** Details of the Subspace the user is a member of */ + subspaces: Array; + /** The Type of the Space e.g. space/challenge/opportunity. */ + type: SpaceType; /** Visibility of the Space. */ visibility: SpaceVisibility; }; @@ -4541,7 +4503,7 @@ export type SearchInput = { tagsetNames?: InputMaybe>; /** The terms to be searched for within this Space. Max 5. */ terms: Array; - /** Restrict the search to only the specified entity types. Values allowed: user, group, organization, Default is all. */ + /** Restrict the search to only the specified entity types. Values allowed: space, subspace, user, group, organization, callout. Default is all. */ typesFilter?: InputMaybe>; }; @@ -4561,35 +4523,7 @@ export type SearchResultCallout = SearchResult & { id: Scalars['UUID']; /** The score for this search result; more matches means a higher score. */ score: Scalars['Float']; - /** The terms that were matched for this result */ - terms: Array; - /** The type of returned result for this search. */ - type: SearchResultType; -}; - -export type SearchResultChallenge = SearchResult & { - /** The Challenge that was found. */ - challenge: Challenge; - id: Scalars['UUID']; - /** The score for this search result; more matches means a higher score. */ - score: Scalars['Float']; - /** The Space that the Challenge is in. */ - space: Space; - /** The terms that were matched for this result */ - terms: Array; - /** The type of returned result for this search. */ - type: SearchResultType; -}; - -export type SearchResultOpportunity = SearchResult & { - /** The Challenge that the Opportunity is in. */ - challenge: Challenge; - id: Scalars['UUID']; - /** The Opportunity that was found. */ - opportunity: Opportunity; - /** The score for this search result; more matches means a higher score. */ - score: Scalars['Float']; - /** The Space that the Opportunity is in. */ + /** The parent Space of the Callout. */ space: Space; /** The terms that were matched for this result */ terms: Array; @@ -4612,11 +4546,7 @@ export type SearchResultOrganization = SearchResult & { export type SearchResultPost = SearchResult & { /** The Callout of the Post. */ callout: Callout; - /** The Challenge of the Post. Applicable for Callouts on Opportunities and Challenges. */ - challenge?: Maybe; id: Scalars['UUID']; - /** The Opportunity of the Post. Applicable only for Callouts on Opportunities. */ - opportunity?: Maybe; /** The Post that was found. */ post: Post; /** The score for this search result; more matches means a higher score. */ @@ -4631,6 +4561,8 @@ export type SearchResultPost = SearchResult & { export type SearchResultSpace = SearchResult & { id: Scalars['UUID']; + /** The parent of this Space, if any. */ + parentSpace?: Maybe; /** The score for this search result; more matches means a higher score. */ score: Scalars['Float']; /** The Space that was found. */ @@ -4699,70 +4631,53 @@ export type Source = { uri?: Maybe; }; -export type Space = Journey & { - /** The Account for this space */ +export type Space = { + /** The Account that this Space is part of. */ account: Account; /** The Agent representing this Space. */ - agent?: Maybe; - /** The authorization rules for the Journey */ + agent: Agent; + /** The authorization rules for the entity */ authorization?: Maybe; - /** A particular Challenge, either by its ID or nameID */ - challenge: Challenge; - /** The challenges for the space. */ - challenges?: Maybe>; - /** Collaboration object for the Journey */ - collaboration?: Maybe; + /** The collaboration for the Space. */ + collaboration: Collaboration; /** Get the Community for the Space. */ - community?: Maybe; + community: Community; /** The context for the space. */ - context?: Maybe; + context: Context; /** The date for the creation of this Space. */ createdDate?: Maybe; - /** The user group with the specified id anywhere in the space */ - group: UserGroup; - /** The User Groups on this Space */ - groups: Array; - /** The Space host. */ - host?: Maybe; - /** The ID of the Journey */ + /** The ID of the entity */ id: Scalars['UUID']; + /** The level of this Space, representing the number of Spaces above this one. */ + level: Scalars['Float']; /** Metrics about activity within this Space. */ metrics?: Maybe>; - /** A name identifier of the Journey, unique within a given scope. */ + /** A name identifier of the entity, unique within a given scope. */ nameID: Scalars['NameID']; - /** A particular Opportunity, either by its ID or nameID */ - opportunity: Opportunity; - /** The preferences for this Space */ - preferences?: Maybe>; /** The Profile for the Space. */ profile: Profile; + /** The settings for this Space. */ + settings: SpaceSettings; /** The StorageAggregator in use by this Space */ - storageAggregator?: Maybe; + storageAggregator: StorageAggregator; + /** A particular subspace, either by its ID or nameID */ + subspace: Space; + /** The subspaces for the space. */ + subspaces: Array; + /** The Type of the Space e.g. space/challenge/opportunity. */ + type: SpaceType; }; -export type SpaceChallengeArgs = { +export type SpaceSubspaceArgs = { ID: Scalars['UUID_NAMEID']; }; -export type SpaceChallengesArgs = { +export type SpaceSubspacesArgs = { IDs?: InputMaybe>; limit?: InputMaybe; shuffle?: InputMaybe; }; -export type SpaceGroupArgs = { - ID: Scalars['UUID']; -}; - -export type SpaceOpportunityArgs = { - ID: Scalars['UUID_NAMEID']; -}; - -export type SpaceAuthorizationResetInput = { - /** The identifier of the Space whose Authorization Policy should be reset. */ - spaceID: Scalars['UUID_NAMEID']; -}; - export type SpaceDefaults = { /** The authorization rules for the entity */ authorization?: Maybe; @@ -4777,13 +4692,49 @@ export type SpaceFilterInput = { visibilities?: InputMaybe>; }; -export enum SpacePreferenceType { - AllowMembersToCreateCallouts = 'ALLOW_MEMBERS_TO_CREATE_CALLOUTS', - AllowMembersToCreateChallenges = 'ALLOW_MEMBERS_TO_CREATE_CHALLENGES', - AuthorizationAnonymousReadAccess = 'AUTHORIZATION_ANONYMOUS_READ_ACCESS', - MembershipApplicationsFromAnyone = 'MEMBERSHIP_APPLICATIONS_FROM_ANYONE', - MembershipJoinSpaceFromAnyone = 'MEMBERSHIP_JOIN_SPACE_FROM_ANYONE', - MembershipJoinSpaceFromHostOrganizationMembers = 'MEMBERSHIP_JOIN_SPACE_FROM_HOST_ORGANIZATION_MEMBERS', +export enum SpacePrivacyMode { + Private = 'PRIVATE', + Public = 'PUBLIC', +} + +export type SpaceSettings = { + /** The collaboration settings for this Space. */ + collaboration: SpaceSettingsCollaboration; + /** The membership settings for this Space. */ + membership: SpaceSettingsMembership; + /** The privacy settings for this Space */ + privacy: SpaceSettingsPrivacy; +}; + +export type SpaceSettingsCollaboration = { + /** Flag to control if members can create callouts. */ + allowMembersToCreateCallouts: Scalars['Boolean']; + /** Flag to control if members can create subspaces. */ + allowMembersToCreateSubspaces: Scalars['Boolean']; + /** Flag to control if ability to contribute is inherited from parent Space. */ + inheritMembershipRights: Scalars['Boolean']; +}; + +export type SpaceSettingsMembership = { + /** Allow subspace admins to invite to this Space. */ + allowSubspaceAdminsToInviteMembers: Scalars['Boolean']; + /** The membership policy in usage for this Space */ + policy: CommunityMembershipPolicy; + /** The organizations that are trusted to Join as members for this Space */ + trustedOrganizations: Array; +}; + +export type SpaceSettingsPrivacy = { + /** Flag to control if Platform Support has admin rights. */ + allowPlatformSupportAsAdmin: Scalars['Boolean']; + /** The privacy mode for this Space */ + mode: SpacePrivacyMode; +}; + +export enum SpaceType { + Challenge = 'CHALLENGE', + Opportunity = 'OPPORTUNITY', + Space = 'SPACE', } export enum SpaceVisibility { @@ -4814,18 +4765,12 @@ export type StorageAggregatorParent = { displayName: Scalars['String']; /** The UUID of the parent entity. */ id: Scalars['UUID']; - /** The Type of the parent Entity, space/challenge/opportunity. */ - type: StorageAggregatorParentType; + /** The Type of the parent Entity. */ + type: SpaceType; /** The URL that can be used to access the parent entity. */ url: Scalars['String']; }; -export enum StorageAggregatorParentType { - Challenge = 'CHALLENGE', - Opportunity = 'OPPORTUNITY', - Space = 'SPACE', -} - export type StorageBucket = { /** Mime types allowed to be stored on this StorageBucket. */ allowedMimeTypes: Array; @@ -4886,16 +4831,14 @@ export type Subscription = { activityCreated: ActivityCreatedSubscriptionResult; /** Receive new Update messages on Communities the currently authenticated User is a member of. */ calloutPostCreated: CalloutPostCreated; - /** Receive new Challenges created on the Space. */ - challengeCreated: ChallengeCreated; /** Receive updates on Discussions */ communicationDiscussionUpdated: Discussion; - /** Receive new Opportunities created on the Challenge. */ - opportunityCreated: OpportunityCreated; /** Received on verified credentials change */ profileVerifiedCredential: ProfileCredentialVerified; /** Receive Room event */ roomEvents: RoomEventSubscriptionResult; + /** Receive new Subspaces created on the Space. */ + subspaceCreated: SubspaceCreated; }; export type SubscriptionActivityCreatedArgs = { @@ -4906,22 +4849,25 @@ export type SubscriptionCalloutPostCreatedArgs = { calloutID: Scalars['UUID']; }; -export type SubscriptionChallengeCreatedArgs = { - spaceID: Scalars['UUID_NAMEID']; -}; - export type SubscriptionCommunicationDiscussionUpdatedArgs = { communicationID: Scalars['UUID']; }; -export type SubscriptionOpportunityCreatedArgs = { - challengeID: Scalars['UUID']; -}; - export type SubscriptionRoomEventsArgs = { roomID: Scalars['UUID']; }; +export type SubscriptionSubspaceCreatedArgs = { + spaceID: Scalars['UUID']; +}; + +export type SubspaceCreated = { + /** The identifier for the Space on which the subspace was created. */ + spaceID: Scalars['UUID']; + /** The subspace that has been created. */ + subspace: Space; +}; + export type Tagset = { /** The allowed values for this Tagset. */ allowedValues: Array; @@ -4998,20 +4944,19 @@ export enum TaskStatus { InProgress = 'IN_PROGRESS', } -export type Template = { - /** Challenge templates. */ - challenges: Array; - /** Template description. */ - description: Scalars['String']; - /** Template name. */ - name: Scalars['String']; -}; - export type TemplatesSet = { /** The authorization rules for the entity */ authorization?: Maybe; /** The CalloutTemplates in this TemplatesSet. */ calloutTemplates: Array; + /** The total number of CalloutTemplates in this TemplatesSet. */ + calloutTemplatesCount: Scalars['Float']; + /** A single CommunityGuidelinesTemplate */ + communityGuidelinesTemplate?: Maybe; + /** The CommunityGuidelines in this TemplatesSet. */ + communityGuidelinesTemplates: Array; + /** The total number of CommunityGuidelinesTemplates in this TemplatesSet. */ + communityGuidelinesTemplatesCount: Scalars['Float']; /** The ID of the entity */ id: Scalars['UUID']; /** A single InnovationFlowTemplate */ @@ -5034,6 +4979,10 @@ export type TemplatesSet = { whiteboardTemplatesCount: Scalars['Float']; }; +export type TemplatesSetCommunityGuidelinesTemplateArgs = { + ID: Scalars['UUID']; +}; + export type TemplatesSetInnovationFlowTemplateArgs = { ID: Scalars['UUID']; }; @@ -5055,8 +5004,10 @@ export type Timeline = { id: Scalars['UUID']; }; -export type UpdateAccountInput = { - /** Update the host Organization for the Account. */ +export type UpdateAccountPlatformSettingsInput = { + /** The identifier for the Account whose license etc is to be updated. */ + accountID: Scalars['UUID']; + /** Update the host Organization or User for the Account. */ hostID?: InputMaybe; /** Update the license settings for the Account. */ license?: InputMaybe; @@ -5105,6 +5056,7 @@ export type UpdateCalloutFramingInput = { /** The Profile of the Template. */ profile?: InputMaybe; whiteboard?: InputMaybe; + whiteboardContent?: InputMaybe; }; export type UpdateCalloutInput = { @@ -5147,26 +5099,6 @@ export type UpdateCalloutVisibilityInput = { visibility: CalloutVisibility; }; -export type UpdateChallengeInput = { - ID: Scalars['UUID']; - /** Update the contained Context entity. */ - context?: InputMaybe; - /** The Profile of the InnovationFlow of this entity. */ - innovationFlowData?: InputMaybe; - /** A display identifier, unique within the containing scope. Note: updating the nameID will affect URL on the client. */ - nameID?: InputMaybe; - /** The Profile of this entity. */ - profileData?: InputMaybe; -}; - -export type UpdateChallengePreferenceInput = { - /** ID of the Challenge */ - challengeID: Scalars['UUID']; - /** Type of the challenge preference */ - type: ChallengePreferenceType; - value: Scalars['String']; -}; - export type UpdateCollaborationCalloutsSortOrderInput = { /** The IDs of the callouts to update the sort order on */ calloutIDs: Array; @@ -5185,6 +5117,19 @@ export type UpdateCommunityGuidelinesInput = { profile: UpdateProfileInput; }; +export type UpdateCommunityGuidelinesOfTemplateInput = { + /** The Profile for this community guidelines. */ + profile: UpdateProfileInput; +}; + +export type UpdateCommunityGuidelinesTemplateInput = { + ID: Scalars['UUID']; + /** The Community guidelines to associate with this template. */ + communityGuidelines?: InputMaybe; + /** The Profile of the Template. */ + profile?: InputMaybe; +}; + export type UpdateContextInput = { impact?: InputMaybe; vision?: InputMaybe; @@ -5270,7 +5215,7 @@ export type UpdateInnovationFlowSingleStateInput = { export type UpdateInnovationFlowStateInput = { /** The explation text to clarify the State. */ - description: Scalars['Markdown']; + description?: InputMaybe; /** The display name for the State */ displayName: Scalars['String']; }; @@ -5294,6 +5239,12 @@ export type UpdateInnovationHubInput = { spaceVisibilityFilter?: InputMaybe; }; +export type UpdateInnovationHubPlatformSettingsInput = { + ID: Scalars['UUID']; + /** An Account ID associated with the InnovationHub */ + accountID: Scalars['UUID']; +}; + export type UpdateInnovationPackInput = { /** The ID or NameID of the InnovationPack. */ ID: Scalars['UUID_NAMEID']; @@ -5312,6 +5263,10 @@ export type UpdateLicenseInput = { visibility?: InputMaybe; }; +export type UpdateLicensePlanInput = { + ID: Scalars['UUID']; +}; + export type UpdateLinkInput = { ID: Scalars['UUID']; /** The Profile of the Link. */ @@ -5328,16 +5283,6 @@ export type UpdateLocationInput = { stateOrProvince?: InputMaybe; }; -export type UpdateOpportunityInput = { - ID: Scalars['UUID']; - /** Update the contained Context entity. */ - context?: InputMaybe; - /** A display identifier, unique within the containing scope. Note: updating the nameID will affect URL on the client. */ - nameID?: InputMaybe; - /** The Profile of this entity. */ - profileData?: InputMaybe; -}; - export type UpdateOrganizationInput = { /** The ID or NameID of the Organization to update. */ ID: Scalars['UUID_NAMEID']; @@ -5409,35 +5354,66 @@ export type UpdateReferenceInput = { }; export type UpdateSpaceDefaultsInput = { - /** The ID for the InnovationFlowtemplate to use for new Challenges and Opportunities. */ + /** The ID for the InnovationFlowtemplate to use for new Subspaces. */ flowTemplateID: Scalars['UUID']; /** The identifier for the Space whose Defaaults are to be updated. */ spaceID: Scalars['UUID']; }; export type UpdateSpaceInput = { - /** The ID or NameID of the Space. */ - ID: Scalars['UUID_NAMEID']; + ID: Scalars['UUID']; /** Update the contained Context entity. */ context?: InputMaybe; + /** The Profile of the InnovationFlow of this entity. */ + innovationFlowData?: InputMaybe; + /** A display identifier, unique within the containing scope. Note: updating the nameID will affect URL on the client. */ + nameID?: InputMaybe; /** The Profile of this entity. */ profileData?: InputMaybe; }; export type UpdateSpacePlatformSettingsInput = { - account?: InputMaybe; /** Upate the URL path for the Space. */ - nameID?: InputMaybe; + nameID: Scalars['NameID']; /** The identifier for the Space whose license etc is to be updated. */ + spaceID: Scalars['UUID']; +}; + +export type UpdateSpaceSettingsCollaborationInput = { + /** Flag to control if members can create callouts. */ + allowMembersToCreateCallouts: Scalars['Boolean']; + /** Flag to control if members can create subspaces. */ + allowMembersToCreateSubspaces: Scalars['Boolean']; + /** Flag to control if ability to contribute is inherited from parent Space. */ + inheritMembershipRights: Scalars['Boolean']; +}; + +export type UpdateSpaceSettingsEntityInput = { + collaboration?: InputMaybe; + membership?: InputMaybe; + privacy?: InputMaybe; +}; + +export type UpdateSpaceSettingsInput = { + /** Update the settings for the Space. */ + settings: UpdateSpaceSettingsEntityInput; + /** The identifier for the Space whose settings are to be updated. */ spaceID: Scalars['String']; }; -export type UpdateSpacePreferenceInput = { - /** ID of the Space */ - spaceID: Scalars['UUID_NAMEID']; - /** Type of the user preference */ - type: SpacePreferenceType; - value: Scalars['String']; +export type UpdateSpaceSettingsMembershipInput = { + /** Flag to control if Subspace admins can invite for this Space. */ + allowSubspaceAdminsToInviteMembers: Scalars['Boolean']; + /** The membership policy in usage for this Space */ + policy: CommunityMembershipPolicy; + /** The organizations that are trusted to Join as members for this Space */ + trustedOrganizations: Array; +}; + +export type UpdateSpaceSettingsPrivacyInput = { + /** Flag to control if Platform Support has admin rights. */ + allowPlatformSupportAsAdmin?: InputMaybe; + mode?: InputMaybe; }; export type UpdateTagsetInput = { @@ -5492,14 +5468,20 @@ export type UpdateVirtualContributorInput = { profileData?: InputMaybe; }; +export type UpdateVirtualContributorPlatformSettingsInput = { + ID: Scalars['UUID']; + /** An Account ID associated with the VirtualContributor */ + accountID: Scalars['UUID']; +}; + export type UpdateVirtualPersonaInput = { ID: Scalars['UUID']; - engine: VirtualPersonaEngine; + engine: VirtualContributorEngine; /** A display identifier, unique within the containing scope. Note: updating the nameID will affect URL on the client. */ nameID?: InputMaybe; /** The Profile of this entity. */ profileData?: InputMaybe; - prompt: Scalars['JSON']; + prompt?: InputMaybe; }; export type UpdateVisualInput = { @@ -5533,12 +5515,12 @@ export type UpdateWhiteboardTemplateInput = { profile?: InputMaybe; }; -export type User = { +export type User = Contributor & { /** The unique personal identifier (upn) for the account associated with this user profile */ accountUpn: Scalars['String']; /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ + agent: Agent; + /** The authorization rules for the Contributor */ authorization?: Maybe; /** The Community rooms this user is a member of */ communityRooms?: Maybe>; @@ -5548,12 +5530,12 @@ export type User = { email: Scalars['String']; firstName: Scalars['String']; gender: Scalars['String']; - /** The ID of the entity */ + /** The ID of the Contributor */ id: Scalars['UUID']; /** Can a message be sent to this User. */ isContactable: Scalars['Boolean']; lastName: Scalars['String']; - /** A name identifier of the entity, unique within a given scope. */ + /** A name identifier of the Contributor, unique within a given scope. */ nameID: Scalars['NameID']; /** The phone number for this User. */ phone: Scalars['String']; @@ -5591,7 +5573,6 @@ export type UserGroup = { id: Scalars['UUID']; /** The Users that are members of this User Group. */ members?: Maybe>; - name: Scalars['String']; /** Containing entity for this UserGroup. */ parent?: Maybe; /** The profile for the user group */ @@ -5667,14 +5648,20 @@ export type VerifiedCredentialClaim = { value: Scalars['JSON']; }; -export type VirtualContributor = { +export type VirtualContributor = Contributor & { + /** The account under which the virtual contributor was created */ + account?: Maybe; /** The Agent representing this User. */ - agent?: Maybe; - /** The authorization rules for the entity */ + agent: Agent; + /** The authorization rules for the Contributor */ authorization?: Maybe; - /** The ID of the entity */ + /** The body of knowledge ID used for the Virtual Contributor */ + bodyOfKnowledgeID?: Maybe; + /** The body of knowledge type used for the Virtual Contributor */ + bodyOfKnowledgeType?: Maybe; + /** The ID of the Contributor */ id: Scalars['UUID']; - /** A name identifier of the entity, unique within a given scope. */ + /** A name identifier of the Contributor, unique within a given scope. */ nameID: Scalars['NameID']; /** The profile for this Virtual. */ profile: Profile; @@ -5684,36 +5671,33 @@ export type VirtualContributor = { virtualPersona: VirtualPersona; }; -export type VirtualContributorAuthorizationResetInput = { - /** The identifier of the Virtual Contributor whose Authorization Policy should be reset. */ - virtualContributorID: Scalars['UUID']; -}; +export enum VirtualContributorEngine { + CommunityManager = 'COMMUNITY_MANAGER', + Expert = 'EXPERT', + Guidance = 'GUIDANCE', +} export type VirtualPersona = { /** The authorization rules for the entity */ authorization?: Maybe; + /** The required data access by the Virtual Persona */ + dataAccessMode: VirtualPersonaAccessMode; /** The Virtual Persona Engine being used by this virtual persona. */ - engine?: Maybe; + engine: VirtualContributorEngine; /** The ID of the entity */ id: Scalars['UUID']; /** A name identifier of the entity, unique within a given scope. */ nameID: Scalars['NameID']; - /** The Profile for this VirtualPersona. */ + /** The Profile for the VirtualPersona. */ profile: Profile; /** The prompt used by this Virtual Persona */ prompt: Scalars['String']; }; -export type VirtualPersonaAuthorizationResetInput = { - /** The identifier of the Virtual Persona whose Authorization Policy should be reset. */ - virtualPersonaID: Scalars['UUID_NAMEID_EMAIL']; -}; - -export enum VirtualPersonaEngine { - AlkemioDigileefomgeving = 'ALKEMIO_DIGILEEFOMGEVING', - AlkemioWelcome = 'ALKEMIO_WELCOME', - CommunityManager = 'COMMUNITY_MANAGER', - Guidance = 'GUIDANCE', +export enum VirtualPersonaAccessMode { + None = 'NONE', + SpaceProfile = 'SPACE_PROFILE', + SpaceProfileAndContents = 'SPACE_PROFILE_AND_CONTENTS', } export type VirtualPersonaQuestionInput = { @@ -5910,6 +5894,8 @@ export type DirectiveResolverFn< export type ResolversTypes = { APM: ResolverTypeWrapper; Account: ResolverTypeWrapper; + AccountAuthorizationResetInput: AccountAuthorizationResetInput; + AccountSubscription: ResolverTypeWrapper; ActivityCreatedSubscriptionInput: ActivityCreatedSubscriptionInput; ActivityCreatedSubscriptionResult: ResolverTypeWrapper; ActivityEventType: ActivityEventType; @@ -5945,22 +5931,21 @@ export type ResolversTypes = { ActivityLogInput: ActivityLogInput; Actor: ResolverTypeWrapper; ActorGroup: ResolverTypeWrapper; - AdminSearchIngestResult: ResolverTypeWrapper; Agent: ResolverTypeWrapper; AgentBeginVerifiedCredentialOfferOutput: ResolverTypeWrapper; AgentBeginVerifiedCredentialRequestOutput: ResolverTypeWrapper; + AnyInvitation: + | ResolversTypes['Invitation'] + | ResolversTypes['InvitationExternal']; Application: ResolverTypeWrapper; ApplicationEventInput: ApplicationEventInput; ApplicationForRoleResult: ResolverTypeWrapper; AssignCommunityRoleToOrganizationInput: AssignCommunityRoleToOrganizationInput; AssignCommunityRoleToUserInput: AssignCommunityRoleToUserInput; AssignCommunityRoleToVirtualInput: AssignCommunityRoleToVirtualInput; - AssignGlobalAdminInput: AssignGlobalAdminInput; - AssignGlobalCommunityAdminInput: AssignGlobalCommunityAdminInput; - AssignGlobalSpacesAdminInput: AssignGlobalSpacesAdminInput; - AssignOrganizationAdminInput: AssignOrganizationAdminInput; - AssignOrganizationAssociateInput: AssignOrganizationAssociateInput; - AssignOrganizationOwnerInput: AssignOrganizationOwnerInput; + AssignLicensePlanToAccount: AssignLicensePlanToAccount; + AssignOrganizationRoleToUserInput: AssignOrganizationRoleToUserInput; + AssignPlatformRoleToUserInput: AssignPlatformRoleToUserInput; AssignUserGroupMemberInput: AssignUserGroupMemberInput; AuthenticationConfig: ResolverTypeWrapper; AuthenticationProviderConfig: ResolverTypeWrapper< @@ -5975,6 +5960,7 @@ export type ResolversTypes = { AuthorizationPolicyRulePrivilege: ResolverTypeWrapper; AuthorizationPolicyRuleVerifiedCredential: ResolverTypeWrapper; AuthorizationPrivilege: AuthorizationPrivilege; + BodyOfKnowledgeType: BodyOfKnowledgeType; Boolean: ResolverTypeWrapper; CID: ResolverTypeWrapper; Calendar: ResolverTypeWrapper; @@ -5994,10 +5980,6 @@ export type ResolversTypes = { CalloutTemplate: ResolverTypeWrapper; CalloutType: CalloutType; CalloutVisibility: CalloutVisibility; - Challenge: ResolverTypeWrapper; - ChallengeCreated: ResolverTypeWrapper; - ChallengePreferenceType: ChallengePreferenceType; - ChallengeTemplate: ResolverTypeWrapper; ChatGuidanceAnswerRelevanceInput: ChatGuidanceAnswerRelevanceInput; ChatGuidanceInput: ChatGuidanceInput; ChatGuidanceResult: ResolverTypeWrapper; @@ -6019,18 +6001,25 @@ export type ResolversTypes = { Community: ResolverTypeWrapper; CommunityApplyInput: CommunityApplyInput; CommunityGuidelines: ResolverTypeWrapper; + CommunityGuidelinesTemplate: ResolverTypeWrapper; CommunityJoinInput: CommunityJoinInput; + CommunityMembershipPolicy: CommunityMembershipPolicy; CommunityMembershipStatus: CommunityMembershipStatus; CommunityPolicy: ResolverTypeWrapper; CommunityRole: CommunityRole; + CommunityRoleImplicit: CommunityRoleImplicit; CommunityRolePolicy: ResolverTypeWrapper; Config: ResolverTypeWrapper; ContentUpdatePolicy: ContentUpdatePolicy; Context: ResolverTypeWrapper; + Contributor: + | ResolversTypes['Organization'] + | ResolversTypes['User'] + | ResolversTypes['VirtualContributor']; ContributorFilterInput: ContributorFilterInput; ContributorRoles: ResolverTypeWrapper; - ConvertChallengeToSpaceInput: ConvertChallengeToSpaceInput; - ConvertOpportunityToChallengeInput: ConvertOpportunityToChallengeInput; + ConvertSubspaceToSpaceInput: ConvertSubspaceToSpaceInput; + ConvertSubsubspaceToSubspaceInput: ConvertSubsubspaceToSubspaceInput; CreateAccountInput: CreateAccountInput; CreateActorGroupInput: CreateActorGroupInput; CreateActorInput: CreateActorInput; @@ -6040,20 +6029,20 @@ export type ResolversTypes = { CreateCalloutFramingInput: CreateCalloutFramingInput; CreateCalloutOnCollaborationInput: CreateCalloutOnCollaborationInput; CreateCalloutTemplateOnTemplatesSetInput: CreateCalloutTemplateOnTemplatesSetInput; - CreateChallengeOnSpaceInput: CreateChallengeOnSpaceInput; CreateCollaborationInput: CreateCollaborationInput; + CreateCommunityGuidelinesInput: CreateCommunityGuidelinesInput; + CreateCommunityGuidelinesTemplateOnTemplatesSetInput: CreateCommunityGuidelinesTemplateOnTemplatesSetInput; CreateContextInput: CreateContextInput; CreateContributionOnCalloutInput: CreateContributionOnCalloutInput; - CreateFeedbackOnCommunityContextInput: CreateFeedbackOnCommunityContextInput; CreateInnovationFlowTemplateOnTemplatesSetInput: CreateInnovationFlowTemplateOnTemplatesSetInput; CreateInnovationHubInput: CreateInnovationHubInput; CreateInnovationPackOnLibraryInput: CreateInnovationPackOnLibraryInput; - CreateInvitationExistingUserOnCommunityInput: CreateInvitationExistingUserOnCommunityInput; - CreateInvitationExternalUserOnCommunityInput: CreateInvitationExternalUserOnCommunityInput; + CreateInvitationForUsersOnCommunityInput: CreateInvitationForUsersOnCommunityInput; + CreateInvitationUserByEmailOnCommunityInput: CreateInvitationUserByEmailOnCommunityInput; + CreateLicensePlanOnLicensingInput: CreateLicensePlanOnLicensingInput; CreateLinkInput: CreateLinkInput; CreateLocationInput: CreateLocationInput; CreateNVPInput: CreateNvpInput; - CreateOpportunityInput: CreateOpportunityInput; CreateOrganizationInput: CreateOrganizationInput; CreatePostInput: CreatePostInput; CreatePostTemplateOnTemplatesSetInput: CreatePostTemplateOnTemplatesSetInput; @@ -6062,17 +6051,19 @@ export type ResolversTypes = { CreateReferenceOnProfileInput: CreateReferenceOnProfileInput; CreateRelationOnCollaborationInput: CreateRelationOnCollaborationInput; CreateSpaceInput: CreateSpaceInput; + CreateSubspaceInput: CreateSubspaceInput; CreateTagsetInput: CreateTagsetInput; CreateTagsetOnProfileInput: CreateTagsetOnProfileInput; CreateUserGroupInput: CreateUserGroupInput; CreateUserInput: CreateUserInput; - CreateVirtualContributorInput: CreateVirtualContributorInput; + CreateVirtualContributorOnAccountInput: CreateVirtualContributorOnAccountInput; CreateVirtualPersonaInput: CreateVirtualPersonaInput; CreateWhiteboardInput: CreateWhiteboardInput; CreateWhiteboardTemplateOnTemplatesSetInput: CreateWhiteboardTemplateOnTemplatesSetInput; Credential: ResolverTypeWrapper; CredentialDefinition: ResolverTypeWrapper; CredentialMetadataOutput: ResolverTypeWrapper; + CredentialType: CredentialType; DID: ResolverTypeWrapper; DateTime: ResolverTypeWrapper; DeleteActorGroupInput: DeleteActorGroupInput; @@ -6081,8 +6072,8 @@ export type ResolversTypes = { DeleteCalendarEventInput: DeleteCalendarEventInput; DeleteCalloutInput: DeleteCalloutInput; DeleteCalloutTemplateInput: DeleteCalloutTemplateInput; - DeleteChallengeInput: DeleteChallengeInput; DeleteCollaborationInput: DeleteCollaborationInput; + DeleteCommunityGuidelinesTemplateInput: DeleteCommunityGuidelinesTemplateInput; DeleteDiscussionInput: DeleteDiscussionInput; DeleteDocumentInput: DeleteDocumentInput; DeleteInnovationFlowTemplateInput: DeleteInnovationFlowTemplateInput; @@ -6090,8 +6081,8 @@ export type ResolversTypes = { DeleteInnovationPackInput: DeleteInnovationPackInput; DeleteInvitationExternalInput: DeleteInvitationExternalInput; DeleteInvitationInput: DeleteInvitationInput; + DeleteLicensePlanInput: DeleteLicensePlanInput; DeleteLinkInput: DeleteLinkInput; - DeleteOpportunityInput: DeleteOpportunityInput; DeleteOrganizationInput: DeleteOrganizationInput; DeletePostInput: DeletePostInput; DeletePostTemplateInput: DeletePostTemplateInput; @@ -6113,7 +6104,6 @@ export type ResolversTypes = { Document: ResolverTypeWrapper; EcosystemModel: ResolverTypeWrapper; Emoji: ResolverTypeWrapper; - FeedbackTemplate: ResolverTypeWrapper; FileStorageConfig: ResolverTypeWrapper; Float: ResolverTypeWrapper; Form: ResolverTypeWrapper; @@ -6125,6 +6115,7 @@ export type ResolversTypes = { ISearchResults: ResolverTypeWrapper; IngestBatchResult: ResolverTypeWrapper; IngestResult: ResolverTypeWrapper; + IngestSpaceInput: IngestSpaceInput; InnovationFlow: ResolverTypeWrapper; InnovationFlowState: ResolverTypeWrapper; InnovationFlowTemplate: ResolverTypeWrapper; @@ -6139,16 +6130,17 @@ export type ResolversTypes = { InvitationExternal: ResolverTypeWrapper; InvitationForRoleResult: ResolverTypeWrapper; JSON: ResolverTypeWrapper; - Journey: - | ResolversTypes['Challenge'] - | ResolversTypes['Opportunity'] - | ResolversTypes['RelayPaginatedSpace'] - | ResolversTypes['Space']; LatestReleaseDiscussion: ResolverTypeWrapper; Library: ResolverTypeWrapper; License: ResolverTypeWrapper; + LicenseCredential: LicenseCredential; LicenseFeatureFlag: ResolverTypeWrapper; LicenseFeatureFlagName: LicenseFeatureFlagName; + LicensePlan: ResolverTypeWrapper; + LicensePolicy: ResolverTypeWrapper; + LicensePolicyRuleFeatureFlag: ResolverTypeWrapper; + LicensePrivilege: LicensePrivilege; + Licensing: ResolverTypeWrapper; Lifecycle: ResolverTypeWrapper; LifecycleDefinition: ResolverTypeWrapper; Link: ResolverTypeWrapper; @@ -6156,23 +6148,16 @@ export type ResolversTypes = { LookupQueryResults: ResolverTypeWrapper; Markdown: ResolverTypeWrapper; MeQueryResults: ResolverTypeWrapper; - Message: ResolverTypeWrapper< - Omit & { - sender?: Maybe; - } - >; + Message: ResolverTypeWrapper; MessageID: ResolverTypeWrapper; - MessageSender: ResolversTypes['User'] | ResolversTypes['VirtualContributor']; Metadata: ResolverTypeWrapper; MimeType: MimeType; MoveCalloutContributionInput: MoveCalloutContributionInput; Mutation: ResolverTypeWrapper<{}>; MutationType: MutationType; - MyJourneyResults: ResolverTypeWrapper; + MySpaceResults: ResolverTypeWrapper; NVP: ResolverTypeWrapper; NameID: ResolverTypeWrapper; - Opportunity: ResolverTypeWrapper; - OpportunityCreated: ResolverTypeWrapper; Organization: ResolverTypeWrapper; OrganizationAuthorizationResetInput: OrganizationAuthorizationResetInput; OrganizationFilterInput: OrganizationFilterInput; @@ -6190,6 +6175,7 @@ export type ResolversTypes = { PlatformFeatureFlag: ResolverTypeWrapper; PlatformFeatureFlagName: PlatformFeatureFlagName; PlatformLocations: ResolverTypeWrapper; + PlatformRole: PlatformRole; Post: ResolverTypeWrapper; PostTemplate: ResolverTypeWrapper; Preference: ResolverTypeWrapper; @@ -6201,27 +6187,20 @@ export type ResolversTypes = { ProfileType: ProfileType; Query: ResolverTypeWrapper<{}>; Question: ResolverTypeWrapper; - QuestionTemplate: ResolverTypeWrapper; Reaction: ResolverTypeWrapper; Reference: ResolverTypeWrapper; Relation: ResolverTypeWrapper; RelayPaginatedSpace: ResolverTypeWrapper; RelayPaginatedSpaceEdge: ResolverTypeWrapper; RelayPaginatedSpacePageInfo: ResolverTypeWrapper; - RelayPaginatedUser: ResolverTypeWrapper; - RelayPaginatedUserEdge: ResolverTypeWrapper; - RelayPaginatedUserPageInfo: ResolverTypeWrapper; RemoveCommunityRoleFromOrganizationInput: RemoveCommunityRoleFromOrganizationInput; RemoveCommunityRoleFromUserInput: RemoveCommunityRoleFromUserInput; RemoveCommunityRoleFromVirtualInput: RemoveCommunityRoleFromVirtualInput; - RemoveGlobalAdminInput: RemoveGlobalAdminInput; - RemoveGlobalCommunityAdminInput: RemoveGlobalCommunityAdminInput; - RemoveGlobalSpacesAdminInput: RemoveGlobalSpacesAdminInput; - RemoveOrganizationAdminInput: RemoveOrganizationAdminInput; - RemoveOrganizationAssociateInput: RemoveOrganizationAssociateInput; - RemoveOrganizationOwnerInput: RemoveOrganizationOwnerInput; + RemoveOrganizationRoleFromUserInput: RemoveOrganizationRoleFromUserInput; + RemovePlatformRoleFromUserInput: RemovePlatformRoleFromUserInput; RemoveUserGroupMemberInput: RemoveUserGroupMemberInput; RevokeAuthorizationCredentialInput: RevokeAuthorizationCredentialInput; + RevokeLicensePlanFromAccount: RevokeLicensePlanFromAccount; RevokeOrganizationAuthorizationCredentialInput: RevokeOrganizationAuthorizationCredentialInput; RolesOrganizationInput: RolesOrganizationInput; RolesResult: ResolverTypeWrapper; @@ -6241,16 +6220,12 @@ export type ResolversTypes = { SearchInput: SearchInput; SearchResult: | ResolversTypes['SearchResultCallout'] - | ResolversTypes['SearchResultChallenge'] - | ResolversTypes['SearchResultOpportunity'] | ResolversTypes['SearchResultOrganization'] | ResolversTypes['SearchResultPost'] | ResolversTypes['SearchResultSpace'] | ResolversTypes['SearchResultUser'] | ResolversTypes['SearchResultUserGroup']; SearchResultCallout: ResolverTypeWrapper; - SearchResultChallenge: ResolverTypeWrapper; - SearchResultOpportunity: ResolverTypeWrapper; SearchResultOrganization: ResolverTypeWrapper; SearchResultPost: ResolverTypeWrapper; SearchResultSpace: ResolverTypeWrapper; @@ -6261,14 +6236,17 @@ export type ResolversTypes = { ServiceMetadata: ResolverTypeWrapper; Source: ResolverTypeWrapper; Space: ResolverTypeWrapper; - SpaceAuthorizationResetInput: SpaceAuthorizationResetInput; SpaceDefaults: ResolverTypeWrapper; SpaceFilterInput: SpaceFilterInput; - SpacePreferenceType: SpacePreferenceType; + SpacePrivacyMode: SpacePrivacyMode; + SpaceSettings: ResolverTypeWrapper; + SpaceSettingsCollaboration: ResolverTypeWrapper; + SpaceSettingsMembership: ResolverTypeWrapper; + SpaceSettingsPrivacy: ResolverTypeWrapper; + SpaceType: SpaceType; SpaceVisibility: SpaceVisibility; StorageAggregator: ResolverTypeWrapper; StorageAggregatorParent: ResolverTypeWrapper; - StorageAggregatorParentType: StorageAggregatorParentType; StorageBucket: ResolverTypeWrapper; StorageBucketParent: ResolverTypeWrapper; StorageBucketUploadFileInput: StorageBucketUploadFileInput; @@ -6277,6 +6255,7 @@ export type ResolversTypes = { StorageConfig: ResolverTypeWrapper; String: ResolverTypeWrapper; Subscription: ResolverTypeWrapper<{}>; + SubspaceCreated: ResolverTypeWrapper; Tagset: ResolverTypeWrapper; TagsetArgs: TagsetArgs; TagsetReservedName: TagsetReservedName; @@ -6284,13 +6263,12 @@ export type ResolversTypes = { TagsetType: TagsetType; Task: ResolverTypeWrapper; TaskStatus: TaskStatus; - Template: ResolverTypeWrapper